|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.core.cache.CacheManager
public class CacheManager
Constructor Summary | |
---|---|
CacheManager(IvySettings settings,
java.io.File cache)
|
Method Summary | |
---|---|
ResolvedModuleRevision |
findModuleInCache(ModuleRevisionId mrid,
boolean validate)
|
java.io.File |
getArchiveFileInCache(Artifact artifact)
Returns a File object pointing to where the artifact can be found on the local file system. |
java.io.File |
getArchiveFileInCache(Artifact artifact,
ArtifactOrigin origin)
Returns a File object pointing to where the artifact can be found on the local file system. |
java.io.File |
getArchiveFileInCache(Artifact artifact,
ArtifactOrigin origin,
boolean useOrigin)
Returns a File object pointing to where the artifact can be found on the local file system, using or not the original location depending on the availability of origin information provided as parameter and the setting of useOrigin. |
java.lang.String |
getArchivePathInCache(Artifact artifact)
|
java.lang.String |
getArchivePathInCache(Artifact artifact,
ArtifactOrigin origin)
|
java.io.File |
getCache()
|
java.io.File |
getConfigurationResolveReportInCache(java.lang.String resolveId,
java.lang.String conf)
|
java.io.File[] |
getConfigurationResolveReportsInCache(java.lang.String resolveId)
|
static CacheManager |
getInstance(IvySettings settings)
|
static CacheManager |
getInstance(IvySettings settings,
java.io.File cache)
|
java.io.File |
getIvyFileInCache(ModuleRevisionId mrid)
|
java.io.File |
getResolvedIvyFileInCache(ModuleRevisionId mrid)
|
java.io.File |
getResolvedIvyPropertiesInCache(ModuleRevisionId mrid)
|
ArtifactOrigin |
getSavedArtifactOrigin(Artifact artifact)
|
void |
removeSavedArtifactOrigin(Artifact artifact)
|
void |
saveArtifactOrigin(Artifact artifact,
ArtifactOrigin origin)
|
void |
saveArtResolver(ModuleDescriptor md,
java.lang.String name)
Saves the information of which resolver was used to resolve a md, so that this info can be retrieve later (even after a jvm restart) by getSavedArtResolverName(ModuleDescriptor md) |
void |
saveResolver(ModuleDescriptor md,
java.lang.String name)
Saves the information of which resolver was used to resolve a md, so that this info can be retrieve later (even after a jvm restart) by getSavedResolverName(ModuleDescriptor md) |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CacheManager(IvySettings settings, java.io.File cache)
Method Detail |
---|
public static CacheManager getInstance(IvySettings settings, java.io.File cache)
public static CacheManager getInstance(IvySettings settings)
public java.io.File getResolvedIvyFileInCache(ModuleRevisionId mrid)
public java.io.File getResolvedIvyPropertiesInCache(ModuleRevisionId mrid)
public java.io.File getIvyFileInCache(ModuleRevisionId mrid)
public java.io.File getConfigurationResolveReportInCache(java.lang.String resolveId, java.lang.String conf)
public java.io.File[] getConfigurationResolveReportsInCache(java.lang.String resolveId)
public java.io.File getArchiveFileInCache(Artifact artifact)
public java.io.File getArchiveFileInCache(Artifact artifact, ArtifactOrigin origin)
public java.io.File getArchiveFileInCache(Artifact artifact, ArtifactOrigin origin, boolean useOrigin)
public java.lang.String getArchivePathInCache(Artifact artifact)
public java.lang.String getArchivePathInCache(Artifact artifact, ArtifactOrigin origin)
public void saveResolver(ModuleDescriptor md, java.lang.String name)
md
- the module descriptor resolvedname
- resolver namepublic void saveArtResolver(ModuleDescriptor md, java.lang.String name)
md
- the module descriptor resolvedname
- artifact resolver namepublic void saveArtifactOrigin(Artifact artifact, ArtifactOrigin origin)
public ArtifactOrigin getSavedArtifactOrigin(Artifact artifact)
public void removeSavedArtifactOrigin(Artifact artifact)
public ResolvedModuleRevision findModuleInCache(ModuleRevisionId mrid, boolean validate)
public java.lang.String toString()
toString
in class java.lang.Object
public java.io.File getCache()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |