} catch (IOException e) {
throw new BuildException("Unable to compute the path to the local repository", e);
}
ResolveReport resolve = resolve(ivy, md, conf);
RetrieveOptions options = new RetrieveOptions();
options.setSync(false);
options.setResolveId(resolve.getResolveId());
options.setConfs(new String[] { conf });
options.setDestIvyPattern("${easyant.localrepo.basedir}/[organization]/[module]/[revision]/ivy.xml");
try {
ivy.retrieve(md.getModuleRevisionId(),
"${easyant.localrepo.basedir}/[organization]/[module]/[revision]/[type]s/[artifact].[ext]", options);
} catch (IOException e) {
throw new BuildException("Unable to build the local repository", e);