in src/main/java/org/apache/sling/installer/factory/model/impl/RepositoryAccess.java [76:96]
private File getArtifact(final Artifact artifact) {
logger.info("Requesting {}", artifact);
final String filePath = (this.repoHome.concat(artifact.getRepositoryPath())).replace('/', File.separatorChar);
logger.info("Trying to fetch artifact from {}", filePath);
final File f = new File(filePath);
if ( !f.exists() || !f.isFile() || !f.canRead() ) {
logger.info("Trying to download {}", artifact.getRepositoryPath());
try {
this.downloadArtifact(artifact);
} catch ( final IOException ioe ) {
logger.debug("Error downloading file.", ioe);
}
if ( !f.exists() || !f.isFile() || !f.canRead() ) {
logger.info("Artifact not found {}", artifact);
return null;
}
}
return f;
}