ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciramella, Edward" <>
Subject RE: PMD
Date Tue, 04 Feb 2003 16:56:58 GMT
Right, I don't think I have my target configured improperly, that's not the

What I'm not sure of is where the problem is in the file PMD chokes on - and
what exactly it is.
Even with -verbose -debug and PMD's verbose="true", I can't chase it down.

-----Original Message-----
From: Stefano Mancarella []
Sent: Tuesday, February 04, 2003 11:55 AM
To: Ant Users List
Subject: Re: PMD

Ciramella, Edward wrote:
> I still get the same error:
> file:C:/IMPORT-TESTING/build.xml:46: The <pmd> task doesn't support the
> "reportfile" attribute.

Here's my PMD target, which works perfectly with PMD 1.02. I've derived 
it from an example from Dominique Devienne.
It seems that PMD docs still refer to a previous version, where nested 
<formatter> elements weren't supported.

<target name="pmd">
   <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask"/>
   <mkdir dir="${logs.dir}"/>
   <path id="rules">
     <pathelement location="strings.xml"/>
     <pathelement location="junit.xml"/>
     <pathelement location="braces.xml"/>
     <pathelement location="basic.xml"/>
     <pathelement location="unusedcode.xml"/>
     <!--pathelement location="design.xml"/-->
     <pathelement location="imports.xml"/>
   <pathconvert property="rules" refid="rules" dirSep="/" pathSep=",">
     <map from="${basedir}" to="rulesets"/>
   <pmd rulesetfiles="${rules}" printToConsole="true">
     <formatter type="xml" toFile="${logs.dir}/pmd_report.xml"/>
     <formatter type="text" toFile="${logs.dir}/pmd.log"/>
     <fileset dir="${src.dir}" includes="**/*.java"/>
   <style basedir="${logs.dir}" includes="pmd_report.xml"
     destdir="${logs.dir}" style="pmd.xsl"/>

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message