ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciramella, Edward" <ECirame...@emptoris.com>
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
issue.

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 [mailto:stefano.mancarella@caboto.it]
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"/>
   </path>
   <pathconvert property="rules" refid="rules" dirSep="/" pathSep=",">
     <map from="${basedir}" to="rulesets"/>
   </pathconvert>
   <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"/>
   </pmd>
   <style basedir="${logs.dir}" includes="pmd_report.xml"
     destdir="${logs.dir}" style="pmd.xsl"/>
</target>




---------------------------------------------------------------------
To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-user-help@jakarta.apache.org

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