-
Notifications
You must be signed in to change notification settings - Fork 3
/
cpd.xml
27 lines (24 loc) · 1 KB
/
cpd.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<project name="cpd" default="test" basedir="../">
<property name='CPD_PATH_TO_FILES' value=""/>
<property name="outputTestResultsToFile" value="true" />
<target name="cpdphp" description="Runs CPD for PHP">
<taskdef name="cpd" classname="net.sourceforge.pmd.cpd.CPDTask" />
<cpd language="php" minimumTokenCount="100" outputFile="/tmp/cpd.xml" format="xml">
<fileset dir="${CPD_PATH_TO_FILES}">
<include name="**/*.php" />
<exclude name="test/**" />
<exclude name="**/admin/*" />
</fileset>
</cpd>
</target>
<target name="cpdcpp" description="Runs CPD for CPP">
<taskdef name="cpd" classname="net.sourceforge.pmd.cpd.CPDTask" />
<cpd language="cpp" minimumTokenCount="100" outputFile="/tmp/cpd.xml" format="xml">
<fileset dir="${CPD_PATH_TO_FILES}">
<include name="**/*.cpp" />
<include name="**/*.h" />
<exclude name="**/tests/*" />
</fileset>
</cpd>
</target>
</project>