org.gradle.api.tasks.OutputFiles Java Examples

The following examples show how to use org.gradle.api.tasks.OutputFiles. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GenerateSplitAbiRes.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
@OutputFiles
public List<File> getOutputFiles() {
    List<File> outputFiles = new ArrayList<File>();
    for (String split : getSplits()) {
        outputFiles.add(getOutputFileForSplit(split));
    }

    return outputFiles;
}
 
Example #2
Source File: PackageSplitAbi.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
@OutputFiles
public List<File> getOutputFiles() {
    ImmutableList.Builder<File> builder = ImmutableList.builder();
    for (ApkOutputFile apk : getOutputSplitFiles()) {
        builder.add(apk.getOutputFile());
    }
    return builder.build();
}
 
Example #3
Source File: PackageSplitRes.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
@OutputFiles
public List<File> getOutputFiles() {
    ImmutableList.Builder<File> builder = ImmutableList.builder();
    for (ApkOutputFile apk : getOutputSplitFiles()) {
        builder.add(apk.getOutputFile());
    }
    return builder.build();
}
 
Example #4
Source File: TaskReportContainer.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@OutputFiles
public Set<File> getEnabledFileReportDestinations() {
    return CollectionUtils.collect(CollectionUtils.filter(getEnabled(), IS_FILE_OUTPUT_TYPE), toFile);
}
 
Example #5
Source File: TaskReportContainer.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@OutputFiles
public Set<File> getEnabledFileReportDestinations() {
    return CollectionUtils.collect(CollectionUtils.filter(getEnabled(), IS_FILE_OUTPUT_TYPE), toFile);
}
 
Example #6
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputFiles
public FileCollection getCmakeFiles() {
    return getProject().fileTree(variantDirectory, it -> it.include("**/CMakeFiles/**/*").include("**/Makefile").include("**/*.cmake"));
}
 
Example #7
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputFiles
public FileCollection getCmakeFiles() {
    return getProject().fileTree(variantDirectory, it -> it.include("**/CMakeFiles/**/*").include("**/Makefile").include("**/*.cmake"));
}
 
Example #8
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputFiles
public FileCollection getCmakeFiles() {
    return getProject().fileTree(variantDirectory, it -> it.include("**/CMakeFiles/**/*").include("**/Makefile").include("**/*.cmake"));
}
 
Example #9
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputFiles
public FileCollection getCmakeFiles() {
    return getProject().fileTree(variantDirectory, it -> it.include("**/CMakeFiles/**/*").include("**/Makefile").include("**/*.cmake"));
}
 
Example #10
Source File: TaskReportContainer.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@OutputFiles
public Set<File> getEnabledFileReportDestinations() {
    return CollectionUtils.collect(CollectionUtils.filter(getEnabled(), IS_FILE_OUTPUT_TYPE), toFile);
}
 
Example #11
Source File: TaskReportContainer.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@OutputFiles
public Set<File> getEnabledFileReportDestinations() {
    return CollectionUtils.collect(CollectionUtils.filter(getEnabled(), IS_FILE_OUTPUT_TYPE), toFile);
}
 
Example #12
Source File: Download.java    From gradle-download-task with Apache License 2.0 4 votes vote down vote up
/**
 * @return a list of files created by this task (i.e. the destination files)
 */
@OutputFiles
public List<File> getOutputFiles() {
    return action.getOutputFiles();
}