Java 类org.gradle.api.tasks.OutputFiles 实例源码

项目:Reer    文件:Sign.java   
@OutputFiles
public Map<String, File> getOutputFiles() {
    ArrayListMultimap<String, File> filesWithPotentialNameCollisions = ArrayListMultimap.create();
    for (Signature signature : getSignatures()) {
        String name = JAVA_PARTS.matcher(signature.getName()).replaceAll("_");
        if (name.length() > 0 && !Character.isJavaIdentifierStart(name.codePointAt(0))) {
            name = "_" + name.substring(1);
        }

        filesWithPotentialNameCollisions.put(name, signature.getToSign());
    }

    Map<String, File> files = Maps.newHashMap();
    for (Map.Entry<String, Collection<File>> entry : filesWithPotentialNameCollisions.asMap().entrySet()) {
        File[] filesWithSameName = entry.getValue().toArray(new File[0]);
        boolean hasMoreThanOneFileWithSameName = filesWithSameName.length > 1;
        for (int i = 0; i < filesWithSameName.length; i++) {
            File file = filesWithSameName[i];
            String key = entry.getKey();
            if (hasMoreThanOneFileWithSameName) {
                key += "$" + (i + 1);
            }
            files.put(key, file);
        }
    }

    return files;
}
项目:Reer    文件:ReportContainer.java   
@Incubating
@OutputFiles
Map<String, File> getEnabledFileReportDestinations();
项目:Reer    文件:OutputFilesPropertyAnnotationHandler.java   
@Override
public Class<? extends Annotation> getAnnotationType() {
    return OutputFiles.class;
}
项目:atlas    文件:StandardizeLibManifestTask.java   
@OutputFiles
private Collection<File> getOutputFiles() {
    return appVariantContext.manifestMap.values();
}
项目:gradle-project-config    文件:EclipseAnnotationsTask.java   
/**
 * Get the created annotation JARs
 *
 * @return Created annotation JARs
 */
@OutputFiles
public Set<File> getAnnotationJars() {
    return this.jars.stream().map(f -> getTargetFile(Validate.notNull(f)))
            .collect(Collectors.toCollection(() -> new HashSet<>()));
}
项目:Pushjet-Android    文件:TaskReportContainer.java   
@OutputFiles
public Set<File> getEnabledFileReportDestinations() {
    return CollectionUtils.collect(CollectionUtils.filter(getEnabled(), IS_FILE_OUTPUT_TYPE), toFile);
}
项目:Pushjet-Android    文件:TaskReportContainer.java   
@OutputFiles
public Set<File> getEnabledFileReportDestinations() {
    return CollectionUtils.collect(CollectionUtils.filter(getEnabled(), IS_FILE_OUTPUT_TYPE), toFile);
}
项目:jarjar    文件:JarjarTask.java   
@OutputFiles
public FileCollection getBypassedArchives() throws MalformedPatternException {
    return sourceFiles.filter(new FilterSpec("Bypassing archive", toPatterns(archiveBypasses), true));
}
项目:bazel    文件:JarjarTask.java   
@OutputFiles
public FileCollection getBypassedArchives() throws MalformedPatternException {
    return sourceFiles.filter(new FilterSpec("Bypassing archive", toPatterns(archiveBypasses), true));
}
项目:gradle-download-task    文件:Download.java   
/**
 * @return a list of files created by this task (i.e. the destination files)
 */
@OutputFiles
public List<File> getOutputFiles() {
    return action.getOutputFiles();
}