setIvyPatterns(new ArrayList());
setArtifactPatterns(new ArrayList());
RepositoryCacheManager[] caches = getSettings().getRepositoryCacheManagers();
for (int i = 0; i < caches.length; i++) {
if (caches[i] instanceof DefaultRepositoryCacheManager) {
DefaultRepositoryCacheManager c = (DefaultRepositoryCacheManager) caches[i];
addIvyPattern(c.getBasedir().getAbsolutePath() + "/" + c.getIvyPattern());
addArtifactPattern(
c.getBasedir().getAbsolutePath() + "/" + c.getArtifactPattern());
} else {
Message.verbose(
caches[i] + ": cache implementation is not a DefaultRepositoryCacheManager:"
+ " unable to configure cache resolver with it");
}