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:
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 edu.umd.cs.findbugs.anttask.AbstractFindBugsTask
AbstractFindBugsTask.SystemProperty
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private String
private String
private boolean
private String
Fields inherited from class edu.umd.cs.findbugs.anttask.AbstractFindBugsTask
DEFAULT_TIMEOUT, errorProperty, execResultProperty, FINDBUGS_JAR, RESULT_PROPERTY_SUFFIX
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
afterExecuteJavaProcess
(int rc) protected void
protected void
Check that all required attributes have been set.protected void
void
setApplySuppression
(boolean applySuppression) void
setFailIfBugFound
(boolean failIfBugFound) void
void
void
setInputFile
(String input) void
setLongBugCodes
(boolean longBugCodes) void
void
setOutputFile
(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
Methods 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: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
-