Java 类org.gradle.api.tasks.PathSensitive 实例源码

项目:Reer    文件:JDepend.java   
/**
 * The directory containing the classes to be analyzed.
 */
@PathSensitive(PathSensitivity.RELATIVE)
@InputDirectory
@SkipWhenEmpty
public File getClassesDir() {
    return classesDir;
}
项目:Reer    文件:FindBugs.java   
/**
 * The classes to be analyzed.
 */
@SkipWhenEmpty
@PathSensitive(PathSensitivity.RELATIVE)
@InputFiles
public FileCollection getClasses() {
    return classes;
}
项目:Reer    文件:JacocoReport.java   
/**
 * Additional class dirs that coverage data should be reported for.
 */
@Optional
@PathSensitive(PathSensitivity.RELATIVE)
@InputFiles
public FileCollection getAdditionalClassDirs() {
    return additionalClassDirs;
}
项目:Reer    文件:JacocoReport.java   
/**
 * Additional source dirs for the classes coverage data is being reported for.
 */
@Optional
@PathSensitive(PathSensitivity.RELATIVE)
@InputFiles
public FileCollection getAdditionalSourceDirs() {
    return additionalSourceDirs;
}
项目:Reer    文件:ValidateTaskProperties.java   
/**
 * The directory containing the classes to validate.
 */
@PathSensitive(PathSensitivity.RELATIVE)
@InputDirectory
@SkipWhenEmpty
public File getClassesDir() {
    return classesDir;
}
项目:Reer    文件:War.java   
/**
 * Returns the {@code web.xml} file to include in the WAR archive. When {@code null}, no {@code web.xml} file is included in the WAR.
 *
 * @return The {@code web.xml} file.
 */
@InputFile
@PathSensitive(PathSensitivity.NONE)
@Optional
public File getWebXml() {
    return webXml;
}
项目:javaccPlugin    文件:AbstractJavaccTask.java   
@InputDirectory
@SkipWhenEmpty
@PathSensitive(PathSensitivity.NONE)
@Optional
public File getInputDirectory() {
    if (!inputDirectory.exists()) {
        return null;
    } else {
        return inputDirectory;
    }
}
项目:Reer    文件:Pmd.java   
/**
 * {@inheritDoc}
 */
@Override
@PathSensitive(PathSensitivity.RELATIVE)
public FileTree getSource() {
    return super.getSource();
}
项目:Reer    文件:Pmd.java   
/**
 * 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;
}
项目:Reer    文件:FindBugs.java   
/**
 * {@inheritDoc}
 */
@Override
@PathSensitive(PathSensitivity.RELATIVE)
public FileTree getSource() {
    return super.getSource();
}
项目:Reer    文件:CodeNarc.java   
/**
 * {@inheritDoc}
 */
@Override
@PathSensitive(PathSensitivity.RELATIVE)
public FileTree getSource() {
    return super.getSource();
}
项目:Reer    文件:GroovyCompile.java   
/**
 * {@inheritDoc}
 */
@Override
@PathSensitive(PathSensitivity.NAME_ONLY) // Java source files are supported, too. Therefore we should care about the names.
public FileTree getSource() {
    return super.getSource();
}
项目:Reer    文件:Groovydoc.java   
/**
 * {@inheritDoc}
 */
@PathSensitive(PathSensitivity.RELATIVE)
@Override
public FileTree getSource() {
    return super.getSource();
}
项目:Reer    文件:JacocoReport.java   
/**
 * Collection of execution data files to analyze.
 */
@PathSensitive(PathSensitivity.NONE)
@InputFiles
public FileCollection getExecutionData() {
    return executionData;
}
项目:Reer    文件:JacocoReport.java   
/**
 * Source sets that coverage should be reported for.
 */
@PathSensitive(PathSensitivity.RELATIVE)
@InputFiles
public FileCollection getSourceDirectories() {
    return sourceDirectories;
}
项目:Reer    文件:JacocoReport.java   
/**
 * Source sets that coverage should be reported for.
 */
@PathSensitive(PathSensitivity.RELATIVE)
@InputFiles
public FileCollection getClassDirectories() {
    return classDirectories;
}
项目:Reer    文件:JacocoMerge.java   
/**
 * Collection of execution data files to merge.
 */
@PathSensitive(PathSensitivity.RELATIVE)
@InputFiles
public FileCollection getExecutionData() {
    return executionData;
}
项目:Reer    文件:JavaCompile.java   
/**
 * {@inheritDoc}
 */
@Override
@PathSensitive(PathSensitivity.NAME_ONLY)
public FileTree getSource() {
    return super.getSource();
}
项目:Reer    文件:Javadoc.java   
/**
 * {@inheritDoc}
 */
@PathSensitive(PathSensitivity.RELATIVE)
@Override
public FileTree getSource() {
    return super.getSource();
}
项目:Reer    文件:Test.java   
/**
 * 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);
}
项目:Reer    文件:PropertyAnnotationUtils.java   
public static PathSensitivity getPathSensitivity(TaskPropertyActionContext context) {
    PathSensitive sensitivity = context.getAnnotation(PathSensitive.class);
    return sensitivity != null
        ? sensitivity.value()
        : PathSensitivity.ABSOLUTE;
}
项目:JGiven    文件:JGivenReport.java   
@Optional
@InputFile
@PathSensitive( PathSensitivity.NONE )
File getCustomCssFile();
项目:JGiven    文件:JGivenReport.java   
@Optional
@InputFile
@PathSensitive( PathSensitivity.NONE )
File getCustomJsFile();
项目:JGiven    文件:JGivenReportTask.java   
@InputDirectory
@SkipWhenEmpty
@PathSensitive( PathSensitivity.NONE )
public File getResults() {
    return results;
}
项目:Reer    文件:Checkstyle.java   
/**
 * {@inheritDoc}
 *
 * <p>The sources for this task are relatively relocatable even though it produces output that
 * includes absolute paths. This is a compromise made to ensure that results can be reused
 * between different builds. The downside is that up-to-date results, or results loaded
 * from cache can show different absolute paths than would be produced if the task was
 * executed.</p>
 */
@Override
@PathSensitive(PathSensitivity.RELATIVE)
public FileTree getSource() {
    return super.getSource();
}
项目:Reer    文件:TextResource.java   
/**
 * Returns the input files registered when this resource is used as task input.
 * Not typically used directly.
 *
 * @return the input files registered when this resource is used as task input
 */
@PathSensitive(PathSensitivity.NONE)
@InputFiles
@Optional
FileCollection getInputFiles();