org.apache.tools.ant.taskdefs.optional.metamata
Class MAudit
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.optional.metamata.AbstractMetamataTask
|
+--org.apache.tools.ant.taskdefs.optional.metamata.MAudit
- public class MAudit
- extends AbstractMetamataTask
Metamata Audit evaluates Java code for programming errors, weaknesses, and
style violation.
Metamata Audit exists in three versions:
- The Lite version evaluates about 15 built-in rules.
- The Pro version evaluates about 50 built-in rules.
- The Enterprise version allows you to add your own customized rules via the API.
For more information, visit the website at
www.metamata.com
- Author:
- Stephane Bailliez
Constructor Summary |
MAudit()
default constructor |
Method Summary |
protected void |
checkOptions()
validate options set |
protected void |
cleanUp()
clean up all the mess that we did with temporary objects |
Path |
createSearchpath()
|
protected ExecuteStreamHandler |
createStreamHandler()
create a stream handler that will be used to get the output since
metamata tools do not report with convenient files such as XML. |
protected java.util.Vector |
getOptions()
return all options of the command line as string elements |
void |
setFix(boolean flag)
|
void |
setList(boolean flag)
|
void |
setTofile(java.io.File outFile)
set the destination file which should be an xml file |
void |
setUnused(boolean flag)
|
Methods inherited from class org.apache.tools.ant.taskdefs.optional.metamata.AbstractMetamataTask |
addAllVector, addFileSet, createClasspath, createJvmarg, createSourcepath, createTmpFile, execute, execute0, generateOptionsFile, getFileMapping, getMetamataJar, scanFileSets, setMaxmemory, setMetamatahome, setUp |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outFile
protected java.io.File outFile
searchPath
protected Path searchPath
fix
protected boolean fix
list
protected boolean list
unused
protected boolean unused
MAudit
public MAudit()
- default constructor
setTofile
public void setTofile(java.io.File outFile)
- set the destination file which should be an xml file
setFix
public void setFix(boolean flag)
setList
public void setList(boolean flag)
setUnused
public void setUnused(boolean flag)
createSearchpath
public Path createSearchpath()
getOptions
protected java.util.Vector getOptions()
- Description copied from class:
AbstractMetamataTask
- return all options of the command line as string elements
- Overrides:
getOptions
in class AbstractMetamataTask
checkOptions
protected void checkOptions()
throws BuildException
- Description copied from class:
AbstractMetamataTask
- validate options set
- Overrides:
checkOptions
in class AbstractMetamataTask
createStreamHandler
protected ExecuteStreamHandler createStreamHandler()
throws BuildException
- Description copied from class:
AbstractMetamataTask
- create a stream handler that will be used to get the output since
metamata tools do not report with convenient files such as XML.
- Overrides:
createStreamHandler
in class AbstractMetamataTask
cleanUp
protected void cleanUp()
throws BuildException
- Description copied from class:
AbstractMetamataTask
- clean up all the mess that we did with temporary objects
- Overrides:
cleanUp
in class AbstractMetamataTask
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.