@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; } }
/** * A filter specifying which bugs are reported. Replaces the {@code includeFilter} property. * * @since 2.2 */ @Incubating @Nested @Optional public TextResource getIncludeFilterConfig() { return includeFilterConfig; }
/** * 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; }
/** * A filter specifying baseline bugs to exclude from being reported. */ @Incubating @Nested @Optional public TextResource getExcludeBugsFilterConfig() { return excludeBugsFilterConfig; }
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); }
/** * 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; }
@Input @Optional public Set<String> getAwbBundles() { return awbBundles; }
/** * 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; }
/** * 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; }
/** * The maximum heap size for the forked findbugs process (ex: '1g'). */ @Input @Optional public String getMaxHeapSize() { return maxHeapSize; }
/** * 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; }
@Input @Optional @Nullable public String getPackageForR() { return packageForR; }
@InputFile @Optional public File getBaselineFile() { return baselineFile; }
/** * 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; }
@OutputFile @Optional @Nullable public File getProguardOutputFile() { return proguardOutputFile; }
@Input @Optional public String getCustomPackageId() { return customPackageId; }
/** * The name of the library directory in the EAR file. Default is "lib". */ @Optional @Input public String getLibDirName() { return libDirName; }
/** * 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; }
@Input @Optional public String getVcsUrl() { return vcsUrl.getOrNull(); }
@Optional @Input public String getEncoding() { return encoding; }
/** * Returns the text to appear in the window title. */ @Input @Optional public String getWindowTitle() { return windowTitle; }
/** * Returns the HTML text to appear in the main frame title. */ @Input @Optional public String getDocTitle() { return docTitle; }
/** * Returns the HTML text to appear in the header for each page. */ @Input @Optional public String getHeader() { return header; }
/** * Returns the HTML text to appear in the footer for each page. */ @Input @Optional public String getFooter() { return footer; }
@InputFile @Optional public File getRtxtFile() { return rtxtFile; }
/** * Returns the HTML text to appear in the bottom text for each page. */ @Input @Optional public String getBottom() { return bottom; }
/** * Returns the style sheet to override default style. */ @InputFile @Optional public File getStyleSheet() { return styleSheet; }
/** * Returns the additional parameters passed to the compiler. * Each parameter starts with '-'. */ @Input @Optional public List<String> getAdditionalParameters() { return additionalParameters; }
/** * Returns the documentation title. */ @Input @Optional public String getTitle() { return title; }
@OutputDirectory @Optional public File getOutJsonFile() { return outJsonFile; }
/** * 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; }
/** * Returns the HTML header for each page. Set to {@code null} when there is no header. */ @Input @Optional public String getHeader() { return header; }
/** * Returns the HTML footer for each page. Set to {@code null} when there is no footer. */ @Input @Optional public String getFooter() { return footer; }
/** * 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; }
@InputFile @Optional public File getMainDexFile() { return mainDexFile; }
protected ProjectDependency parseMap(@MapKey("path") String path, @Optional @MapKey("configuration") String configuration) { return factory.create(projectFinder.getProject(path), configuration); }
@Input @Optional @Nullable public Collection<String> getSplits() { return splits; }
@InputFile @Optional @Nullable public File getApFile() { return apFile; }
@OutputFile @Optional @Nullable public File getPackageOutputFile() { return packageOutputFile; }
@Optional @InputFile public File getPrefixHeaderFile() { return prefixHeaderFile; }