[Pmd-devel] pmd/xdocs ant-task.xml,1.13,1.14
A source code analyzer
Brought to you by:
adangel,
juansotuyo
From: Tom C. <tom...@us...> - 2002-12-09 15:36:07
|
Update of /cvsroot/pmd/pmd/xdocs In directory sc8-pr-cvs1:/tmp/cvs-serv18084/xdocs Modified Files: ant-task.xml Log Message: modified Ant task to use formatter element vs separate reportFile and format attributes Index: ant-task.xml =================================================================== RCS file: /cvsroot/pmd/pmd/xdocs/ant-task.xml,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** ant-task.xml 12 Sep 2002 20:42:32 -0000 1.13 --- ant-task.xml 9 Dec 2002 15:36:04 -0000 1.14 *************** *** 11,15 **** <section name="PMD"> <subsection name="Description"> ! <p>Runs a set of static code analysis rules on some Java source code files and generates a list of problems found.</p> </subsection> <subsection name="Parameters"> --- 11,15 ---- <section name="PMD"> <subsection name="Description"> ! <p>Runs a set of static code analysis rules on Java source code files and generates a list of problems found.</p> </subsection> <subsection name="Parameters"> *************** *** 21,35 **** </tr> <tr> ! <td valign="top">reportfile</td> ! <td valign="top">The file to which the report is written.</td> <td valign="top" align="center">Yes</td> </tr> <tr> - <td valign="top">verbose</td> - <td valign="top">Verbose output - names of files processed, rule counts, etc.</td> - <td valign="top" align="center">No</td> - </tr> - <tr> <td valign="top">rulesetfiles</td> <td valign="top">A comma delimited list of ruleset files ('rulesets/basic.xml,rulesets/design.xml'). If you write --- 21,30 ---- </tr> <tr> ! <td valign="top">formatter</td> ! <td valign="top">Specifies formats and files to which the report is written. Can be of type 'xml' or 'html'. See example below.</td> <td valign="top" align="center">Yes</td> </tr> <tr> <td valign="top">rulesetfiles</td> <td valign="top">A comma delimited list of ruleset files ('rulesets/basic.xml,rulesets/design.xml'). If you write *************** *** 38,46 **** </tr> <tr> - <td valign="top">format</td> - <td valign="top">The report format (xml, html)</td> - <td valign="top" align="center">Yes</td> - </tr> - <tr> <td valign="top">failonerror</td> <td valign="top">Whether or not to fail the build if PMD finds any problems</td> --- 33,36 ---- *************** *** 52,55 **** --- 42,50 ---- <td valign="top" align="center">No</td> </tr> + <tr> + <td valign="top">verbose</td> + <td valign="top">Verbose output - names of files processed, rule counts, etc.</td> + <td valign="top" align="center">No</td> + </tr> </table> *************** *** 60,64 **** <target name="pmd"> <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" /> ! <pmd reportFile="C:\foo.xml" rulesetfiles="rulesets/unusedcode.xml" format="xml"> <fileset dir="C:\j2sdk1.4.0\src\"> <include name="**/*.java"/> --- 55,60 ---- <target name="pmd"> <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" /> ! <pmd rulesetfiles="rulesets/unusedcode.xml"> ! <formatter type="html" toFile="c:\jdk-report.html"/> <fileset dir="C:\j2sdk1.4.0\src\"> <include name="**/*.java"/> *************** *** 69,73 **** <target name="pmd"> <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" /> ! <pmd reportFile="C:\foo.xml" verbose="false" rulesetfiles="rulesets/basic.xml,rulesets/design.xml" format="xml" failonerror="no"> <fileset dir="C:\j2sdk1.4.0\src\"> <include name="**/*.java"/> --- 65,70 ---- <target name="pmd"> <taskdef name="pmd" classname="net.sourceforge.pmd.ant.PMDTask" /> ! <pmd verbose="true" rulesetfiles="rulesets/basic.xml,rulesets/design.xml" failonerror="no"> ! <formatter type="xml" toFile="c:\jdk-report.xml"/> <fileset dir="C:\j2sdk1.4.0\src\"> <include name="**/*.java"/> |