You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ma...@apache.org on 2003/02/11 06:54:51 UTC
cvs commit: jakarta-struts build.xml
martinc 2003/02/10 21:54:51
Modified: . build.xml
Log:
Update for PMD 1.02. Also allow rule sets and report file to be specified
using custom build properties.
Revision Changes Path
1.98 +4 -2 jakarta-struts/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/build.xml,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -r1.97 -r1.98
--- build.xml 11 Feb 2003 05:37:59 -0000 1.97
+++ build.xml 11 Feb 2003 05:54:51 -0000 1.98
@@ -99,6 +99,8 @@
<!-- Default values for unspecified properties -->
<property name="catalina.home" value="../jakarta-tomcat-4.0/build"/>
+ <property name="pmd.rulesets" value="rulesets/imports.xml,rulesets/unusedcode.xml"/>
+ <property name="pmd.report" value="pmdreport.html"/>
<!-- ========== Initialization Properties ================================= -->
@@ -738,8 +740,8 @@
classname="net.sourceforge.pmd.ant.PMDTask">
<classpath location="${pmd.jar}"/>
</taskdef>
- <pmd reportFile="pmdreport.html" format="html"
- rulesetfiles="rulesets/unusedcode.xml,rulesets/imports.xml">
+ <pmd printToConsole="true" rulesetfiles="${pmd.rulesets}">
+ <formatter type="html" toFile="${pmd.report}"/>
<fileset dir="${src.share.dir}" includes="**/*.java"/>
</pmd>
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org