From 8d226e312c364e3465737658341d24cf795c3393 Mon Sep 17 00:00:00 2001
From: Stephane Bailliez byMAudit
-
@@ -102,7 +101,7 @@ package names deduced from the file path will be incorrect.
</classpath>
<sourcepath>
<pathelement location="c:/metamata/examples/auditexamples"/>
- </classpath>
+ </sourcepath>
<fileset dir="c:/metamata/examples/auditexamples">
<include name="*.java"/>
<fileset>
@@ -112,20 +111,14 @@ package names deduced from the file path will be incorrect.
and fix automatically the fixable errors.
-<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=""'${report.dir}'""/>
-</java>
+<style in=java "${audit.xml}" style="maudit-frames.xsl" out="null.tmp">
+ <param name="output.dir" expression="${report.dir}quot;/>
+</style>
by
<mmetrics target="mmetrics.xml"
+ <mmetrics tofile="mmetrics.xml"
metamatahome="c:/metamata"
granularity="methods">
<classpath>
@@ -108,19 +107,13 @@ by the different outputs.
Generating a report
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 etc directory of Ant. As it uses the Xalan extensions, you will need
-BSF, Xalan and Xerces to run it. The stylesheet takes an output.dir parameter (otherwise it will be generated
+You can find it in the etc directory of Ant. As it uses the Xalan redirect extensions, you will need Xalan and Xerces to run it.
+The stylesheet takes an output.dir parameter (otherwise it will be generated
in the current directory), it can be run in Ant as follows:
-<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=""'${report.dir}'""/>
-</java>
+<style in=java "${metrics.xml}" style="mmetrics-frames.xsl" out="null.tmp">
+ <param name="output.dir" expression="${report.dir}quot;/>
+</style>
Copyright © 2001 Apache Software Foundation. All rights