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

项目:Reer    文件:GeneratorTask.java   
@Optional @InputFile
protected File getInputFileIfExists() {
    File inputFile = getInputFile();
    if (inputFile == null) {
        File outputFile = getOutputFile();
        if (outputFile != null && outputFile.exists()) {
            return outputFile;
        } else {
            return null;
        }
    } else if (inputFile.exists()) {
        return inputFile;
    } else {
        return null;
    }
}
项目:Reer    文件:FindBugs.java   
/**
 * A filter specifying which bugs are reported. Replaces the {@code includeFilter} property.
 *
 * @since 2.2
 */
@Incubating
@Nested
@Optional
public TextResource getIncludeFilterConfig() {
    return includeFilterConfig;
}
项目:Reer    文件:FindBugs.java   
/**
 * A filter specifying bugs to exclude from being reported. Replaces the {@code excludeFilter} property.
 *
 * @since 2.2
 */
@Incubating
@Nested
@Optional
public TextResource getExcludeFilterConfig() {
    return excludeFilterConfig;
}
项目:Reer    文件:FindBugs.java   
/**
 * A filter specifying baseline bugs to exclude from being reported.
 */
@Incubating
@Nested
@Optional
public TextResource getExcludeBugsFilterConfig() {
    return excludeBugsFilterConfig;
}
项目:Reer    文件:ExcludeRuleNotationConverter.java   
protected ExcludeRule parseMap(@MapKey(ExcludeRule.GROUP_KEY) @Optional String group,
                     @MapKey(ExcludeRule.MODULE_KEY) @Optional String module) {
    if (group == null && module == null) {
        throw new InvalidUserDataException("Dependency exclude rule requires 'group' and/or 'module' specified. For example: [group: 'com.google.collections']");
    }
    return new DefaultExcludeRule(group, module);
}
项目: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;
}
项目:atlas    文件:PrepareAPTask.java   
@Input
@Optional
public Set<String> getAwbBundles() {
    return awbBundles;
}
项目:Reer    文件:FindBugs.java   
/**
 * The analysis effort level. The value specified should be one of {@code min}, {@code default}, or {@code max}. Higher levels increase precision and find more bugs at the expense of running time
 * and memory consumption.
 */
@Input
@Optional
public String getEffort() {
    return effort;
}
项目:Reer    文件:FindBugs.java   
/**
 * The priority threshold for reporting bugs. If set to {@code low}, all bugs are reported. If set to {@code medium} (the default), medium and high priority bugs are reported. If set to {@code
 * high}, only high priority bugs are reported.
 */
@Input
@Optional
public String getReportLevel() {
    return reportLevel;
}
项目:Reer    文件:FindBugs.java   
/**
 * The maximum heap size for the forked findbugs process (ex: '1g').
 */
@Input
@Optional
public String getMaxHeapSize() {
    return maxHeapSize;
}
项目:Reer    文件:FindBugs.java   
/**
 * The bug detectors which should be run. The bug detectors are specified by their class names, without any package qualification. By default, all detectors which are not disabled by default are
 * run.
 */
@Input
@Optional
public Collection<String> getVisitors() {
    return visitors;
}
项目:atlas    文件:ProcessAwbAndroidResources.java   
@Input
@Optional
@Nullable
public String getPackageForR() {
    return packageForR;
}
项目:atlas    文件:ProcessAwbAndroidResources.java   
@InputFile
@Optional
public File getBaselineFile() {
    return baselineFile;
}
项目:Reer    文件:Checkstyle.java   
/**
 * The properties available for use in the configuration file. These are substituted into the configuration file.
 */
@Input
@Optional
public Map<String, Object> getConfigProperties() {
    return configProperties;
}
项目:atlas    文件:ProcessAwbAndroidResources.java   
@OutputFile
@Optional
@Nullable
public File getProguardOutputFile() {
    return proguardOutputFile;
}
项目:atlas    文件:ProcessAwbAndroidResources.java   
@Input
@Optional
public String getCustomPackageId() {
    return customPackageId;
}
项目:Reer    文件:Ear.java   
/**
 * The name of the library directory in the EAR file. Default is "lib".
 */
@Optional
@Input
public String getLibDirName() {
    return libDirName;
}
项目:Reer    文件:InitBuild.java   
/**
 * Alternative test framework to be used in the generated project.
 *
 * This property can be set via command-line option '--test-framework'
 */
@Optional
@Input
public String getTestFramework() {
    return testFramework;
}
项目:gradle-site-plugin    文件:CustomData.java   
@Input
@Optional
public String getVcsUrl() {
    return vcsUrl.getOrNull();
}
项目:Reer    文件:CoffeeScriptCompileOptions.java   
@Optional @Input
public String getEncoding() {
    return encoding;
}
项目:Reer    文件:ScalaDocOptions.java   
/**
 * Returns the text to appear in the window title.
 */
@Input @Optional
public String getWindowTitle() {
    return windowTitle;
}
项目:Reer    文件:ScalaDocOptions.java   
/**
 * Returns the HTML text to appear in the main frame title.
 */
@Input @Optional
public String getDocTitle() {
    return docTitle;
}
项目:Reer    文件:ScalaDocOptions.java   
/**
 * Returns the HTML text to appear in the header for each page.
 */
@Input @Optional
public String getHeader() {
    return header;
}
项目:Reer    文件:ScalaDocOptions.java   
/**
 * Returns the HTML text to appear in the footer for each page.
 */
@Input @Optional
public String getFooter() {
    return footer;
}
项目:atlas    文件:ProcessAwoAndroidResources.java   
@InputFile
@Optional
public File getRtxtFile() {
    return rtxtFile;
}
项目:Reer    文件:ScalaDocOptions.java   
/**
 * Returns the HTML text to appear in the bottom text for each page.
 */
@Input @Optional
public String getBottom() {
    return bottom;
}
项目:Reer    文件:ScalaDocOptions.java   
/**
 * Returns the style sheet to override default style.
 */
@InputFile @Optional
public File getStyleSheet() {
    return styleSheet;
}
项目:Reer    文件:ScalaDocOptions.java   
/**
 * Returns the additional parameters passed to the compiler.
 * Each parameter starts with '-'.
 */
@Input @Optional
public List<String> getAdditionalParameters() {
    return additionalParameters;
}
项目:Reer    文件:ScalaDoc.java   
/**
 * Returns the documentation title.
 */
@Input @Optional
public String getTitle() {
    return title;
}
项目:atlas    文件:DiffBundleInfoTask.java   
@OutputDirectory
@Optional
public File getOutJsonFile() {
    return outJsonFile;
}
项目:Reer    文件:Groovydoc.java   
/**
 * Returns the title for the package index(first) page. Set to {@code null} when there is no document title.
 */
@Input
@Optional
public String getDocTitle() {
    return docTitle;
}
项目:Reer    文件:Groovydoc.java   
/**
 * Returns the HTML header for each page. Set to {@code null} when there is no header.
 */
@Input
@Optional
public String getHeader() {
    return header;
}
项目:Reer    文件:Groovydoc.java   
/**
 * Returns the HTML footer for each page. Set to {@code null} when there is no footer.
 */
@Input
@Optional
public String getFooter() {
    return footer;
}
项目:Reer    文件:Groovydoc.java   
/**
 * Returns a HTML text to be used for overview documentation. Set to {@code null} when there is no overview text.
 */
@Nested
@Optional
public TextResource getOverviewText() {
    return overview;
}
项目:atlas    文件:AwoInstallTask.java   
@InputFile
@Optional
public File getMainDexFile() {
    return mainDexFile;
}
项目:Reer    文件:ProjectDependencyFactory.java   
protected ProjectDependency parseMap(@MapKey("path") String path, @Optional @MapKey("configuration") String configuration) {
    return factory.create(projectFinder.getProject(path), configuration);
}
项目:atlas    文件:ProcessAwoAndroidResources.java   
@Input
@Optional
@Nullable
public Collection<String> getSplits() {
    return splits;
}
项目:atlas    文件:PrepareAPTask.java   
@InputFile
@Optional
@Nullable
public File getApFile() {
    return apFile;
}
项目:atlas    文件:ProcessAwoAndroidResources.java   
@OutputFile
@Optional
@Nullable
public File getPackageOutputFile() {
    return packageOutputFile;
}
项目:Reer    文件:PreCompiledHeader.java   
@Optional @InputFile
public File getPrefixHeaderFile() {
    return prefixHeaderFile;
}