From 5a6cf7ad062256dd1197a0741d2b783e97d75ec9 Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Mon, 24 Jun 2002 15:07:59 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@13 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/docs/ant.html | 46 +++++++++++++++++++++++++++++++++++++++++++++ pmd/docs/index.html | 3 +++ 2 files changed, 49 insertions(+) create mode 100644 pmd/docs/ant.html diff --git a/pmd/docs/ant.html b/pmd/docs/ant.html new file mode 100644 index 0000000000..f6fce666c5 --- /dev/null +++ b/pmd/docs/ant.html @@ -0,0 +1,46 @@ + +Ant and PMD + +

PMD

+

Description

+Runs a set of PMD rules on a set of files and generates a report. +
+

Parameters

+ + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
reportfileThe file to which the report is written.Yes
verboseVerbose output - just the name of each file processed + Defaults to the current directory.Yes
rulesettypeThe set of rules to use (all, general, cougaar)Yes
+
+

Examples

+
+    <target name="pmd">
+        <taskdef name="pmd" classname="com.infoether.pmd.PMDTask"/>
+        <pmd reportFile="c:\foo.txt" verbose="false" rulesettype="general">
+            <fileset dir="c:\j2sdk1.4.0\src\">
+                <include name="**/*.java"/>
+            </fileset>
+        </pmd>
+    </target>
+
+ + + \ No newline at end of file diff --git a/pmd/docs/index.html b/pmd/docs/index.html index b0ce8c3051..8782f19c3a 100644 --- a/pmd/docs/index.html +++ b/pmd/docs/index.html @@ -10,6 +10,9 @@
  • Unnecessary object creation (i.e., 'new Integer(5).toString()' rather than 'Integer.toString(5)')

    There aren't any releases yet, but you can check out the source code and whatnot here. +

    Usage +
    +Here's the Ant task documentation.

    Credits
    Thanks to Sourceforge for hosting this project
    Thanks to Webgain for hosting JavaCC.