Search in sources :

Example 16 with DefaultRepositoryCacheManager

use of org.apache.ivy.core.cache.DefaultRepositoryCacheManager in project ant-ivy by apache.

the class ArtifactLockStrategyTest method newCacheManager.

private RepositoryCacheManager newCacheManager(IvySettings settings) {
    DefaultRepositoryCacheManager cacheManager = new DefaultRepositoryCacheManager("cache", settings, new File("build/test/cache"));
    cacheManager.setLockStrategy(new CreateFileLockStrategy(false));
    return cacheManager;
}
Also used : DefaultRepositoryCacheManager(org.apache.ivy.core.cache.DefaultRepositoryCacheManager) File(java.io.File)

Aggregations

DefaultRepositoryCacheManager (org.apache.ivy.core.cache.DefaultRepositoryCacheManager)16 File (java.io.File)13 Test (org.junit.Test)11 JarFile (java.util.jar.JarFile)7 ConfigurationResolveReport (org.apache.ivy.core.report.ConfigurationResolveReport)7 ResolveReport (org.apache.ivy.core.report.ResolveReport)7 DefaultArtifact (org.apache.ivy.core.module.descriptor.DefaultArtifact)6 ModuleRevisionId (org.apache.ivy.core.module.id.ModuleRevisionId)6 Ivy (org.apache.ivy.Ivy)5 ArtifactDownloadReport (org.apache.ivy.core.report.ArtifactDownloadReport)5 Artifact (org.apache.ivy.core.module.descriptor.Artifact)3 Date (java.util.Date)2 GregorianCalendar (java.util.GregorianCalendar)2 RepositoryCacheManager (org.apache.ivy.core.cache.RepositoryCacheManager)2 DefaultDependencyDescriptor (org.apache.ivy.core.module.descriptor.DefaultDependencyDescriptor)2 ModuleDescriptor (org.apache.ivy.core.module.descriptor.ModuleDescriptor)2 DownloadReport (org.apache.ivy.core.report.DownloadReport)2 ResolvedModuleRevision (org.apache.ivy.core.resolve.ResolvedModuleRevision)2 ModuleDescriptorParserRegistryTest (org.apache.ivy.plugins.parser.ModuleDescriptorParserRegistryTest)2 FileNotFoundException (java.io.FileNotFoundException)1