org.gradle.api.tasks.InputFiles Java Examples

The following examples show how to use org.gradle.api.tasks.InputFiles. 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: PackageApplication.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
@InputFiles
public FileTree getNativeLibraries() {
    FileTree src = null;
    Set<File> folders = getJniFolders();
    if (!folders.isEmpty()) {
        src = getProject().files(new ArrayList<Object>(folders)).getAsFileTree();
    }

    return src == null ? getProject().files().getAsFileTree() : src;
}
 
Example #2
Source File: TestReport.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Returns the set of binary test results to include in the report.
 */
@InputFiles @SkipWhenEmpty
public FileCollection getTestResultDirs() {
    UnionFileCollection dirs = new UnionFileCollection();
    for (Object result : results) {
        addTo(result, dirs);
    }
    return dirs;
}
 
Example #3
Source File: TestReport.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Returns the set of binary test results to include in the report.
 */
@InputFiles @SkipWhenEmpty
public FileCollection getTestResultDirs() {
    UnionFileCollection dirs = new UnionFileCollection();
    for (Object result : results) {
        addTo(result, dirs);
    }
    return dirs;
}
 
Example #4
Source File: MergeResources.java    From javafxmobile-plugin with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@Optional
@InputFiles
@PathSensitive(PathSensitivity.RELATIVE)
public FileCollection getLibraries() {
    if (libraries != null) {
        return libraries.getArtifactFiles();
    }

    return null;
}
 
Example #5
Source File: ConvertConfigsToJsonTask.java    From curiostack with MIT License 5 votes vote down vote up
@InputFiles
public Iterable<File> getInputFiles() {
  return getProject()
      .fileTree(
          getProject().getProjectDir(),
          files ->
              files.include("*.tf").include("*.tf.yaml").include("*.tf.yml").include("*/**/*"));
}
 
Example #6
Source File: StageAppYamlExtension.java    From app-gradle-plugin with Apache License 2.0 5 votes vote down vote up
/** This method is purely for incremental build calculations. */
@Optional
@InputFiles
public FileCollection getExtraFilesDirectoriesAsInputFiles() {
  if (extraFilesDirectories == null) {
    return null;
  }
  FileCollection files = project.files();
  for (File directory : extraFilesDirectories) {
    files = files.plus(project.fileTree(directory));
  }
  return files;
}
 
Example #7
Source File: AbstractPythonTestSourceDefaultTask.java    From pygradle with Apache License 2.0 5 votes vote down vote up
@InputFiles
FileCollection getTestFiles() {
    ConfigurableFileTree componentFiles = getProject().fileTree(getPythonExtension().testDir);
    componentFiles.exclude(standardExcludes());
    if (testSource != null) {
        return testSource.plus(componentFiles);
    }
    return componentFiles;
}
 
Example #8
Source File: AbstractPythonMainSourceDefaultTask.java    From pygradle with Apache License 2.0 5 votes vote down vote up
@InputFiles
public FileCollection getSourceFiles() {
    ConfigurableFileTree componentFiles = getProject().fileTree(getComponent().srcDir);
    componentFiles.exclude(standardExcludes());
    if (null != sources) {
        return sources.plus(componentFiles);
    }
    return componentFiles;
}
 
Example #9
Source File: PackageSplitRes.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
@InputFiles
public List<File> getInputFiles() {
    final ImmutableList.Builder<File> builder = ImmutableList.builder();
    forEachInputFile(new SplitFileHandler() {
        @Override
        public void execute(String split, File file) {
            builder.add(file);
        }
    });
    return builder.build();
}
 
Example #10
Source File: ExtractDiscoveryDocZipsTask.java    From endpoints-framework-gradle-plugin with Apache License 2.0 4 votes vote down vote up
@InputFiles
public Collection<File> getDiscoveryDocZips() {
  return discoveryDocZips;
}
 
Example #11
Source File: GenerateClientLibrariesTask.java    From endpoints-framework-gradle-plugin with Apache License 2.0 4 votes vote down vote up
@InputFiles
public List<File> getDiscoveryDocs() {
  return discoveryDocs;
}
 
Example #12
Source File: Make.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@InputFiles
public final ConfigurableFileCollection getMakeFiles() {
    return makeFiles;
}
 
Example #13
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@InputFiles
public ConfigurableFileCollection getIncludeDirs() {
    return includeDirs;
}
 
Example #14
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@InputFiles
public ConfigurableFileCollection getLinkFiles() {
    return linkFiles;
}
 
Example #15
Source File: EndpointsArtifactTask.java    From endpoints-framework-gradle-plugin with Apache License 2.0 4 votes vote down vote up
@InputFiles
public FileCollection getClassesDirs() {
  return classesDirs;
}
 
Example #16
Source File: ParallelWheelGenerationTask.java    From pygradle with Apache License 2.0 4 votes vote down vote up
@InputFiles
public FileCollection getFilesToConvert() {
    return filesToConvert;
}
 
Example #17
Source File: Make.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@InputFiles
public final ConfigurableFileCollection getMakeFiles() {
    return makeFiles;
}
 
Example #18
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@InputFiles
public ConfigurableFileCollection getLinkFiles() {
    return linkFiles;
}
 
Example #19
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@InputFiles
public ConfigurableFileCollection getIncludeDirs() {
    return includeDirs;
}
 
Example #20
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@InputFiles
public FileCollection getCMakeLists() {
    return getProject().fileTree(projectDirectory, it -> it.include("**/CMakeLists.txt"));
}
 
Example #21
Source File: ClojureCheck.java    From clojurephant with Apache License 2.0 4 votes vote down vote up
@InputFiles
@SkipWhenEmpty
public FileCollection getSource() {
  return Namespaces.getSources(sourceRoots, Namespaces.CLOJURE_EXTENSIONS);
}
 
Example #22
Source File: ClojureCompile.java    From clojurephant with Apache License 2.0 4 votes vote down vote up
@InputFiles
@SkipWhenEmpty
public FileTree getSource() {
  return Namespaces.getSources(sourceRoots, Namespaces.CLOJURE_EXTENSIONS);
}
 
Example #23
Source File: ClojureScriptCompile.java    From clojurephant with Apache License 2.0 4 votes vote down vote up
@InputFiles
@SkipWhenEmpty
public FileCollection getSource() {
  return Namespaces.getSources(sourceRoots, Namespaces.CLOJURESCRIPT_EXTENSIONS);
}
 
Example #24
Source File: GenerateProtoTask.java    From curiostack with MIT License 4 votes vote down vote up
@InputFiles
@PathSensitive(PathSensitivity.RELATIVE)
public SourceDirectorySet getIncludes() {
  return includeDirs;
}
 
Example #25
Source File: GenerateProtoTask.java    From curiostack with MIT License 4 votes vote down vote up
@InputFiles
@PathSensitive(PathSensitivity.RELATIVE)
public SourceDirectorySet getSources() {
  return sources;
}
 
Example #26
Source File: ExtractProtosTask.java    From curiostack with MIT License 4 votes vote down vote up
@InputFiles
public ConfigurableFileCollection getFiles() {
  return files;
}
 
Example #27
Source File: ExportDocsTask.java    From curiostack with MIT License 4 votes vote down vote up
@InputFiles
@PathSensitive(PathSensitivity.RELATIVE)
public Property<ConfigurableFileTree> getMdFiles() {
  return mdFiles;
}
 
Example #28
Source File: NativeImageTask.java    From curiostack with MIT License 4 votes vote down vote up
@InputFiles
public ConfigurableFileCollection getClasspath() {
  return classpath;
}
 
Example #29
Source File: ExtractJavaResourcesTask.java    From javaide with GNU General Public License v3.0 4 votes vote down vote up
@InputFiles
public Set<File> getJarInputFiles() {
    return jarInputFiles;
}
 
Example #30
Source File: MergeFileTask.java    From javaide with GNU General Public License v3.0 4 votes vote down vote up
@InputFiles
public Set<File> getInputFiles() {
    return mInputFiles;
}