org.apache.tools.ant.taskdefs.optional.metamata
public class MMetrics extends AbstractMetamataTask
You will not be able to use this task with the evaluation version since as of Metamata 2.0, Metrics does not support command line :-(
Nested Class Summary | |
---|---|
static class | MMetrics.GranularityAttribute
Attributes for granularity. |
Constructor Summary | |
---|---|
MMetrics() default constructor |
Method Summary | |
---|---|
protected void | checkOptions() |
protected void | cleanUp() cleanup the temporary txt report |
Path | createPath()
Set a new path (directory) to measure metrics from. |
protected ExecuteStreamHandler | createStreamHandler()
if the report is transform via a temporary txt file we should use a
a normal logger here, otherwise we could use the metrics handler
directly to capture and transform the output on stdout to XML. |
protected void | execute0(ExecuteStreamHandler handler) |
protected Vector | getOptions() |
void | setGranularity(MMetrics.GranularityAttribute granularity)
set the granularity of the audit. |
void | setTofile(File file)
Set the output XML file |
protected void | transformFile()
transform the generated file via the handler
This function can either be called if the result is written to the output
file via -output or we could use the handler directly on stdout if not. |
Returns: the path instance to use.
Parameters: granularity the audit reporting mode.
Parameters: file the xml file to write the XML report to.
See Also: createStreamHandler