Java Code Examples for org.gradle.api.tasks.OutputFiles

The following examples show how to use org.gradle.api.tasks.OutputFiles. These examples are extracted from open source projects. 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 Project: javaide   Source File: GenerateSplitAbiRes.java    License: 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 Project: javaide   Source File: PackageSplitAbi.java    License: 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 Project: javaide   Source File: PackageSplitRes.java    License: 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
@OutputFiles
public Set<File> getEnabledFileReportDestinations() {
    return CollectionUtils.collect(CollectionUtils.filter(getEnabled(), IS_FILE_OUTPUT_TYPE), toFile);
}
 
Example 5
@OutputFiles
public Set<File> getEnabledFileReportDestinations() {
    return CollectionUtils.collect(CollectionUtils.filter(getEnabled(), IS_FILE_OUTPUT_TYPE), toFile);
}
 
Example 6
Source Project: native-samples   Source File: CMake.java    License: 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 Project: native-samples   Source File: CMake.java    License: 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 Project: native-samples   Source File: CMake.java    License: 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 Project: native-samples   Source File: CMake.java    License: 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
@OutputFiles
public Set<File> getEnabledFileReportDestinations() {
    return CollectionUtils.collect(CollectionUtils.filter(getEnabled(), IS_FILE_OUTPUT_TYPE), toFile);
}
 
Example 11
@OutputFiles
public Set<File> getEnabledFileReportDestinations() {
    return CollectionUtils.collect(CollectionUtils.filter(getEnabled(), IS_FILE_OUTPUT_TYPE), toFile);
}
 
Example 12
Source Project: gradle-download-task   Source File: Download.java    License: 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();
}