Class FindBugs
- All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Reporting<FindBugsReports>, Task, PatternFilterable, VerificationTask, org.gradle.util.Configurable<Task>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Task
Task.Namer -
Field Summary
Fields inherited from interface Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Any additional arguments (not covered here more explicitly likeeffort) to be passed along to FindBugs.Deprecated.Any additional arguments (not covered here more explicitly likeeffort) to be passed along to FindBugs.protected FileCollectionDeprecated.The classes to be analyzed.Deprecated.The class directories to be analyzed.Deprecated.Compile class path for the classes to be analyzed.Deprecated.The analysis effort level.Deprecated.The filename of a filter specifying baseline bugs to exclude from being reported.Deprecated.A filter specifying baseline bugs to exclude from being reported.Deprecated.The filename of a filter specifying bugs to exclude from being reported.Deprecated.A filter specifying bugs to exclude from being reported.Deprecated.Any additional arguments (not covered here more explicitly likeeffort) to be passed along to FindBugs.Deprecated.Class path holding the FindBugs library.booleanDeprecated.Whether to allow the build to continue if there are warnings.Deprecated.The filename of a filter specifying which bugs are reported.Deprecated.A filter specifying which bugs are reported.Deprecated.Any additional arguments to be passed along to FindBugs JVM process.Deprecated.The maximum heap size for the forked findbugs process (ex: '1g').protected ObjectFactoryDeprecated.Deprecated.Similar tovisitorsexcept that it specifies bug detectors which should not be run.Deprecated.Class path holding any additional FindBugs plugins.Deprecated.The priority threshold for reporting bugs.Deprecated.The reports to be generated by this task.booleanDeprecated.Indicates whether analysis progress should be rendered on standard output.Deprecated.Returns the source for this task, after the include and exclude patterns have been applied.Deprecated.The bug detectors which should be run.org.gradle.process.internal.worker.WorkerProcessFactoryDeprecated.Deprecated.Any additional arguments to be passed along to FindBugs JVM process.Deprecated.Any additional arguments to be passed along to FindBugs JVM process.Deprecated.Configures the reports to be generated by this task.reports(Action<? super FindBugsReports> configureAction) Deprecated.Configures the reports to be generated by this task.voidrun()Deprecated.voidsetClasses(FileCollection classes) Deprecated.The class directories to be analyzed.voidsetClasspath(FileCollection classpath) Deprecated.Compile class path for the classes to be analyzed.voidDeprecated.The analysis effort level.voidsetExcludeBugsFilter(File filter) Deprecated.The filename of a filter specifying baseline bugs to exclude from being reported.voidsetExcludeBugsFilterConfig(TextResource excludeBugsFilterConfig) Deprecated.A filter specifying baseline bugs to exclude from being reported.voidsetExcludeFilter(File filter) Deprecated.The filename of a filter specifying bugs to exclude from being reported.voidsetExcludeFilterConfig(TextResource excludeFilterConfig) Deprecated.A filter specifying bugs to exclude from being reported.voidsetExtraArgs(Collection<String> extraArgs) Deprecated.Any additional arguments (not covered here more explicitly likeeffort) to be passed along to FindBugs.voidsetFindbugsClasspath(FileCollection findbugsClasspath) Deprecated.Class path holding the FindBugs library.voidsetIgnoreFailures(boolean ignoreFailures) Deprecated.Whether to allow the build to continue if there are warnings.voidsetIncludeFilter(File filter) Deprecated.The filename of a filter specifying which bugs are reported.voidsetIncludeFilterConfig(TextResource includeFilterConfig) Deprecated.A filter specifying which bugs are reported.voidsetJvmArgs(Collection<String> jvmArgs) Deprecated.Any additional arguments to be passed along to FindBugs JVM process.voidsetMaxHeapSize(String maxHeapSize) Deprecated.The maximum heap size for the forked findbugs process (ex: '1g').voidsetOmitVisitors(Collection<String> omitVisitors) Deprecated.Similar tovisitorsexcept that it specifies bug detectors which should not be run.voidsetPluginClasspath(FileCollection pluginClasspath) Deprecated.Class path holding any additional FindBugs plugins.voidsetReportLevel(String reportLevel) Deprecated.The priority threshold for reporting bugs.voidsetShowProgress(boolean showProgress) Deprecated.Indicates whether analysis progress should be rendered on standard output.voidsetVisitors(Collection<String> visitors) Deprecated.The bug detectors which should be run.Methods inherited from class SourceTask
exclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSetFactory, include, include, include, include, setExcludes, setIncludes, setSource, setSource, sourceMethods inherited from class org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMappingMethods inherited from class DefaultTask
newInputDirectory, newInputFile, newOutputDirectory, newOutputFileMethods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
-
Constructor Details
-
FindBugs
public FindBugs()Deprecated.
-
-
Method Details
-
getObjectFactory
Deprecated. -
getWorkerProcessBuilderFactory
@Inject public org.gradle.process.internal.worker.WorkerProcessFactory getWorkerProcessBuilderFactory()Deprecated. -
getReports
Deprecated.The reports to be generated by this task.- Specified by:
getReportsin interfaceReporting<FindBugsReports>- Returns:
- The reports container
-
reports
Deprecated.Configures the reports to be generated by this task. The contained reports can be configured by name and closures. Example:findbugsTask { reports { xml { destination "build/findbugs.xml" } } }- Specified by:
reportsin interfaceReporting<FindBugsReports>- Parameters:
closure- The configuration- Returns:
- The reports container
-
reports
Deprecated.Configures the reports to be generated by this task. The contained reports can be configured by name and closures. Example:findbugsTask { reports { xml { destination "build/findbugs.xml" } } }- Specified by:
reportsin interfaceReporting<FindBugsReports>- Parameters:
configureAction- The configuration- Returns:
- The reports container
-
getIncludeFilter
-
setIncludeFilter
Deprecated.The filename of a filter specifying which bugs are reported. -
getExcludeFilter
-
setExcludeFilter
Deprecated.The filename of a filter specifying bugs to exclude from being reported. -
getExcludeBugsFilter
-
setExcludeBugsFilter
Deprecated.The filename of a filter specifying baseline bugs to exclude from being reported. -
run
Deprecated.- Throws:
IOExceptionInterruptedException
-
extraArgs
Deprecated.Any additional arguments (not covered here more explicitly likeeffort) to be passed along to FindBugs.Extra arguments are passed to FindBugs after the arguments Gradle understands (like
effortbut before the list of classes to analyze. This should only be used for arguments that cannot be provided by Gradle directly. Gradle does not try to interpret or validate the arguments before passing them to FindBugs.See the FindBugs TextUICommandLine source for available options.
- Since:
- 2.6
-
extraArgs
Deprecated.Any additional arguments (not covered here more explicitly likeeffort) to be passed along to FindBugs.Extra arguments are passed to FindBugs after the arguments Gradle understands (like
effortbut before the list of classes to analyze. This should only be used for arguments that cannot be provided by Gradle directly. Gradle does not try to interpret or validate the arguments before passing them to FindBugs.See the FindBugs TextUICommandLine source for available options.
- Since:
- 2.6
-
jvmArgs
Deprecated.Any additional arguments to be passed along to FindBugs JVM process.Arguments can contain general JVM flags like
-Xdebugand also FindBugs system properties like-Dfindbugs.loadPropertiesFrom=...- Since:
- 4.3
-
jvmArgs
Deprecated.Any additional arguments to be passed along to FindBugs JVM process.Arguments can contain general JVM flags like
-Xdebugand also FindBugs system properties like-Dfindbugs.loadPropertiesFrom=...- Since:
- 4.3
-
getSource
Deprecated.Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist.The
PathSensitivityfor the sources is configured to bePathSensitivity.ABSOLUTE. If your sources are less strict, please change it accordingly by overriding this method in your subclass.- Overrides:
getSourcein classSourceTask- Returns:
- The source.
-
getCandidateClassFiles
@SkipWhenEmpty @PathSensitive(RELATIVE) @InputFiles protected FileCollection getCandidateClassFiles()Deprecated.The classes to be analyzed. -
getClasses
-
setClasses
-
getClasspath
Deprecated.Compile class path for the classes to be analyzed. The classes on this class path are used during analysis but aren't analyzed themselves. -
setClasspath
Deprecated.Compile class path for the classes to be analyzed. The classes on this class path are used during analysis but aren't analyzed themselves. -
getFindbugsClasspath
Deprecated.Class path holding the FindBugs library. -
setFindbugsClasspath
Deprecated.Class path holding the FindBugs library. -
getPluginClasspath
Deprecated.Class path holding any additional FindBugs plugins. -
setPluginClasspath
Deprecated.Class path holding any additional FindBugs plugins. -
getIgnoreFailures
public boolean getIgnoreFailures()Deprecated.Whether to allow the build to continue if there are warnings.- Specified by:
getIgnoreFailuresin interfaceVerificationTask- Returns:
- false, when the build should break on failure, true when the failures should be ignored.
-
setIgnoreFailures
public void setIgnoreFailures(boolean ignoreFailures) Deprecated.Whether to allow the build to continue if there are warnings.- Specified by:
setIgnoreFailuresin interfaceVerificationTask- Parameters:
ignoreFailures- false to break the build on failure, true to ignore the failures. The default is false.
-
getEffort
-
setEffort
Deprecated.The analysis effort level. The value specified should be one ofmin,default, ormax. Higher levels increase precision and find more bugs at the expense of running time and memory consumption. -
getReportLevel
-
setReportLevel
Deprecated.The priority threshold for reporting bugs. If set tolow, all bugs are reported. If set tomedium(the default), medium and high priority bugs are reported. If set tohigh, only high priority bugs are reported. -
getMaxHeapSize
-
setMaxHeapSize
Deprecated.The maximum heap size for the forked findbugs process (ex: '1g'). -
getVisitors
Deprecated.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. -
setVisitors
Deprecated.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. -
getOmitVisitors
Deprecated.Similar tovisitorsexcept that it specifies bug detectors which should not be run. By default, no visitors are omitted. -
setOmitVisitors
Deprecated.Similar tovisitorsexcept that it specifies bug detectors which should not be run. By default, no visitors are omitted. -
getIncludeFilterConfig
Deprecated.A filter specifying which bugs are reported. Replaces theincludeFilterproperty.- Since:
- 2.2
-
setIncludeFilterConfig
Deprecated.A filter specifying which bugs are reported. Replaces theincludeFilterproperty.- Since:
- 2.2
-
getExcludeFilterConfig
Deprecated.A filter specifying bugs to exclude from being reported. Replaces theexcludeFilterproperty.- Since:
- 2.2
-
setExcludeFilterConfig
Deprecated.A filter specifying bugs to exclude from being reported. Replaces theexcludeFilterproperty.- Since:
- 2.2
-
getExcludeBugsFilterConfig
Deprecated.A filter specifying baseline bugs to exclude from being reported.- Since:
- 2.4
-
setExcludeBugsFilterConfig
Deprecated.A filter specifying baseline bugs to exclude from being reported.- Since:
- 2.4
-
getExtraArgs
Deprecated.Any additional arguments (not covered here more explicitly likeeffort) to be passed along to FindBugs.Extra arguments are passed to FindBugs after the arguments Gradle understands (like
effortbut before the list of classes to analyze. This should only be used for arguments that cannot be provided by Gradle directly. Gradle does not try to interpret or validate the arguments before passing them to FindBugs.See the FindBugs TextUICommandLine source for available options.
- Since:
- 2.6
-
setExtraArgs
Deprecated.Any additional arguments (not covered here more explicitly likeeffort) to be passed along to FindBugs.Extra arguments are passed to FindBugs after the arguments Gradle understands (like
effortbut before the list of classes to analyze. This should only be used for arguments that cannot be provided by Gradle directly. Gradle does not try to interpret or validate the arguments before passing them to FindBugs.See the FindBugs TextUICommandLine source for available options.
- Since:
- 2.6
-
getShowProgress
Deprecated.Indicates whether analysis progress should be rendered on standard output. Defaults to false.- Since:
- 4.2
-
setShowProgress
public void setShowProgress(boolean showProgress) Deprecated.Indicates whether analysis progress should be rendered on standard output.- Since:
- 4.2
-
getJvmArgs
Deprecated.Any additional arguments to be passed along to FindBugs JVM process.Arguments can contain general JVM flags like
-Xdebugand also FindBugs system properties like-Dfindbugs.loadPropertiesFrom=...- Since:
- 4.3
-
setJvmArgs
Deprecated.Any additional arguments to be passed along to FindBugs JVM process.Arguments can contain general JVM flags like
-Xdebugand also FindBugs system properties like-Dfindbugs.loadPropertiesFrom=...- Since:
- 4.3
-