Package org.apache.ivy.core.cache
Class DefaultResolutionCacheManager
java.lang.Object
org.apache.ivy.core.cache.DefaultResolutionCacheManager
- All Implemented Interfaces:
ResolutionCacheManager
,IvySettingsAware
public class DefaultResolutionCacheManager
extends Object
implements ResolutionCacheManager, IvySettingsAware
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assertInsideCache
(File fileInCache) void
clean()
Cleans the whole cache.getConfigurationResolveReportInCache
(String resolveId, String conf) File[]
getConfigurationResolveReportsInCache
(String resolveId) protected ModuleDescriptorParser
getModuleDescriptorParser
(File moduleDescriptorFile) Choose write module descriptor parser for a given moduleDescriptorgetName()
private void
saveLocalParents
(ModuleRevisionId baseMrevId, ModuleDescriptor md, File mdFile, Properties paths) void
void
setBasedir
(File basedir) void
void
setResolvedIvyPattern
(String cacheResolvedIvyPattern) void
setResolvedIvyPropertiesPattern
(String cacheResolvedIvyPropertiesPattern) void
setSettings
(IvySettings settings) toString()
-
Field Details
-
DEFAULT_CACHE_RESOLVED_IVY_PATTERN
- See Also:
-
DEFAULT_CACHE_RESOLVED_IVY_PROPERTIES_PATTERN
- See Also:
-
resolvedIvyPattern
-
resolvedIvyPropertiesPattern
-
basedir
-
name
-
settings
-
-
Constructor Details
-
DefaultResolutionCacheManager
public DefaultResolutionCacheManager() -
DefaultResolutionCacheManager
-
-
Method Details
-
setSettings
- Specified by:
setSettings
in interfaceIvySettingsAware
-
getResolutionCacheRoot
- Specified by:
getResolutionCacheRoot
in interfaceResolutionCacheManager
-
getBasedir
-
setBasedir
-
getResolvedIvyPattern
-
setResolvedIvyPattern
-
getResolvedIvyPropertiesPattern
-
setResolvedIvyPropertiesPattern
-
getName
-
setName
-
getResolvedIvyFileInCache
- Specified by:
getResolvedIvyFileInCache
in interfaceResolutionCacheManager
-
getResolvedIvyPropertiesInCache
- Specified by:
getResolvedIvyPropertiesInCache
in interfaceResolutionCacheManager
-
getConfigurationResolveReportInCache
- Specified by:
getConfigurationResolveReportInCache
in interfaceResolutionCacheManager
-
getConfigurationResolveReportsInCache
- Specified by:
getConfigurationResolveReportsInCache
in interfaceResolutionCacheManager
-
getResolvedModuleDescriptor
public ModuleDescriptor getResolvedModuleDescriptor(ModuleRevisionId mrid) throws ParseException, IOException - Specified by:
getResolvedModuleDescriptor
in interfaceResolutionCacheManager
- Throws:
ParseException
IOException
-
getModuleDescriptorParser
Choose write module descriptor parser for a given moduleDescriptor- Parameters:
moduleDescriptorFile
- a given module descriptor- Returns:
- ModuleDescriptorParser
-
saveResolvedModuleDescriptor
- Specified by:
saveResolvedModuleDescriptor
in interfaceResolutionCacheManager
- Throws:
ParseException
IOException
-
assertInsideCache
- Throws:
IllegalArgumentException
- if the given path points outside of the cache.
-
saveLocalParents
private void saveLocalParents(ModuleRevisionId baseMrevId, ModuleDescriptor md, File mdFile, Properties paths) throws ParseException, IOException - Throws:
ParseException
IOException
-
toString
-
clean
public void clean()Description copied from interface:ResolutionCacheManager
Cleans the whole cache.- Specified by:
clean
in interfaceResolutionCacheManager
-