-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmd-unused.xml
119 lines (110 loc) · 7.46 KB
/
pmd-unused.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0"?>
<project name="CDK" default="pmd" basedir=".">
<property name="lib" value="develjar" />
<property name="build" value="build" />
<property name="src" value="src" />
<property name="reports.tests" value="reports" />
<path id="pmd.classpath">
<pathelement location="${build}"/>
<fileset dir="${lib}">
<include name="asm-3.2.jar"/>
<include name="junit-4.4.jar"/>
<include name="pmd-5.0.4.jar"/>
<include name="jaxen-1.1.1.jar"/>
</fileset>
</path>
<target name="compileRenderer" id="compileRenderer">
<javac srcdir="pmd" destdir="${build}"
includes="net/sourceforge/pmd/renderers/SummaryVBHTMLRenderer.java">
<classpath refid="pmd.classpath" />
</javac>
</target>
<taskdef name="pmd" id="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpathref="pmd.classpath"/>
<target name="pmd" id="pmd">
<!-- the data classes modules -->
<antcall target="test-module"><param name="module" value="data"/></antcall>
<antcall target="test-module"><param name="module" value="datadebug"/></antcall>
<!-- the other modules -->
<antcall target="test-module"><param name="module" value="interfaces"/></antcall>
<antcall target="test-module"><param name="module" value="core"/></antcall>
<antcall target="test-module"><param name="module" value="cip"/></antcall>
<antcall target="test-module"><param name="module" value="standard"/></antcall>
<antcall target="test-module"><param name="module" value="atomtype"/></antcall>
<antcall target="test-module"><param name="module" value="io"/></antcall>
<antcall target="test-module"><param name="module" value="extra"/></antcall>
<antcall target="test-module"><param name="module" value="formula"/></antcall>
<antcall target="test-module"><param name="module" value="render"/></antcall>
<antcall target="test-module"><param name="module" value="renderbasic"/></antcall>
<antcall target="test-module"><param name="module" value="renderawt"/></antcall>
<antcall target="test-module"><param name="module" value="renderextra"/></antcall>
<antcall target="test-module"><param name="module" value="reaction"/></antcall>
<antcall target="test-module"><param name="module" value="libiocml"/></antcall>
<antcall target="test-module"><param name="module" value="builder3d"/></antcall>
<antcall target="test-module"><param name="module" value="smiles"/></antcall>
<antcall target="test-module"><param name="module" value="smarts"/></antcall>
<antcall target="test-module"><param name="module" value="pcore"/></antcall>
<antcall target="test-module"><param name="module" value="forcefield"/></antcall>
<antcall target="test-module"><param name="module" value="qsar"/></antcall>
<antcall target="test-module"><param name="module" value="qsaratomic"/></antcall>
<antcall target="test-module"><param name="module" value="qsarbond"/></antcall>
<antcall target="test-module"><param name="module" value="qsarmolecular"/></antcall>
<antcall target="test-module"><param name="module" value="qsarprotein"/></antcall>
<antcall target="test-module"><param name="module" value="structgen"/></antcall>
<antcall target="test-module"><param name="module" value="tautomer"/></antcall>
<antcall target="test-module"><param name="module" value="valencycheck"/></antcall>
<antcall target="test-module"><param name="module" value="charges"/></antcall>
<antcall target="test-module"><param name="module" value="diff"/></antcall>
<antcall target="test-module"><param name="module" value="qm"/></antcall>
<antcall target="test-module"><param name="module" value="smsd"/></antcall>
<antcall target="test-module"><param name="module" value="iordf"/></antcall>
<antcall target="test-module"><param name="module" value="signature"/></antcall>
<!-- the test modules -->
<antcall target="test-module"><param name="module" value="test-core"/></antcall>
<antcall target="test-module"><param name="module" value="test-cip"/></antcall>
<antcall target="test-module"><param name="module" value="test-interfaces"/></antcall>
<antcall target="test-module"><param name="module" value="test-data"/></antcall>
<antcall target="test-module"><param name="module" value="test-datadebug"/></antcall>
<antcall target="test-module"><param name="module" value="test-atomtype"/></antcall>
<antcall target="test-module"><param name="module" value="test-extra"/></antcall>
<antcall target="test-module"><param name="module" value="test-forcefield"/></antcall>
<antcall target="test-module"><param name="module" value="test-io"/></antcall>
<antcall target="test-module"><param name="module" value="test-reaction"/></antcall>
<antcall target="test-module"><param name="module" value="test-smiles"/></antcall>
<antcall target="test-module"><param name="module" value="test-standard"/></antcall>
<antcall target="test-module"><param name="module" value="test-tautomer"/></antcall>
<antcall target="test-module"><param name="module" value="test-valencycheck"/></antcall>
<antcall target="test-module"><param name="module" value="test-charges"/></antcall>
<antcall target="test-module"><param name="module" value="test-pcore"/></antcall>
<antcall target="test-module"><param name="module" value="test-qsar"/></antcall>
<antcall target="test-module"><param name="module" value="test-qsaratomic"/></antcall>
<antcall target="test-module"><param name="module" value="test-qsarbond"/></antcall>
<antcall target="test-module"><param name="module" value="test-qsarmolecular"/></antcall>
<antcall target="test-module"><param name="module" value="test-qsarprotein"/></antcall>
<antcall target="test-module"><param name="module" value="test-diff"/></antcall>
<antcall target="test-module"><param name="module" value="test-iordf"/></antcall>
<antcall target="test-module"><param name="module" value="test-qm"/></antcall>
<antcall target="test-module"><param name="module" value="test-smsd"/></antcall>
<antcall target="test-module"><param name="module" value="test-signature"/></antcall>
<antcall target="test-module"><param name="module" value="test-render"/></antcall>
<antcall target="test-module"><param name="module" value="test-renderbasic"/></antcall>
<antcall target="test-module"><param name="module" value="test-renderawt"/></antcall>
<antcall target="test-module"><param name="module" value="test-renderextra"/></antcall>
</target>
<target id="test-module" name="test-module"
description="Checks for unused code in the given CDK module.">
<echo message="Checking for unused code in CDK's ${module} module." />
<mkdir dir="${reports.tests}/pmd-unused"/>
<pmd shortFilenames="true" rulesetfiles="pmd/unused.xml">
<formatter type="xml" toFile="${reports.tests}/pmd-unused/${module}.xml"/>
<fileset dir="${src}/main">
<includesfile name="${build}/${module}.javafiles"/>
</fileset>
<fileset dir="${src}/test">
<includesfile name="${build}/${module}.javafiles"/>
</fileset>
</pmd>
<xslt basedir="${reports.tests}/pmd-unused" destdir="${reports.tests}/pmd-unused"
includes="${module}.xml"
extension=".html" style="pmd/wz-pmd-report.xslt"/>
</target>
</project>