A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.pmd-code.org/apidocs/pmd-ant/7.14.0/net/sourceforge/pmd/ant/CPDTask.html below:

CPDTask (PMD Ant Integration 7.14.0 API)

java.lang.Object

org.apache.tools.ant.ProjectComponent

org.apache.tools.ant.Task

net.sourceforge.pmd.ant.CPDTask

All Implemented Interfaces:
Cloneable

public class CPDTask extends org.apache.tools.ant.Task

CPD Ant task. Setters of this class are interpreted by Ant as properties settable in the XML. This is therefore published API.

Runs the CPD utility via ant. The ant task looks like this:


   <project name="CPDProject" default="main" basedir=".">
     <path id="pmd.classpath">
         <fileset dir="/home/joe/pmd-bin-VERSION/lib">
             <include name="*.jar"/>
         </fileset>
     </path>
     <taskdef name="cpd" classname="net.sourceforge.pmd.ant.CPDTask" classpathref="pmd.classpath" />

     <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>
 

Required: minimumTokenCount, outputFile, and at least one file


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4