xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir R. Bossicard" <vladi...@apache.org>
Subject Re: Unused imports
Date Fri, 20 Dec 2002 09:27:08 GMT
> Is it possible to make this part of Gump?

If you have an ant build file, here's the task from Xindice (in 
contributor.xml file):

     <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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message