|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.api.tasks.SourceTask
org.gradle.api.plugins.quality.FindBugs
class FindBugs extends SourceTask
Analyzes code with FindBugs.
| Property Summary | |
|---|---|
FileCollection |
classes
The classes to be analyzed. |
FileCollection |
classpath
Compile class path for the classes to be analyzed. |
FileCollection |
findbugsClasspath
Class path holding the FindBugs library. |
boolean |
ignoreFailures
Whether or not to allow the build to continue if there are warnings. |
FileCollection |
pluginClasspath
Class path holding any additional FindBugs plugins. |
| Method Summary | |
|---|---|
void
|
evaluateResult(FindBugsResult findbugsResult)
|
FindBugsReports
|
getReports()
The reports to be generated by this task. |
FindBugsReports
|
reports(Closure closure)
Configures the reports to be generated by this task. |
void
|
run()
|
| Methods inherited from class SourceTask | |
|---|---|
| exclude, exclude, exclude, exclude, getDefaultSource, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes, setSource, source |
| Property Detail |
|---|
@SkipWhenEmpty @InputFiles FileCollection classes
@InputFiles FileCollection classpath
@InputFiles FileCollection findbugsClasspath
boolean ignoreFailures
@InputFiles FileCollection pluginClasspath
| Method Detail |
|---|
void evaluateResult(FindBugsResult findbugsResult)
FindBugsReports getReports()
FindBugsReports reports(Closure closure)
findbugsTask {
reports {
xml {
destination "build/findbugs.xml"
}
}
}
closure - The configuration
@TaskAction void run()
Gradle API 1.1