Runs the CPD utility via ant. The ant task looks like this:
* - *- * <project name="CPDProj" default="main" basedir="."> - * <taskdef name="cpd" classname="net.sourceforge.pmd.cpd.CPDTask" /> - * <target name="main"> - * <cpd encoding="UTF-16LE" language="java" ignoreIdentifiers="true" - * ignoreLiterals="true" ignoreAnnotations="true" minimumTokenCount="100" - * outputFile="c:\cpdrun.txt"> - * <fileset dir="/path/to/my/src"> - * <include name="*.java"/> - * </fileset> - * </cpd> - * </target> - * </project> - *+ *
{@code + ** *+ * + * }+ * + *+ * + *+ * + * + * + * + *+ * + *+ * + *+ *
Required: minimumTokenCount, outputFile, and at least one file
*/ diff --git a/pmd-ant/src/main/java/net/sourceforge/pmd/ant/PMDTask.java b/pmd-ant/src/main/java/net/sourceforge/pmd/ant/PMDTask.java index 578db83ca5..db10833ff7 100644 --- a/pmd-ant/src/main/java/net/sourceforge/pmd/ant/PMDTask.java +++ b/pmd-ant/src/main/java/net/sourceforge/pmd/ant/PMDTask.java @@ -24,6 +24,31 @@ import net.sourceforge.pmd.ant.internal.PMDTaskImpl; /** * PMD Ant task. Setters of this class are interpreted by Ant as properties * settable in the XML. This is therefore published API. + * + *Runs PMD analysis via ant. The ant task looks like this:
+ * + *{@code + *+ * + *+ * + * }+ * + *+ * + *+ * + * + * + * + *+ * + *rulesets/java/quickstart.xml + *config/my-ruleset.xml + *+ * + *+ *
Required: rulesetfiles/ruleset, fileset
*/ public class PMDTask extends Task {