@InputFiles public Set<File> getClasspath() { return classpath; }
public class ChangedFileReportTask extends DefaultTask @InputFiles @SkipWhenEmpty FileCollection idlFiles = getProject().files(); @InputFiles @SkipWhenEmpty FileCollection snapshotFiles = getProject().files();
@Classpath @InputFiles private Iterable<File> scanClasspath;
@InputFiles @Classpath FileCollection getJarDependencies() { //Thanks to Xavier Durcrohet for this //https://android.googlesource.com/platform/tools/base/+/gradle_3.0.0/build-system/gradle-core/src/main/java/com/android/build/gradle/internal/scope/VariantScopeImpl.java#1037 Action<AttributeContainer> attributes = container -> container.attribute(ARTIFACT_TYPE, AndroidArtifacts.ArtifactType.CLASSES.getType()); boolean lenientMode = false; return variant .getCompileConfiguration() .getIncoming() .artifactView( config -> { config.attributes(attributes); config.lenient(lenientMode); }) .getArtifacts() .getArtifactFiles(); }
/** Internal use only. */ @InputFiles @Deprecated public Iterable<File> getInternalTarget() { // used to combine the special cache file and the real target return Iterables.concat(ImmutableList.of(getCacheFile()), target); }
/** * @return the classpath to use to load the Gosu compiler. */ @InputFiles public FileCollection getGosuClasspath() { return _gosuClasspath; }
@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(); }
@InputFiles @Optional public Collection<File> getJavaResourceFiles() { return javaResourceFiles; }
@InputFiles public List<File> getResultInputs() { List<File> list = Lists.newArrayList(); for (AndroidTestTask task : subTasks) { list.add(task.getResultsDir()); } return list; }
@CompileClasspath @InputFiles public FileCollection getClasspath() { return classpath; }
@InputFiles @SkipWhenEmpty FileCollection getClasses() { return classes; }
@InputFiles @Optional public Collection<File> getJarJarRuleFiles() { return jarJarRuleFiles; }
@SkipWhenEmpty @InputFiles public FileCollection getSources() { return sources; }
@InputFiles public FileCollection getPatches() { return getProject().fileTree(patchDir); }
@InputFiles public FileCollection getOriginalSources() { return getProject().files(originals); }
@InputFiles public FileCollection getDirtySources() { return getProject().files(dirty); }
@InputFiles public FileCollection getInjects() { return getProject().fileTree(injectDir); }
@InputFiles public FileCollection getCleanSources() { return getProject().files(clean); }
@InputFiles protected FileCollection getConfigurationFileCollection() { return getProject().files(configurationFiles); }
@InputFiles @SkipWhenEmpty public FileCollection getSource() { return Namespaces.getSources(sourceRoots, Namespaces.CLOJURESCRIPT_EXTENSIONS); }