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:
Cloneable
Ant task to generate HTML or plain text from a saved XML analysis results
file.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractFindBugsTask
AbstractFindBugsTask.SystemProperty -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate Stringprivate Stringprivate booleanprivate StringFields inherited from class AbstractFindBugsTask
DEFAULT_TIMEOUT, errorProperty, execResultProperty, FINDBUGS_JAR, RESULT_PROPERTY_SUFFIXFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterExecuteJavaProcess(int rc) protected voidprotected voidCheck that all required attributes have been set.protected voidvoidsetApplySuppression(boolean applySuppression) voidsetFailIfBugFound(boolean failIfBugFound) voidvoidvoidsetInputFile(String input) voidsetLongBugCodes(boolean longBugCodes) voidvoidsetOutputFile(String output) Methods inherited from class AbstractFindBugsTask
addArg, createClasspath, createFindbugsEngine, createPluginList, createSystemProperty, execute, getDebug, getFindbugsEngine, setClasspath, setClasspathRef, setDebug, setErrorProperty, setFailOnError, setHome, setInputString, setJvm, setJvmargs, setPluginList, setPluginListRef, setTimeoutMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Field Details
-
longBugCodes
private boolean longBugCodes -
applySuppression
private boolean applySuppression -
failIfBugFound
private boolean failIfBugFound -
input
-
output
-
format
-
-
Constructor Details
-
ConvertXmlToTextTask
public ConvertXmlToTextTask()
-
-
Method Details
-
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
- Parameters:
input- The input to set.
-
setOutput
- Parameters:
output- The output to set.
-
setInputFile
- Parameters:
input- The input to set.
-
setOutputFile
- Parameters:
output- The output to set.
-
setFormat
- 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:AbstractFindBugsTaskCheck that all required attributes have been set.- Overrides:
checkParametersin classAbstractFindBugsTask
-
configureFindbugsEngine
protected void configureFindbugsEngine()- Specified by:
configureFindbugsEnginein classAbstractFindBugsTask
-
beforeExecuteJavaProcess
protected void beforeExecuteJavaProcess()- Specified by:
beforeExecuteJavaProcessin classAbstractFindBugsTask
-
afterExecuteJavaProcess
protected void afterExecuteJavaProcess(int rc) - Overrides:
afterExecuteJavaProcessin classAbstractFindBugsTask
-