Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 165 lines (154 sloc) 16.068 kB
fb2fadd Added Ant task for automatic code quality checks (closes PMT #898128)
egonw authored
1 <?xml version="1.0"?>
2 <project name="CDK" default="pmd" basedir=".">
3
8f7c085 Moving the PMD jars into develjar
egonw authored
4 <property name="lib" value="develjar" />
fb2fadd Added Ant task for automatic code quality checks (closes PMT #898128)
egonw authored
5 <property name="build" value="build" />
6 <property name="src" value="src" />
7 <property name="reports.tests" value="reports" />
2cb54aa Refactored to remove lots of duplicate code: use a parameter for a ge…
egonw authored
8
fb2fadd Added Ant task for automatic code quality checks (closes PMT #898128)
egonw authored
9 <path id="pmd.classpath">
10 <pathelement location="${build}"/>
11 <fileset dir="${lib}">
e9b669c Upgraded PMD to 4.1 in trunk/ (closes #1860716)
egonw authored
12 <include name="asm-3.1.jar"/>
13 <include name="junit-4.4.jar"/>
f29a66b @egonw Upgraded to PMD 2.4.5 with many bug fixes, giving more accurate error…
authored
14 <include name="pmd-4.2.5.jar"/>
e9b669c Upgraded PMD to 4.1 in trunk/ (closes #1860716)
egonw authored
15 <include name="jaxen-1.1.1.jar"/>
fb2fadd Added Ant task for automatic code quality checks (closes PMT #898128)
egonw authored
16 </fileset>
17 </path>
18
6eb7d20 Use a customized PMD result viewer
egonw authored
19 <target name="compileRenderer" id="compileRenderer">
20 <javac srcdir="pmd" destdir="${build}"
21 includes="net/sourceforge/pmd/renderers/SummaryVBHTMLRenderer.java">
22 <classpath refid="pmd.classpath" />
23 </javac>
24 </target>
25
dea018f Fixed taskdef problem
egonw authored
26 <taskdef name="pmd" id="pmd" classname="net.sourceforge.pmd.ant.PMDTask" classpathref="pmd.classpath"/>
27
28 <target name="pmd" id="pmd">
bd65ebd @egonw Only run the CDK-JChemPaint specific tests
authored
29 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="render"/></antcall>
30 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="renderbasic"/></antcall>
31 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="rendercontrol"/></antcall>
32 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="renderextra"/></antcall>
33 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="renderawt"/></antcall>
34 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="rendersvg"/></antcall>
35 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="control"/></antcall>
36 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="controlbasic"/></antcall>
37 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="controlextra"/></antcall>
38 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="controlawt"/></antcall>
39 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-control"/></antcall>
40 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-controlbasic"/></antcall>
41 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-controlextra"/></antcall>
42 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-controlawt"/></antcall>
43 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-render"/></antcall>
44 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-renderbasic"/></antcall>
45 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-rendercontrol"/></antcall>
46 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-renderextra"/></antcall>
47 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-renderawt"/></antcall>
48 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-rendersvg"/></antcall>
49 </target>
50
51 <target name="pmd-original" id="pmd-original">
d8b3e74 Fixed use of custom PMD tests
egonw authored
52 <!-- the data classes modules -->
53 <antcall target="test-module"><param name="pmd.test" value="custom-data"/><param name="module" value="data"/></antcall>
54 <antcall target="test-module"><param name="pmd.test" value="custom-data"/><param name="module" value="datadebug"/></antcall>
55 <antcall target="test-module"><param name="pmd.test" value="custom-data"/><param name="module" value="nonotify"/></antcall>
56 <!-- the other modules -->
57 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="interfaces"/></antcall>
58 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="core"/></antcall>
112f64d @egonw Moved the log4j.jar depending LoggingTool into a separate module
authored
59 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="log4j"/></antcall>
d8b3e74 Fixed use of custom PMD tests
egonw authored
60 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="standard"/></antcall>
2e301c0 Added the missing atomtype module
egonw authored
61 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="atomtype"/></antcall>
b2d4f85 @egonw Added code testing for the dict module
authored
62 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="dict"/></antcall>
d8b3e74 Fixed use of custom PMD tests
egonw authored
63 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="io"/></antcall>
64 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="extra"/></antcall>
d4e1369 Added missing lines for the formula module (closes #1882918)
egonw authored
65 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="formula"/></antcall>
d8b3e74 Fixed use of custom PMD tests
egonw authored
66 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="render"/></antcall>
110f4c1 @egonw Setting up the new renderbasic module.
authored
67 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="renderbasic"/></antcall>
f1ca34b @egonw Render AWT module which allows rendering of the abstract rendering el…
authored
68 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="renderawt"/></antcall>
02f7f2d @egonw Set up of the rendercontrol module, containing the rendering of contr…
authored
69 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="rendercontrol"/></antcall>
9f2c289 @egonw Render extra module with rendering functionality beyond IAtomContainers.
authored
70 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="renderextra"/></antcall>
f8028f7 @egonw Render SVG module allowing translation of the rendering elements to b…
authored
71 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="rendersvg"/></antcall>
6250d95 Added reaction and structgen for auto testing.
egonw authored
72 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="reaction"/></antcall>
7e20d83 Fixed libiocml module: remove '-' and added a test suite for the modu…
egonw authored
73 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="libiocml"/></antcall>
073e5ec @egonw Added modules that were missing from the PMD testing
authored
74 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="libiomd"/></antcall>
d8b3e74 Fixed use of custom PMD tests
egonw authored
75 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="builder3d"/></antcall>
76 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="smiles"/></antcall>
f121c46 Updated PMD scripts to work with the new smarts module
rajarshi authored
77 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="smarts"/></antcall>
9c15cf9 Updated scripts so that testing is performed on the pcore module
rajarshi authored
78 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="pcore"/></antcall>
073e5ec @egonw Added modules that were missing from the PMD testing
authored
79 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="fingerprint"/></antcall>
d8b3e74 Fixed use of custom PMD tests
egonw authored
80 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="forcefield"/></antcall>
073e5ec @egonw Added modules that were missing from the PMD testing
authored
81 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="inchi"/></antcall>
82 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="ioformats"/></antcall>
83 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="pdb"/></antcall>
d8b3e74 Fixed use of custom PMD tests
egonw authored
84 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="qsar"/></antcall>
77a7370 Added new qsar modules
egonw authored
85 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="qsaratomic"/></antcall>
86 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="qsarbond"/></antcall>
073e5ec @egonw Added modules that were missing from the PMD testing
authored
87 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="qsarionpot"/></antcall>
77a7370 Added new qsar modules
egonw authored
88 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="qsarmolecular"/></antcall>
89 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="qsarprotein"/></antcall>
6250d95 Added reaction and structgen for auto testing.
egonw authored
90 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="structgen"/></antcall>
073e5ec @egonw Added modules that were missing from the PMD testing
authored
91 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="sdg"/></antcall>
b73a662 @egonw Enabled PMD and OJDC for the tautomer module
authored
92 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="tautomer"/></antcall>
d8b3e74 Fixed use of custom PMD tests
egonw authored
93 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="valencycheck"/></antcall>
cb52b54 Hooked in stuff for the charges module
egonw authored
94 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="charges"/></antcall>
751488b @egonw Set up a CIP module.
authored
95 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="cip"/></antcall>
47f4131 Merged in egonw-diff
egonw authored
96 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="diff"/></antcall>
10edb71 @asad The big SMSD patch.
asad authored
97 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="smsd"/></antcall>
96cffcc @egonw Hooked in testing for iordf
authored
98 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="iordf"/></antcall>
7384bc3 @egonw Hooked in PMD testing for the signature module
authored
99 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="signature"/></antcall>
ce3999f @egonw Set up of the new controller infrastructure.
authored
100 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="control"/></antcall>
be5e36f @egonw Set up a controlbasic module, with basic editing functionality, like …
authored
101 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="controlbasic"/></antcall>
d1cb9f1 @egonw Set up the controlextra module for editing functionality for things b…
authored
102 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="controlextra"/></antcall>
572536f @egonw Setting up the controlawt module.
authored
103 <antcall target="test-module"><param name="pmd.test" value="custom"/><param name="module" value="controlawt"/></antcall>
30af1c6 Don't do the Vector check on the qm module, as it actually defines a …
egonw authored
104 <antcall target="test-module"><param name="pmd.test" value="custom-qm"/><param name="module" value="qm"/></antcall>
b7fe365 Reinstated the tests for the JUnit tests
egonw authored
105 <!-- the test modules -->
106 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-core"/></antcall>
17f3101 Included the new module test-interfaces in the PMD test runs
egonw authored
107 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-interfaces"/></antcall>
b7fe365 Reinstated the tests for the JUnit tests
egonw authored
108 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-data"/></antcall>
109 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-datadebug"/></antcall>
b2d4f85 @egonw Added code testing for the dict module
authored
110 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-dict"/></antcall>
b7fe365 Reinstated the tests for the JUnit tests
egonw authored
111 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-nonotify"/></antcall>
112 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-extra"/></antcall>
113 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-forcefield"/></antcall>
2e301c0 Added the missing atomtype module
egonw authored
114 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-atomtype"/></antcall>
b7fe365 Reinstated the tests for the JUnit tests
egonw authored
115 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-io"/></antcall>
116 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-reaction"/></antcall>
117 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-smiles"/></antcall>
118 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-standard"/></antcall>
9c15cf9 Updated scripts so that testing is performed on the pcore module
rajarshi authored
119 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-pcore"/></antcall>
b7fe365 Reinstated the tests for the JUnit tests
egonw authored
120 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-valencycheck"/></antcall>
77a7370 Added new qsar modules
egonw authored
121 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-qsar"/></antcall>
122 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-qsaratomic"/></antcall>
123 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-qsarbond"/></antcall>
124 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-qsarmolecular"/></antcall>
125 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-qsarprotein"/></antcall>
cb52b54 Hooked in stuff for the charges module
egonw authored
126 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-charges"/></antcall>
751488b @egonw Set up a CIP module.
authored
127 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-cip"/></antcall>
47f4131 Merged in egonw-diff
egonw authored
128 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-diff"/></antcall>
ce3999f @egonw Set up of the new controller infrastructure.
authored
129 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-control"/></antcall>
be5e36f @egonw Set up a controlbasic module, with basic editing functionality, like …
authored
130 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-controlbasic"/></antcall>
d1cb9f1 @egonw Set up the controlextra module for editing functionality for things b…
authored
131 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-controlextra"/></antcall>
572536f @egonw Setting up the controlawt module.
authored
132 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-controlawt"/></antcall>
f782e65 Set up a new module, with the QM code
egonw authored
133 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-qm"/></antcall>
10edb71 @asad The big SMSD patch.
asad authored
134 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-smsd"/></antcall>
b73a662 @egonw Enabled PMD and OJDC for the tautomer module
authored
135 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-tautomer"/></antcall>
112f64d @egonw Moved the log4j.jar depending LoggingTool into a separate module
authored
136 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-log4j"/></antcall>
7384bc3 @egonw Hooked in PMD testing for the signature module
authored
137 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-signature"/></antcall>
96cffcc @egonw Hooked in testing for iordf
authored
138 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-iordf"/></antcall>
110f4c1 @egonw Setting up the new renderbasic module.
authored
139 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-render"/></antcall>
140 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-renderbasic"/></antcall>
f1ca34b @egonw Render AWT module which allows rendering of the abstract rendering el…
authored
141 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-renderawt"/></antcall>
02f7f2d @egonw Set up of the rendercontrol module, containing the rendering of contr…
authored
142 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-rendercontrol"/></antcall>
9f2c289 @egonw Render extra module with rendering functionality beyond IAtomContainers.
authored
143 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-renderextra"/></antcall>
f8028f7 @egonw Render SVG module allowing translation of the rendering elements to b…
authored
144 <antcall target="test-module"><param name="pmd.test" value="custom-test"/><param name="module" value="test-rendersvg"/></antcall>
3343372 Added more modules
egonw authored
145 </target>
146
2cb54aa Refactored to remove lots of duplicate code: use a parameter for a ge…
egonw authored
147 <target id="test-module" name="test-module"
148 description="Performs a PMD checks for the given CDK module.">
3343372 Added more modules
egonw authored
149
2cb54aa Refactored to remove lots of duplicate code: use a parameter for a ge…
egonw authored
150 <echo message="Running PMD checks for CDK's ${module} module." />
7d09c48 Added infra structure for quality control of the qsar module
egonw authored
151
2cb54aa Refactored to remove lots of duplicate code: use a parameter for a ge…
egonw authored
152 <mkdir dir="${reports.tests}/pmd"/>
d8b3e74 Fixed use of custom PMD tests
egonw authored
153 <pmd shortFilenames="true" rulesetfiles="pmd/${pmd.test}.xml">
d502dd4 Reverted pmd.xml to output XML rather than HTML. If HTML is required …
rajarshi authored
154 <formatter type="xml" toFile="${reports.tests}/pmd/${module}.xml"/>
7c5c872 Merged the branch egonw/maintest: sets up src/main and src/test for s…
egonw authored
155 <fileset dir="${src}/main">
156 <includesfile name="${build}/${module}.javafiles"/>
157 </fileset>
158 <fileset dir="${src}/test">
f5851ce Updated for move of .javafiles
egonw authored
159 <includesfile name="${build}/${module}.javafiles"/>
2cb54aa Refactored to remove lots of duplicate code: use a parameter for a ge…
egonw authored
160 </fileset>
161 </pmd>
3e04bca Updated for new PMD version
egonw authored
162 </target>
163
fb2fadd Added Ant task for automatic code quality checks (closes PMT #898128)
egonw authored
164 </project>
Something went wrong with that request. Please try again.