org.apache.tools.ant.taskdefs.optional.metamata
public class MAudit extends AbstractMetamataTask
maudit performs static analysis of the Java source code and byte code files to find and report errors of style and potential problems related to performance, maintenance and robustness. As a convenience, a stylesheet is given in etc directory, so that an HTML report can be generated from the XML file.
Constructor Summary | |
---|---|
MAudit() default constructor |
Method Summary | |
---|---|
protected void | checkOptions()
validate the settings |
protected void | cleanUp() |
Path | createRulespath()
classpath for additional audit rules
these must be placed before metamata.jar ! |
Path | createSearchpath()
search path to use for unused global declarations;
required when unused is set. |
protected ExecuteStreamHandler | createStreamHandler() |
protected Vector | getOptions()
create the option vector for the command |
void | setExit(boolean flag)
flag to tell the task to exit after the first error.
internal/testing only |
void | setFix(boolean flag)
Automatically fix certain errors
(those marked as fixable in the manual);
optional, default=false |
void | setFullsemanticize(boolean flag)
internal/testing only |
void | setList(boolean flag)
Creates listing file for each audited file; optional, default false.
|
void | setOffsets(boolean flag)
internal/testing only |
void | setQuiet(boolean flag)
flag to suppress copyright and summary messages; default false.
internal/testing only |
void | setTofile(File outFile)
The XML file to which the Audit result should be written to; required |
void | setUnused(boolean flag)
Finds declarations unused in search paths; optional, default false.
|
void | setVerbose(boolean flag)
flag to print all messages; optional, default false.
internal/testing only |
UNKNOWN: ignore="true"
UNKNOWN: ignore="true"
UNKNOWN: ignore="true"
UNKNOWN: ignore="true"
UNKNOWN: ignore="true"