Package org.apache.ivy.core.cache

Examples of org.apache.ivy.core.cache.CacheManager


            // verify that the module in the default cache doesn't exist
            assertEquals("Default cache is not empty", cache.list().length, 0);

            // verify the artifact does exist in the non-default cache.
            CacheManager nonDefaultManager = ivy.getCacheManager(cache2);
            assertTrue(TestHelper.getArchiveFileInCache(nonDefaultManager, "org1", "mod1.1", "1.0",
                "mod1.1", "jar", "jar").exists());
            assertTrue(nonDefaultManager.getResolvedIvyFileInCache(resolvedModule).exists());
            assertTrue(nonDefaultManager.getResolvedIvyPropertiesInCache(resolvedModule).exists());
            assertNotNull(nonDefaultManager.getSavedArtifactOrigin((Artifact) report.getArtifacts()
                    .get(0)));
        } finally {
            // delete the non-default cache
            Delete del = new Delete();
            del.setProject(new Project());
View Full Code Here


        assertFound("org6#mod6.4;3", t3.getFinalResult());
    }   

   
    private CacheManager newCacheManager(IvySettings settings) {
        CacheManager cacheManager = new CacheManager(settings, new File("build/test/cache"));
        cacheManager.setLockStrategy(new ArtifactLockStrategy());
        return cacheManager;
    }
View Full Code Here

TOP

Related Classes of org.apache.ivy.core.cache.CacheManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.