Package org.gradle.api.internal.artifacts.repositories.resolver

Examples of org.gradle.api.internal.artifacts.repositories.resolver.IvyResourcePattern


        } else {
            chopAt = patternPos;
        }
        String pathPart = pattern.substring(0, chopAt);
        String patternPart = pattern.substring(chopAt + 1);
        addForPattern(finders, new File(rootCachesDirectory, pathPart), new IvyResourcePattern(patternPart));
    }
View Full Code Here


    public ArtifactIdentifierFileStore(PathKeyFileStore pathKeyFileStore, TemporaryFileProvider temporaryFileProvider) {
        super(pathKeyFileStore, temporaryFileProvider, toTransformer(GROUP_PATTERN), toTransformer(NAME_PATTERN));
    }

    private static Transformer<String, ModuleComponentArtifactMetaData> toTransformer(final String pattern) {
        final ResourcePattern resourcePattern = new IvyResourcePattern(pattern);
        return new Transformer<String, ModuleComponentArtifactMetaData>() {
             public String transform(ModuleComponentArtifactMetaData artifact) {
                 return resourcePattern.getLocation(artifact).getPath();
             }
         };
    }
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.artifacts.repositories.resolver.IvyResourcePattern

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.