use of org.gradle.api.internal.artifacts.repositories.resolver.IvyResolver in project gradle by gradle.
the class DefaultFlatDirArtifactRepository method createRealResolver.
private IvyResolver createRealResolver() {
Set<File> dirs = getDirs();
if (dirs.isEmpty()) {
throw new InvalidUserDataException("You must specify at least one directory for a flat directory repository.");
}
IvyResolver resolver = new IvyResolver(getName(), transportFactory.createTransport("file", getName(), Collections.<Authentication>emptyList()), locallyAvailableResourceFinder, false, artifactFileStore, ivyContextManager, moduleIdentifierFactory, null);
for (File root : dirs) {
resolver.addArtifactLocation(root.toURI(), "/[artifact]-[revision](-[classifier]).[ext]");
resolver.addArtifactLocation(root.toURI(), "/[artifact](-[classifier]).[ext]");
}
return resolver;
}
use of org.gradle.api.internal.artifacts.repositories.resolver.IvyResolver in project gradle by gradle.
the class DefaultIvyArtifactRepository method createRealResolver.
protected IvyResolver createRealResolver() {
URI uri = getUrl();
Set<String> schemes = new LinkedHashSet<String>();
layout.addSchemes(uri, schemes);
additionalPatternsLayout.addSchemes(uri, schemes);
IvyResolver resolver = createResolver(schemes);
layout.apply(uri, resolver);
additionalPatternsLayout.apply(uri, resolver);
return resolver;
}
Aggregations