return new Path(metaArtifactFile.getAbsolutePath());
} else if (attempt.exists()) {
return null;
} else {
Message.info("checking " + metaType + " for " + artifact);
ivy.getResolveEngine().download(metaArtifact, new DownloadOptions());
if (metaArtifactFile.exists()) {
return new Path(metaArtifactFile.getAbsolutePath());
}
// meta artifact not found, we store this information to avoid other
// attempts later
Message.info(metaType + " not found for " + artifact);
try {
attempt.getParentFile().mkdirs();
attempt.createNewFile();
} catch (IOException e) {
Message.error("impossible to create attempt file " + attempt + ": " + e);
}
return null;
}
}
Message.info("checking " + metaType + " for " + artifact);
ArtifactDownloadReport metaAdr = ivy.getResolveEngine().download(metaArtifact,
new DownloadOptions());
if (metaAdr.getLocalFile() != null && metaAdr.getLocalFile().exists()) {
return new Path(metaAdr.getLocalFile().getAbsolutePath());
}
Message.info(metaType + " not found for " + artifact);
Message