public class ArtifactManagerConfig extends Object implements ArtifactProviderContext
| Constructor and Description |
|---|
ArtifactManagerConfig()
Create a new configuration object.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCachedArtifacts()
Get the number of cached artifacts
|
File |
getCacheDirectory()
Get the cache directory
|
long |
getDownloadedArtifacts()
Get the number of downloaded artifacts
|
long |
getLocalArtifacts()
Get the number of local artifacts
|
String[] |
getRepositoryUrls()
Get the repository urls.
|
void |
incCachedArtifacts()
Inform about an artifact found in the cache.
|
void |
incDownloadedArtifacts()
Inform about an artifact being downloaded
|
void |
incLocalArtifacts()
Inform about an artifact found locally.
|
boolean |
isUseMvn()
Should mvn be used if an artifact can't be found in the repositories
|
void |
setCacheDirectory(File dir)
Set the cache directory
|
void |
setRepositoryUrls(String[] urls)
Set the repository urls
|
void |
setUseMvn(boolean useMvn)
Set whether mvn should be used to get artifacts.
|
public ArtifactManagerConfig()
public void setRepositoryUrls(String[] urls)
urls - The repository urlspublic String[] getRepositoryUrls()
public File getCacheDirectory()
getCacheDirectory in interface ArtifactProviderContextpublic void setCacheDirectory(File dir)
dir - The cache directorypublic void incCachedArtifacts()
ArtifactProviderContextincCachedArtifacts in interface ArtifactProviderContextpublic void incDownloadedArtifacts()
ArtifactProviderContextincDownloadedArtifacts in interface ArtifactProviderContextpublic void incLocalArtifacts()
ArtifactProviderContextincLocalArtifacts in interface ArtifactProviderContextpublic long getCachedArtifacts()
public long getDownloadedArtifacts()
public long getLocalArtifacts()
public boolean isUseMvn()
public void setUseMvn(boolean useMvn)
useMvn - flag for enabling mvnCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.