Class ArtifactManagerConfig

    • Constructor Detail

      • ArtifactManagerConfig

        public ArtifactManagerConfig()
        Create a new configuration object. Set the default values
    • Method Detail

      • setRepositoryUrls

        public void setRepositoryUrls​(String[] urls)
        Set the repository urls
        Parameters:
        urls - The repository urls
      • getRepositoryUrls

        @NotNull
        public @NotNull String[] getRepositoryUrls()
        Get the repository urls. A repository url does not end with a slash.
        Returns:
        The repository urls.
      • getCacheDirectory

        @Nullable
        public @Nullable File getCacheDirectory()
        Get the cache directory
        Specified by:
        getCacheDirectory in interface ArtifactProviderContext
        Returns:
        The cache directory or null if none has been set
      • setCacheDirectory

        public void setCacheDirectory​(File dir)
        Set the cache directory
        Parameters:
        dir - The cache directory
      • getCachedArtifacts

        public long getCachedArtifacts()
        Get the number of cached artifacts
        Returns:
        The number of cached artifacts
      • getDownloadedArtifacts

        public long getDownloadedArtifacts()
        Get the number of downloaded artifacts
        Returns:
        The number of downloaded artifacts
      • getLocalArtifacts

        public long getLocalArtifacts()
        Get the number of local artifacts
        Returns:
        The number of local artifacts
      • isUseMvn

        public boolean isUseMvn()
        Should mvn be used if an artifact can't be found in the repositories
        Returns:
        Whether mvn command should be used.
        Since:
        1.1.0
      • setUseMvn

        public void setUseMvn​(boolean useMvn)
        Set whether mvn should be used to get artifacts.
        Parameters:
        useMvn - flag for enabling mvn
        Since:
        1.1.0