public int retrieve(ModuleId moduleId, String[] confs, File cache, String destFilePattern,
String destIvyPattern, Filter artifactFilter, boolean sync, boolean useOrigin,
boolean makeSymlinks) {
try {
return ivy.retrieve(new ModuleRevisionId(moduleId, Ivy.getWorkingRevision()),
destFilePattern, new RetrieveOptions().setConfs(confs).setCache(
CacheManager.getInstance(ivy.getSettings(), cache)).setDestIvyPattern(
destIvyPattern).setArtifactFilter(artifactFilter).setSync(sync).setUseOrigin(
useOrigin).setMakeSymlinks(makeSymlinks));
} catch (IOException e) {
throw new RuntimeException(e);