/** * The classes to be analyzed. */ @SkipWhenEmpty @PathSensitive(PathSensitivity.RELATIVE) @InputFiles public FileCollection getClasses() { return classes; }
/** * Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist. * * @return The source. */ // This method is here as the Gradle DSL generation can't handle properties with setters and getters in different classes. @InputFiles @SkipWhenEmpty public FileTree getSource() { return super.getSource(); }
/** * Additional class dirs that coverage data should be reported for. */ @Optional @PathSensitive(PathSensitivity.RELATIVE) @InputFiles public FileCollection getAdditionalClassDirs() { return additionalClassDirs; }
/** * Additional source dirs for the classes coverage data is being reported for. */ @Optional @PathSensitive(PathSensitivity.RELATIVE) @InputFiles public FileCollection getAdditionalSourceDirs() { return additionalSourceDirs; }
/** * 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; }
@InputFiles FileCollection getInputFiles() { if(getSrcDir().exists() == false) throw new RuntimeException("srcDir doesn't exists"); if(getSrcDir().isDirectory() == false) throw new RuntimeException("srcDir isn't directory"); ConfigurableFileTree fileTree = getProject().fileTree(getSrcDir()); return fileTree; }
@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; }
@InputFiles public List<File> getResultInputs() { List<File> list = Lists.newArrayList(); for (AndroidTestTask task : subTasks) { list.add(task.getResultsDir()); } return list; }
@Override @CompileClasspath // Gradle 3.4+ @Classpath // Gradle 3.2+ @InputFiles public FileCollection getClasspath() { return super.getClasspath(); }
/** 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); }
@InputFiles @Nonnull // Not @Optional private FileCollection getIncludeFiles() { IncludeFileCollector collector = new IncludeFileCollector(); collectUnknown(collector, source); collectDirs(collector, getIncludeDirs()); for (File file : collector.out) getLogger().info("Including " + file); return collector.out; }
/** * The custom rule set files to be used. See the <a href="http://pmd.sourceforge.net/howtomakearuleset.html">official documentation</a> for how to author a rule set file. * * Example: ruleSetFiles = files("config/pmd/myRuleSets.xml") */ @InputFiles @PathSensitive(PathSensitivity.NONE) public FileCollection getRuleSetFiles() { return ruleSetFiles; }
@InputFiles public FileCollection getJsHint() { return getProject().files(jsHint); }
@InputFiles public FileCollection getCoffeeScriptJs() { return getProject().files(coffeeScriptJs); }
/** * Collection of execution data files to analyze. */ @PathSensitive(PathSensitivity.NONE) @InputFiles public FileCollection getExecutionData() { return executionData; }
/** * Source sets that coverage should be reported for. */ @PathSensitive(PathSensitivity.RELATIVE) @InputFiles public FileCollection getSourceDirectories() { return sourceDirectories; }
/** * Source sets that coverage should be reported for. */ @PathSensitive(PathSensitivity.RELATIVE) @InputFiles public FileCollection getClassDirectories() { return classDirectories; }
/** * Collection of execution data files to merge. */ @PathSensitive(PathSensitivity.RELATIVE) @InputFiles public FileCollection getExecutionData() { return executionData; }
/** * The source object files to be passed to the linker. */ @InputFiles public FileCollection getSource() { return source; }
/** * The library files to be passed to the linker. */ @InputFiles public FileCollection getLibs() { return libs; }
/** * The source object files to be passed to the archiver. */ @InputFiles @SkipWhenEmpty public FileCollection getSource() { return source; }
/** * The library files that should be installed. */ @InputFiles public FileCollection getLibs() { return libs; }
@InputFiles public FileCollection getPchObjects() { return pchObjects; }
@Optional @InputFiles List<File> getExtDirs();
@Optional @InputFiles List<File> getOptionFiles();
/** * Returns the classes files to scan for test classes. * * @return The candidate class files. */ @PathSensitive(PathSensitivity.RELATIVE) @InputFiles public FileTree getCandidateClassFiles() { return getProject().fileTree(getTestClassesDir()).matching(patternSet); }
/** * Returns the source files to be compiled. */ @InputFiles public FileCollection getSource() { return source; }
/** * Returns the header directories to be used for compilation. */ @InputFiles public FileCollection getIncludes() { return includes; }
@InputFiles @SkipWhenEmpty public FileCollection getSource() { return source; }
public Class<? extends Annotation> getAnnotationType() { return InputFiles.class; }
@Override public Class<? extends Annotation> getOverriddenAnnotationType() { return InputFiles.class; }
@InputFiles public Iterable<File> getInputFiles() { return Iterables.transform(signatures, SIGNATURE_TO_SIGN_FILE_FUNCTION); }
@InputFiles @Optional public Collection<File> getInputFiles() { return inputFiles; }
@InputFiles @Optional public Collection<File> getAwbApkFiles() { return awbApkFiles; }
@InputFiles public FileCollection getFiles() { return files; }
@InputFiles public List<File> getDiscoveryDocs() { return discoveryDocs; }
@InputFiles public Collection<File> getDiscoveryDocZips() { return discoveryDocZips; }