If you have an ant build file, here's the task from Xindice (in contributor.xml file):Is it possible to make this part of Gump?
<property name="pmd.rules" value="rulesets/basic.xml,rulesets/imports.xml,rulesets/unusedcode.xml" />
<target name="pmd"
description="checks for code quality">
<taskdef name="pmd"
classname="net.sourceforge.pmd.ant.PMDTask"
classpath="${pmd.jar}" />
<pmd reportFile="pmd.html"
verbose="false"
rulesetfiles="${pmd.rules}"
format="html"
failonerror="no">
<fileset dir="${src.dir}">
<include name="**/*.java"/>
</fileset>
</pmd>
</target>
you just have to specify the location of the pmd.jar file (in a property file) and the src directory.
But it's better to integrate PMD into your ide (to jump directly to the location). See the PMD website for more info.
-Vladimir
--
Vladimir R. Bossicard
Apache Xindice - http://xml.apache.org/xindice
---------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
