Package edu.umd.cs.findbugs.anttask
Class ConvertXmlToTextTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- edu.umd.cs.findbugs.anttask.AbstractFindBugsTask
-
- edu.umd.cs.findbugs.anttask.ConvertXmlToTextTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ConvertXmlToTextTask extends AbstractFindBugsTask
Ant task to generate HTML or plain text from a saved XML analysis results file.- Author:
- David Hovemeyer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.umd.cs.findbugs.anttask.AbstractFindBugsTask
AbstractFindBugsTask.SystemProperty
-
-
Field Summary
-
Fields inherited from class edu.umd.cs.findbugs.anttask.AbstractFindBugsTask
DEFAULT_TIMEOUT, errorProperty, execResultProperty, FINDBUGS_JAR, RESULT_PROPERTY_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description ConvertXmlToTextTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterExecuteJavaProcess(int rc)
protected void
beforeExecuteJavaProcess()
protected void
checkParameters()
Check that all required attributes have been set.protected void
configureFindbugsEngine()
void
setApplySuppression(boolean applySuppression)
void
setFailIfBugFound(boolean failIfBugFound)
void
setFormat(java.lang.String format)
void
setInput(java.lang.String input)
void
setInputFile(java.lang.String input)
void
setLongBugCodes(boolean longBugCodes)
void
setOutput(java.lang.String output)
void
setOutputFile(java.lang.String output)
-
Methods inherited from class edu.umd.cs.findbugs.anttask.AbstractFindBugsTask
addArg, createClasspath, createFindbugsEngine, createPluginList, createSystemProperty, execute, getDebug, getFindbugsEngine, setClasspath, setClasspathRef, setDebug, setErrorProperty, setFailOnError, setHome, setInputString, setJvm, setJvmargs, setPluginList, setPluginListRef, setTimeout
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setLongBugCodes
public void setLongBugCodes(boolean longBugCodes)
- Parameters:
longBugCodes
- The longBugCodes to set.
-
setApplySuppression
public void setApplySuppression(boolean applySuppression)
- Parameters:
applySuppression
- The applySuppression to set.
-
setInput
public void setInput(java.lang.String input)
- Parameters:
input
- The input to set.
-
setOutput
public void setOutput(java.lang.String output)
- Parameters:
output
- The output to set.
-
setInputFile
public void setInputFile(java.lang.String input)
- Parameters:
input
- The input to set.
-
setOutputFile
public void setOutputFile(java.lang.String output)
- Parameters:
output
- The output to set.
-
setFormat
public void setFormat(java.lang.String format)
- Parameters:
format
- The format to set.
-
setFailIfBugFound
public void setFailIfBugFound(boolean failIfBugFound)
- Parameters:
failIfBugFound
- true to 'fail' at the end if at least one bug is reported
-
checkParameters
protected void checkParameters()
Description copied from class:AbstractFindBugsTask
Check that all required attributes have been set.- Overrides:
checkParameters
in classAbstractFindBugsTask
-
configureFindbugsEngine
protected void configureFindbugsEngine()
- Specified by:
configureFindbugsEngine
in classAbstractFindBugsTask
-
beforeExecuteJavaProcess
protected void beforeExecuteJavaProcess()
- Specified by:
beforeExecuteJavaProcess
in classAbstractFindBugsTask
-
afterExecuteJavaProcess
protected void afterExecuteJavaProcess(int rc)
- Overrides:
afterExecuteJavaProcess
in classAbstractFindBugsTask
-
-