public abstract class AbstractFindBugsTask
extends org.apache.tools.ant.Task
Type | Property and Description |
---|---|
AbstractFindBugsTask.SystemProperty |
createSystem
Create a SystemProperty (to handle <systemProperty> elements).
|
Modifier and Type | Class and Description |
---|---|
static class |
AbstractFindBugsTask.SystemProperty |
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TIMEOUT |
protected java.lang.String |
errorProperty |
java.lang.String |
execResultProperty |
static java.lang.String |
FINDBUGS_JAR |
static java.lang.String |
RESULT_PROPERTY_SUFFIX |
Modifier | Constructor and Description |
---|---|
protected |
AbstractFindBugsTask(java.lang.String mainClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addArg(java.lang.String arg)
Add an argument to the JVM used to execute FindBugs.
|
protected void |
afterExecuteJavaProcess(int rc) |
protected abstract void |
beforeExecuteJavaProcess() |
protected void |
checkParameters()
Check that all required attributes have been set.
|
protected abstract void |
configureFindbugsEngine() |
org.apache.tools.ant.types.Path |
createClasspath()
Path to use for classpath.
|
protected void |
createFindbugsEngine()
Create the FindBugs engine (the Java process that will run whatever
FindBugs-related program this task is going to execute).
|
org.apache.tools.ant.types.Path |
createPluginList()
Path to use for plugin list.
|
AbstractFindBugsTask.SystemProperty |
createSystemProperty()
Create a SystemProperty (to handle <systemProperty> elements).
|
void |
execute() |
protected boolean |
getDebug()
Get the debug flag.
|
protected org.apache.tools.ant.taskdefs.Java |
getFindbugsEngine()
Get the Findbugs engine.
|
void |
setClasspath(org.apache.tools.ant.types.Path src)
Set the classpath to use.
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a classpath defined elsewhere.
|
void |
setDebug(boolean flag)
Set the debug flag
|
void |
setErrorProperty(java.lang.String name)
Tells this task to set the property with the given name to "true" when
there were errors.
|
void |
setFailOnError(boolean flag)
Set the failOnError flag
|
void |
setHome(java.io.File homeDir)
Set the home directory into which findbugs was installed
|
protected void |
setInputString(java.lang.String input)
Sets the given string to be piped to standard input of the FindBugs JVM
upon launching.
|
void |
setJvm(java.lang.String jvm)
Set the command used to start the VM
|
void |
setJvmargs(java.lang.String args)
Set any specific jvm args
|
void |
setPluginList(org.apache.tools.ant.types.Path src)
the plugin list to use.
|
void |
setPluginListRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a plugin list defined elsewhere.
|
void |
setTimeout(long timeout)
Set timeout in milliseconds.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public static final java.lang.String FINDBUGS_JAR
public static final long DEFAULT_TIMEOUT
public static final java.lang.String RESULT_PROPERTY_SUFFIX
protected java.lang.String errorProperty
public java.lang.String execResultProperty
protected AbstractFindBugsTask(java.lang.String mainClass)
public void setHome(java.io.File homeDir)
public void setDebug(boolean flag)
protected boolean getDebug()
public void setJvmargs(java.lang.String args)
public void setJvm(java.lang.String jvm)
public void setTimeout(long timeout)
timeout
- the timeoutpublic void setFailOnError(boolean flag)
public void setErrorProperty(java.lang.String name)
public AbstractFindBugsTask.SystemProperty createSystemProperty()
public void setClasspath(org.apache.tools.ant.types.Path src)
public org.apache.tools.ant.types.Path createClasspath()
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
public void setPluginList(org.apache.tools.ant.types.Path src)
public org.apache.tools.ant.types.Path createPluginList()
public void setPluginListRef(org.apache.tools.ant.types.Reference r)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
protected void checkParameters()
protected void createFindbugsEngine()
protected org.apache.tools.ant.taskdefs.Java getFindbugsEngine()
protected void addArg(java.lang.String arg)
arg
- the argumentprotected void setInputString(java.lang.String input)
protected abstract void configureFindbugsEngine()
protected abstract void beforeExecuteJavaProcess()
protected void afterExecuteJavaProcess(int rc)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.