git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271029 13f79535-47bb-0310-9956-ffa450edef68master
@@ -8,7 +8,6 @@ | |||||
<body> | <body> | ||||
<h2><a name="maudit">MAudit</a></h2> | <h2><a name="maudit">MAudit</a></h2> | ||||
<p>by</p> | |||||
<ul> | <ul> | ||||
<li>Stephane Bailliez (<a href="mailto:sbailliez@imediation.com">sbailliez@imediation.com</a>)</li> | <li>Stephane Bailliez (<a href="mailto:sbailliez@imediation.com">sbailliez@imediation.com</a>)</li> | ||||
</ul> | </ul> | ||||
@@ -102,7 +101,7 @@ package names deduced from the file path will be incorrect. | |||||
</classpath> | </classpath> | ||||
<sourcepath> | <sourcepath> | ||||
<pathelement location="c:/metamata/examples/auditexamples"/> | <pathelement location="c:/metamata/examples/auditexamples"/> | ||||
</classpath> | |||||
</sourcepath> | |||||
<fileset dir="c:/metamata/examples/auditexamples"> | <fileset dir="c:/metamata/examples/auditexamples"> | ||||
<include name="*.java"/> | <include name="*.java"/> | ||||
<fileset> | <fileset> | ||||
@@ -112,20 +111,14 @@ package names deduced from the file path will be incorrect. | |||||
and fix automatically the fixable errors. | and fix automatically the fixable errors. | ||||
</p> | </p> | ||||
<h3>Generating a report</h3> | <h3>Generating a report</h3> | ||||
As a convenience, there is an XSL file(maudit-frames.xsl) that allows you to generate a full framed HTML report of the metrics. | |||||
You can find it in the <i>etc</i> directory of Ant. As it uses the Xalan extensions, you will need | |||||
BSF, Xalan and Xerces to run it. The stylesheet takes an <i>output.dir</i> parameter (otherwise it will be generated | |||||
As a convenience, there is an XSL file(mmetrics-frames.xsl) that allows you to generate a full framed HTML report of the metrics. | |||||
You can find it in the <i>etc</i> directory of Ant. As it uses the Xalan redirect extensions, you will need Xalan and Xerces to run it. | |||||
The stylesheet takes an <i>output.dir</i> parameter (otherwise it will be generated | |||||
in the current directory), it can be run in Ant as follows: | in the current directory), it can be run in Ant as follows: | ||||
<pre> | <pre> | ||||
<java classname="org.apache.xalan.xslt.Process"> | |||||
<param value="-IN"/> | |||||
<param value="${metrics.xml}"/> | |||||
<param value="-XSL"/> | |||||
<param value="maudit-frames.xsl"/> | |||||
<param value="-PARAM"/> | |||||
<param value="output.dir"/> | |||||
<param value="&quot;'${report.dir}'&quot;"/> | |||||
</java> | |||||
<style in=java "${audit.xml}" style="maudit-frames.xsl" out="null.tmp"> | |||||
<param name="output.dir" expression="${report.dir}quot;/> | |||||
</style> | |||||
</pre> | </pre> | ||||
<hr> | <hr> | ||||
@@ -8,7 +8,6 @@ | |||||
<body> | <body> | ||||
<h2>MMetrics</h2> | <h2>MMetrics</h2> | ||||
<p>by</p> | |||||
<ul> | <ul> | ||||
<li>Stephane Bailliez (<a href="mailto:sbailliez@imediation.com">sbailliez@imediation.com</a>)</li> | <li>Stephane Bailliez (<a href="mailto:sbailliez@imediation.com">sbailliez@imediation.com</a>)</li> | ||||
</ul> | </ul> | ||||
@@ -88,7 +87,7 @@ by the different outputs. | |||||
</p> | </p> | ||||
<h3>Example</h3> | <h3>Example</h3> | ||||
<pre> <mmetrics target="mmetrics.xml" | |||||
<pre> <mmetrics tofile="mmetrics.xml" | |||||
metamatahome="c:/metamata" | metamatahome="c:/metamata" | ||||
granularity="methods"> | granularity="methods"> | ||||
<classpath> | <classpath> | ||||
@@ -108,19 +107,13 @@ by the different outputs. | |||||
<h3>Generating a report</h3> | <h3>Generating a report</h3> | ||||
As a convenience, there is an XSL file(mmetrics-frames.xsl) that allows you to generate a full framed HTML report of the metrics. | As a convenience, there is an XSL file(mmetrics-frames.xsl) that allows you to generate a full framed HTML report of the metrics. | ||||
You can find it in the <i>etc</i> directory of Ant. As it uses the Xalan extensions, you will need | |||||
BSF, Xalan and Xerces to run it. The stylesheet takes an <i>output.dir</i> parameter (otherwise it will be generated | |||||
You can find it in the <i>etc</i> directory of Ant. As it uses the Xalan redirect extensions, you will need Xalan and Xerces to run it. | |||||
The stylesheet takes an <i>output.dir</i> parameter (otherwise it will be generated | |||||
in the current directory), it can be run in Ant as follows: | in the current directory), it can be run in Ant as follows: | ||||
<pre> | <pre> | ||||
<java classname="org.apache.xalan.xslt.Process"> | |||||
<param value="-IN"/> | |||||
<param value="${metrics.xml}"/> | |||||
<param value="-XSL"/> | |||||
<param value="mmetrics-frames.xsl"/> | |||||
<param value="-PARAM"/> | |||||
<param value="output.dir"/> | |||||
<param value="&quot;'${report.dir}'&quot;"/> | |||||
</java> | |||||
<style in=java "${metrics.xml}" style="mmetrics-frames.xsl" out="null.tmp"> | |||||
<param name="output.dir" expression="${report.dir}quot;/> | |||||
</style> | |||||
</pre> | </pre> | ||||
<hr> | <hr> | ||||
<p align="center">Copyright © 2001 Apache Software Foundation. All rights | <p align="center">Copyright © 2001 Apache Software Foundation. All rights | ||||