本文整理汇总了Java中org.gradle.api.tasks.InputFiles类的典型用法代码示例。如果您正苦于以下问题:Java InputFiles类的具体用法?Java InputFiles怎么用?Java InputFiles使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InputFiles类属于org.gradle.api.tasks包,在下文中一共展示了InputFiles类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getClasses
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
/**
* The classes to be analyzed.
*/
@SkipWhenEmpty
@PathSensitive(PathSensitivity.RELATIVE)
@InputFiles
public FileCollection getClasses() {
return classes;
}
示例2: getSource
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
/**
* 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();
}
示例3: getAdditionalClassDirs
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
/**
* Additional class dirs that coverage data should be reported for.
*/
@Optional
@PathSensitive(PathSensitivity.RELATIVE)
@InputFiles
public FileCollection getAdditionalClassDirs() {
return additionalClassDirs;
}
示例4: getAdditionalSourceDirs
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
/**
* Additional source dirs for the classes coverage data is being reported for.
*/
@Optional
@PathSensitive(PathSensitivity.RELATIVE)
@InputFiles
public FileCollection getAdditionalSourceDirs() {
return additionalSourceDirs;
}
示例5: getTestResultDirs
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
/**
* 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;
}
示例6: getInputFiles
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
@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;
}
示例7: getNativeLibraries
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
@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;
}
示例8: getResultInputs
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
@InputFiles
public List<File> getResultInputs() {
List<File> list = Lists.newArrayList();
for (AndroidTestTask task : subTasks) {
list.add(task.getResultsDir());
}
return list;
}
示例9: getClasspath
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
@Override
@CompileClasspath // Gradle 3.4+
@Classpath // Gradle 3.2+
@InputFiles
public FileCollection getClasspath() {
return super.getClasspath();
}
示例10: getInternalTarget
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
/** 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);
}
示例11: getIncludeFiles
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
@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;
}
示例12: getRuleSetFiles
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
/**
* 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;
}
示例13: getJsHint
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
@InputFiles
public FileCollection getJsHint() {
return getProject().files(jsHint);
}
示例14: getCoffeeScriptJs
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
@InputFiles
public FileCollection getCoffeeScriptJs() {
return getProject().files(coffeeScriptJs);
}
示例15: getExecutionData
import org.gradle.api.tasks.InputFiles; //导入依赖的package包/类
/**
* Collection of execution data files to analyze.
*/
@PathSensitive(PathSensitivity.NONE)
@InputFiles
public FileCollection getExecutionData() {
return executionData;
}