|
@@ -1,375 +1,117 @@
|
1
|
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
|
-<!-- You may freely edit this file. See commented blocks below for -->
|
3
|
|
-<!-- some examples of how to customize the build. -->
|
4
|
|
-<!-- (If you delete it and reopen the project it will be recreated.) -->
|
5
|
2
|
<project name="DMDirc" default="default" basedir=".">
|
6
|
3
|
<description>Builds, tests, and runs the project DMDirc.</description>
|
7
|
4
|
<import file="nbproject/build-impl.xml"/>
|
8
|
|
- <!--
|
9
|
|
-
|
10
|
|
- There exist several targets which are by default empty and which can be
|
11
|
|
- used for execution of your tasks. These targets are usually executed
|
12
|
|
- before and after some main targets. They are:
|
13
|
|
-
|
14
|
|
- -pre-init: called before initialization of project properties
|
15
|
|
- -post-init: called after initialization of project properties
|
16
|
|
- -pre-compile: called before javac compilation
|
17
|
|
- -post-compile: called after javac compilation
|
18
|
|
- -pre-compile-single: called before javac compilation of single file
|
19
|
|
- -post-compile-single: called after javac compilation of single file
|
20
|
|
- -pre-compile-test: called before javac compilation of JUnit tests
|
21
|
|
- -post-compile-test: called after javac compilation of JUnit tests
|
22
|
|
- -pre-compile-test-single: called before javac compilation of single JUnit test
|
23
|
|
- -post-compile-test-single: called after javac compilation of single JUunit test
|
24
|
|
- -pre-jar: called before JAR building
|
25
|
|
- -post-jar: called after JAR building
|
26
|
|
- -post-clean: called after cleaning build products
|
27
|
|
-
|
28
|
|
- (Targets beginning with '-' are not intended to be called on their own.)
|
29
|
|
-
|
30
|
|
- Example of inserting an obfuscator after compilation could look like this:
|
31
|
|
-
|
32
|
|
- <target name="-post-compile">
|
33
|
|
- <obfuscate>
|
34
|
|
- <fileset dir="${build.classes.dir}"/>
|
35
|
|
- </obfuscate>
|
36
|
|
- </target>
|
37
|
|
-
|
38
|
|
- For list of available properties check the imported
|
39
|
|
- nbproject/build-impl.xml file.
|
40
|
|
-
|
41
|
|
-
|
42
|
|
- Another way to customize the build is by overriding existing main targets.
|
43
|
|
- The targets of interest are:
|
44
|
|
-
|
45
|
|
- -init-macrodef-javac: defines macro for javac compilation
|
46
|
|
- -init-macrodef-junit: defines macro for junit execution
|
47
|
|
- -init-macrodef-debug: defines macro for class debugging
|
48
|
|
- -init-macrodef-java: defines macro for class execution
|
49
|
|
- -do-jar-with-manifest: JAR building (if you are using a manifest)
|
50
|
|
- -do-jar-without-manifest: JAR building (if you are not using a manifest)
|
51
|
|
- run: execution of project
|
52
|
|
- -javadoc-build: Javadoc generation
|
53
|
|
- test-report: JUnit report generation
|
54
|
|
-
|
55
|
|
- An example of overriding the target for project execution could look like this:
|
56
|
|
-
|
57
|
|
- <target name="run" depends="DMDirc-impl.jar">
|
58
|
|
- <exec dir="bin" executable="launcher.exe">
|
59
|
|
- <arg file="${dist.jar}"/>
|
60
|
|
- </exec>
|
61
|
|
- </target>
|
62
|
|
-
|
63
|
|
- Notice that the overridden target depends on the jar target and not only on
|
64
|
|
- the compile target as the regular run target does. Again, for a list of available
|
65
|
|
- properties which you can use, check the target you are overriding in the
|
66
|
|
- nbproject/build-impl.xml file.
|
67
|
|
-
|
68
|
|
- -->
|
69
|
5
|
<target name="checkstyle" depends="
|
70
|
|
- checkstyle-dmdirc-all, checkstyle-sun-all, checkstyle-duplicate-all, checkstyle-todo-all,
|
71
|
|
- checkstyle-dmdirc-core, checkstyle-sun-core, checkstyle-duplicate-core, checkstyle-todo-core,
|
72
|
|
- checkstyle-dmdirc-commandparser, checkstyle-sun-commandparser, checkstyle-duplicate-commandparser, checkstyle-todo-commandparser,
|
73
|
|
- checkstyle-dmdirc-identities, checkstyle-sun-identities, checkstyle-duplicate-identities, checkstyle-todo-identities,
|
74
|
|
- checkstyle-dmdirc-logger, checkstyle-sun-logger, checkstyle-duplicate-logger, checkstyle-todo-logger,
|
75
|
|
- checkstyle-dmdirc-parser, checkstyle-sun-parser, checkstyle-duplicate-parser, checkstyle-todo-parser,
|
76
|
|
- checkstyle-dmdirc-ui, checkstyle-sun-ui, checkstyle-duplicate-ui, checkstyle-todo-ui,
|
|
6
|
+ checkstyle-all,
|
|
7
|
+ checkstyle-actions,
|
|
8
|
+ checkstyle-core,
|
|
9
|
+ checkstyle-commandparser,
|
|
10
|
+ checkstyle-identities,
|
|
11
|
+ checkstyle-logger,
|
|
12
|
+ checkstyle-parser,
|
|
13
|
+ checkstyle-plugins,
|
|
14
|
+ checkstyle-ui,
|
77
|
15
|
remove-xml-files, move-index" />
|
78
|
|
-
|
|
16
|
+
|
|
17
|
+ <target name="checkstyle-plugins">
|
|
18
|
+ <taskdef resource="checkstyletask.properties"
|
|
19
|
+ classpath="checkstyle-all-4.3.jar"/>
|
|
20
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
21
|
+ failOnViolation="false">
|
|
22
|
+ <fileset dir="src/uk/org/ownage/dmdirc/plugins/" includes="**/*.java"/>
|
|
23
|
+ <formatter type="xml" tofile="reports/report-plugins.xml"/>
|
|
24
|
+ </checkstyle>
|
|
25
|
+ <xslt in="reports/report-plugins.xml" out="reports/report-plugins.html" style="checkstyle/checkstyle.xsl"/>
|
|
26
|
+ </target>
|
|
27
|
+
|
|
28
|
+ <target name="checkstyle-actions">
|
|
29
|
+ <taskdef resource="checkstyletask.properties"
|
|
30
|
+ classpath="checkstyle-all-4.3.jar"/>
|
|
31
|
+ <checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
|
32
|
+ failOnViolation="false">
|
|
33
|
+ <fileset dir="src/uk/org/ownage/dmdirc/actions/" includes="**/*.java"/>
|
|
34
|
+ <formatter type="xml" tofile="reports/report-actions.xml"/>
|
|
35
|
+ </checkstyle>
|
|
36
|
+ <xslt in="reports/report-actions.xml" out="reports/report-actions.html" style="checkstyle/checkstyle.xsl"/>
|
|
37
|
+ </target>
|
79
|
38
|
|
80
|
|
- <target name="checkstyle-dmdirc-ui">
|
|
39
|
+ <target name="checkstyle-ui">
|
81
|
40
|
<taskdef resource="checkstyletask.properties"
|
82
|
41
|
classpath="checkstyle-all-4.3.jar"/>
|
83
|
42
|
<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
84
|
43
|
failOnViolation="false">
|
85
|
44
|
<fileset dir="src/uk/org/ownage/dmdirc/ui/" includes="**/*.java"/>
|
86
|
|
- <formatter type="xml" tofile="reports/report-ui-dmdirc.xml"/>
|
87
|
|
- </checkstyle>
|
88
|
|
- <xslt in="reports/report-ui-dmdirc.xml" out="reports/report-ui-dmdirc.html" style="checkstyle/checkstyle.xsl"/>
|
89
|
|
- </target>
|
90
|
|
- <target name="checkstyle-sun-ui">
|
91
|
|
- <taskdef resource="checkstyletask.properties"
|
92
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
93
|
|
- <checkstyle config="checkstyle/sun_checks.xml" failureProperty="checkstyle.failure"
|
94
|
|
- failOnViolation="false">
|
95
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/ui/" includes="**/*.java"/>
|
96
|
|
- <formatter type="xml" tofile="reports/report-ui-sun.xml"/>
|
97
|
|
- </checkstyle>
|
98
|
|
- <xslt in="reports/report-ui-sun.xml" out="reports/report-ui-sun.html" style="checkstyle/checkstyle.xsl"/>
|
99
|
|
- </target>
|
100
|
|
- <target name="checkstyle-duplicate-ui">
|
101
|
|
- <taskdef resource="checkstyletask.properties"
|
102
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
103
|
|
- <checkstyle config="checkstyle/duplicate_code_checks.xml" failureProperty="checkstyle.failure"
|
104
|
|
- failOnViolation="false">
|
105
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/ui/" includes="**/*.java"/>
|
106
|
|
- <formatter type="xml" tofile="reports/report-ui-duplicate.xml"/>
|
|
45
|
+ <formatter type="xml" tofile="reports/report-ui.xml"/>
|
107
|
46
|
</checkstyle>
|
108
|
|
- <xslt in="reports/report-ui-duplicate.xml" out="reports/report-ui-duplicate.html" style="checkstyle/checkstyle.xsl"/>
|
109
|
|
- </target>
|
110
|
|
- <target name="checkstyle-todo-ui">
|
111
|
|
- <taskdef resource="checkstyletask.properties"
|
112
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
113
|
|
- <checkstyle config="checkstyle/todo_checks.xml" failureProperty="checkstyle.failure"
|
114
|
|
- failOnViolation="false">
|
115
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/ui/" includes="**/*.java"/>
|
116
|
|
- <formatter type="xml" tofile="reports/report-ui-todo.xml"/>
|
117
|
|
- </checkstyle>
|
118
|
|
- <xslt in="reports/report-ui-todo.xml" out="reports/report-ui-todo.html" style="checkstyle/checkstyle.xsl"/>
|
|
47
|
+ <xslt in="reports/report-ui.xml" out="reports/report-ui.html" style="checkstyle/checkstyle.xsl"/>
|
119
|
48
|
</target>
|
120
|
49
|
|
121
|
|
-
|
122
|
|
- <target name="checkstyle-dmdirc-parser">
|
|
50
|
+ <target name="checkstyle-parser">
|
123
|
51
|
<taskdef resource="checkstyletask.properties"
|
124
|
52
|
classpath="checkstyle-all-4.3.jar"/>
|
125
|
53
|
<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
126
|
54
|
failOnViolation="false">
|
127
|
55
|
<fileset dir="src/uk/org/ownage/dmdirc/parser/" includes="**/*.java"/>
|
128
|
|
- <formatter type="xml" tofile="reports/report-parser-dmdirc.xml"/>
|
|
56
|
+ <formatter type="xml" tofile="reports/report-parser.xml"/>
|
129
|
57
|
</checkstyle>
|
130
|
|
- <xslt in="reports/report-parser-dmdirc.xml" out="reports/report-parser-dmdirc.html" style="checkstyle/checkstyle.xsl"/>
|
131
|
|
- </target>
|
132
|
|
- <target name="checkstyle-sun-parser">
|
133
|
|
- <taskdef resource="checkstyletask.properties"
|
134
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
135
|
|
- <checkstyle config="checkstyle/sun_checks.xml" failureProperty="checkstyle.failure"
|
136
|
|
- failOnViolation="false">
|
137
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/parser/" includes="**/*.java"/>
|
138
|
|
- <formatter type="xml" tofile="reports/report-parser-sun.xml"/>
|
139
|
|
- </checkstyle>
|
140
|
|
- <xslt in="reports/report-parser-sun.xml" out="reports/report-parser-sun.html" style="checkstyle/checkstyle.xsl"/>
|
141
|
|
- </target>
|
142
|
|
- <target name="checkstyle-duplicate-parser">
|
143
|
|
- <taskdef resource="checkstyletask.properties"
|
144
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
145
|
|
- <checkstyle config="checkstyle/duplicate_code_checks.xml" failureProperty="checkstyle.failure"
|
146
|
|
- failOnViolation="false">
|
147
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/parser/" includes="**/*.java"/>
|
148
|
|
- <formatter type="xml" tofile="reports/report-parser-duplicate.xml"/>
|
149
|
|
- </checkstyle>
|
150
|
|
- <xslt in="reports/report-parser-duplicate.xml" out="reports/report-parser-duplicate.html" style="checkstyle/checkstyle.xsl"/>
|
151
|
|
- </target>
|
152
|
|
- <target name="checkstyle-todo-parser">
|
153
|
|
- <taskdef resource="checkstyletask.properties"
|
154
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
155
|
|
- <checkstyle config="checkstyle/todo_checks.xml" failureProperty="checkstyle.failure"
|
156
|
|
- failOnViolation="false">
|
157
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/parser/" includes="**/*.java"/>
|
158
|
|
- <formatter type="xml" tofile="reports/report-parser-todo.xml"/>
|
159
|
|
- </checkstyle>
|
160
|
|
- <xslt in="reports/report-parser-todo.xml" out="reports/report-parser-todo.html" style="checkstyle/checkstyle.xsl"/>
|
|
58
|
+ <xslt in="reports/report-parser.xml" out="reports/report-parser.html" style="checkstyle/checkstyle.xsl"/>
|
161
|
59
|
</target>
|
162
|
60
|
|
163
|
|
-
|
164
|
|
- <target name="checkstyle-dmdirc-logger">
|
|
61
|
+ <target name="checkstyle-logger">
|
165
|
62
|
<taskdef resource="checkstyletask.properties"
|
166
|
63
|
classpath="checkstyle-all-4.3.jar"/>
|
167
|
64
|
<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
168
|
65
|
failOnViolation="false">
|
169
|
66
|
<fileset dir="src/uk/org/ownage/dmdirc/logger/" includes="**/*.java"/>
|
170
|
|
- <formatter type="xml" tofile="reports/report-logger-dmdirc.xml"/>
|
|
67
|
+ <formatter type="xml" tofile="reports/report-logger.xml"/>
|
171
|
68
|
</checkstyle>
|
172
|
|
- <xslt in="reports/report-logger-dmdirc.xml" out="reports/report-logger-dmdirc.html" style="checkstyle/checkstyle.xsl"/>
|
|
69
|
+ <xslt in="reports/report-logger.xml" out="reports/report-logger.html" style="checkstyle/checkstyle.xsl"/>
|
173
|
70
|
</target>
|
174
|
|
- <target name="checkstyle-sun-logger">
|
175
|
|
- <taskdef resource="checkstyletask.properties"
|
176
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
177
|
|
- <checkstyle config="checkstyle/sun_checks.xml" failureProperty="checkstyle.failure"
|
178
|
|
- failOnViolation="false">
|
179
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/logger/" includes="**/*.java"/>
|
180
|
|
- <formatter type="xml" tofile="reports/report-logger-sun.xml"/>
|
181
|
|
- </checkstyle>
|
182
|
|
- <xslt in="reports/report-logger-sun.xml" out="reports/report-logger-sun.html" style="checkstyle/checkstyle.xsl"/>
|
183
|
|
- </target>
|
184
|
|
- <target name="checkstyle-duplicate-logger">
|
185
|
|
- <taskdef resource="checkstyletask.properties"
|
186
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
187
|
|
- <checkstyle config="checkstyle/duplicate_code_checks.xml" failureProperty="checkstyle.failure"
|
188
|
|
- failOnViolation="false">
|
189
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/logger/" includes="**/*.java"/>
|
190
|
|
- <formatter type="xml" tofile="reports/report-logger-duplicate.xml"/>
|
191
|
|
- </checkstyle>
|
192
|
|
- <xslt in="reports/report-logger-duplicate.xml" out="reports/report-logger-duplicate.html" style="checkstyle/checkstyle.xsl"/>
|
193
|
|
- </target>
|
194
|
|
- <target name="checkstyle-todo-logger">
|
195
|
|
- <taskdef resource="checkstyletask.properties"
|
196
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
197
|
|
- <checkstyle config="checkstyle/todo_checks.xml" failureProperty="checkstyle.failure"
|
198
|
|
- failOnViolation="false">
|
199
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/logger/" includes="**/*.java"/>
|
200
|
|
- <formatter type="xml" tofile="reports/report-logger-todo.xml"/>
|
201
|
|
- </checkstyle>
|
202
|
|
- <xslt in="reports/report-logger-todo.xml" out="reports/report-logger-todo.html" style="checkstyle/checkstyle.xsl"/>
|
203
|
|
- </target>
|
204
|
|
-
|
205
|
71
|
|
206
|
|
- <target name="checkstyle-dmdirc-identities">
|
|
72
|
+ <target name="checkstyle-identities">
|
207
|
73
|
<taskdef resource="checkstyletask.properties"
|
208
|
74
|
classpath="checkstyle-all-4.3.jar"/>
|
209
|
75
|
<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
210
|
76
|
failOnViolation="false">
|
211
|
77
|
<fileset dir="src/uk/org/ownage/dmdirc/identities/" includes="**/*.java"/>
|
212
|
|
- <formatter type="xml" tofile="reports/report-identities-dmdirc.xml"/>
|
|
78
|
+ <formatter type="xml" tofile="reports/report-identities.xml"/>
|
213
|
79
|
</checkstyle>
|
214
|
|
- <xslt in="reports/report-identities-dmdirc.xml" out="reports/report-identities-dmdirc.html" style="checkstyle/checkstyle.xsl"/>
|
|
80
|
+ <xslt in="reports/report-identities.xml" out="reports/report-identities.html" style="checkstyle/checkstyle.xsl"/>
|
215
|
81
|
</target>
|
216
|
|
- <target name="checkstyle-sun-identities">
|
217
|
|
- <taskdef resource="checkstyletask.properties"
|
218
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
219
|
|
- <checkstyle config="checkstyle/sun_checks.xml" failureProperty="checkstyle.failure"
|
220
|
|
- failOnViolation="false">
|
221
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/identities/" includes="**/*.java"/>
|
222
|
|
- <formatter type="xml" tofile="reports/report-identities-sun.xml"/>
|
223
|
|
- </checkstyle>
|
224
|
|
- <xslt in="reports/report-identities-sun.xml" out="reports/report-identities-sun.html" style="checkstyle/checkstyle.xsl"/>
|
225
|
|
- </target>
|
226
|
|
- <target name="checkstyle-duplicate-identities">
|
227
|
|
- <taskdef resource="checkstyletask.properties"
|
228
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
229
|
|
- <checkstyle config="checkstyle/duplicate_code_checks.xml" failureProperty="checkstyle.failure"
|
230
|
|
- failOnViolation="false">
|
231
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/identities/" includes="**/*.java"/>
|
232
|
|
- <formatter type="xml" tofile="reports/report-identities-duplicate.xml"/>
|
233
|
|
- </checkstyle>
|
234
|
|
- <xslt in="reports/report-identities-duplicate.xml" out="reports/report-identities-duplicate.html" style="checkstyle/checkstyle.xsl"/>
|
235
|
|
- </target>
|
236
|
|
- <target name="checkstyle-todo-identities">
|
237
|
|
- <taskdef resource="checkstyletask.properties"
|
238
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
239
|
|
- <checkstyle config="checkstyle/todo_checks.xml" failureProperty="checkstyle.failure"
|
240
|
|
- failOnViolation="false">
|
241
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/identities/" includes="**/*.java"/>
|
242
|
|
- <formatter type="xml" tofile="reports/report-identities-todo.xml"/>
|
243
|
|
- </checkstyle>
|
244
|
|
- <xslt in="reports/report-identities-todo.xml" out="reports/report-identities-todo.html" style="checkstyle/checkstyle.xsl"/>
|
245
|
|
- </target>
|
246
|
|
-
|
247
|
82
|
|
248
|
|
- <target name="checkstyle-dmdirc-commandparser">
|
|
83
|
+ <target name="checkstyle-commandparser">
|
249
|
84
|
<taskdef resource="checkstyletask.properties"
|
250
|
85
|
classpath="checkstyle-all-4.3.jar"/>
|
251
|
86
|
<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
252
|
87
|
failOnViolation="false">
|
253
|
88
|
<fileset dir="src/uk/org/ownage/dmdirc/commandparser/" includes="**/*.java"/>
|
254
|
|
- <formatter type="xml" tofile="reports/report-commandparser-dmdirc.xml"/>
|
|
89
|
+ <formatter type="xml" tofile="reports/report-commandparser.xml"/>
|
255
|
90
|
</checkstyle>
|
256
|
|
- <xslt in="reports/report-commandparser-dmdirc.xml" out="reports/report-commandparser-dmdirc.html" style="checkstyle/checkstyle.xsl"/>
|
257
|
|
- </target>
|
258
|
|
- <target name="checkstyle-sun-commandparser">
|
259
|
|
- <taskdef resource="checkstyletask.properties"
|
260
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
261
|
|
- <checkstyle config="checkstyle/sun_checks.xml" failureProperty="checkstyle.failure"
|
262
|
|
- failOnViolation="false">
|
263
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/commandparser/" includes="**/*.java"/>
|
264
|
|
- <formatter type="xml" tofile="reports/report-commandparser-sun.xml"/>
|
265
|
|
- </checkstyle>
|
266
|
|
- <xslt in="reports/report-commandparser-sun.xml" out="reports/report-commandparser-sun.html" style="checkstyle/checkstyle.xsl"/>
|
267
|
|
- </target>
|
268
|
|
- <target name="checkstyle-duplicate-commandparser">
|
269
|
|
- <taskdef resource="checkstyletask.properties"
|
270
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
271
|
|
- <checkstyle config="checkstyle/duplicate_code_checks.xml" failureProperty="checkstyle.failure"
|
272
|
|
- failOnViolation="false">
|
273
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/commandparser/" includes="**/*.java"/>
|
274
|
|
- <formatter type="xml" tofile="reports/report-commandparser-duplicate.xml"/>
|
275
|
|
- </checkstyle>
|
276
|
|
- <xslt in="reports/report-commandparser-duplicate.xml" out="reports/report-commandparser-duplicate.html" style="checkstyle/checkstyle.xsl"/>
|
277
|
|
- </target>
|
278
|
|
- <target name="checkstyle-todo-commandparser">
|
279
|
|
- <taskdef resource="checkstyletask.properties"
|
280
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
281
|
|
- <checkstyle config="checkstyle/todo_checks.xml" failureProperty="checkstyle.failure"
|
282
|
|
- failOnViolation="false">
|
283
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/commandparser/" includes="**/*.java"/>
|
284
|
|
- <formatter type="xml" tofile="reports/report-commandparser-todo.xml"/>
|
285
|
|
- </checkstyle>
|
286
|
|
- <xslt in="reports/report-commandparser-todo.xml" out="reports/report-commandparser-todo.html" style="checkstyle/checkstyle.xsl"/>
|
|
91
|
+ <xslt in="reports/report-commandparser.xml" out="reports/report-commandparser.html" style="checkstyle/checkstyle.xsl"/>
|
287
|
92
|
</target>
|
288
|
93
|
|
289
|
|
-
|
290
|
|
- <target name="checkstyle-dmdirc-core">
|
|
94
|
+ <target name="checkstyle-core">
|
291
|
95
|
<taskdef resource="checkstyletask.properties"
|
292
|
96
|
classpath="checkstyle-all-4.3.jar"/>
|
293
|
97
|
<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
294
|
98
|
failOnViolation="false">
|
295
|
99
|
<fileset dir="src/uk/org/ownage/dmdirc/" includes="*.java"/>
|
296
|
|
- <formatter type="xml" tofile="reports/report-core-dmdirc.xml"/>
|
297
|
|
- </checkstyle>
|
298
|
|
- <xslt in="reports/report-core-dmdirc.xml" out="reports/report-core-dmdirc.html" style="checkstyle/checkstyle.xsl"/>
|
299
|
|
- </target>
|
300
|
|
- <target name="checkstyle-sun-core">
|
301
|
|
- <taskdef resource="checkstyletask.properties"
|
302
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
303
|
|
- <checkstyle config="checkstyle/sun_checks.xml" failureProperty="checkstyle.failure"
|
304
|
|
- failOnViolation="false">
|
305
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/" includes="*.java"/>
|
306
|
|
- <formatter type="xml" tofile="reports/report-core-sun.xml"/>
|
|
100
|
+ <formatter type="xml" tofile="reports/report-core.xml"/>
|
307
|
101
|
</checkstyle>
|
308
|
|
- <xslt in="reports/report-core-sun.xml" out="reports/report-core-sun.html" style="checkstyle/checkstyle.xsl"/>
|
309
|
|
- </target>
|
310
|
|
- <target name="checkstyle-duplicate-core">
|
311
|
|
- <taskdef resource="checkstyletask.properties"
|
312
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
313
|
|
- <checkstyle config="checkstyle/duplicate_code_checks.xml" failureProperty="checkstyle.failure"
|
314
|
|
- failOnViolation="false">
|
315
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/" includes="*.java"/>
|
316
|
|
- <formatter type="xml" tofile="reports/report-core-duplicate.xml"/>
|
317
|
|
- </checkstyle>
|
318
|
|
- <xslt in="reports/report-core-duplicate.xml" out="reports/report-core-duplicate.html" style="checkstyle/checkstyle.xsl"/>
|
319
|
|
- </target>
|
320
|
|
- <target name="checkstyle-todo-core">
|
321
|
|
- <taskdef resource="checkstyletask.properties"
|
322
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
323
|
|
- <checkstyle config="checkstyle/todo_checks.xml" failureProperty="checkstyle.failure"
|
324
|
|
- failOnViolation="false">
|
325
|
|
- <fileset dir="src/uk/org/ownage/dmdirc/" includes="*.java"/>
|
326
|
|
- <formatter type="xml" tofile="reports/report-core-todo.xml"/>
|
327
|
|
- </checkstyle>
|
328
|
|
- <xslt in="reports/report-core-todo.xml" out="reports/report-core-todo.html" style="checkstyle/checkstyle.xsl"/>
|
|
102
|
+ <xslt in="reports/report-core.xml" out="reports/report-core.html" style="checkstyle/checkstyle.xsl"/>
|
329
|
103
|
</target>
|
330
|
104
|
|
331
|
|
-
|
332
|
|
- <target name="checkstyle-dmdirc-all">
|
|
105
|
+ <target name="checkstyle-all">
|
333
|
106
|
<taskdef resource="checkstyletask.properties"
|
334
|
107
|
classpath="checkstyle-all-4.3.jar"/>
|
335
|
108
|
<checkstyle config="checkstyle/dmdirc_checks.xml" failureProperty="checkstyle.failure"
|
336
|
109
|
failOnViolation="false">
|
337
|
110
|
<fileset dir="src/" includes="**/*.java"/>
|
338
|
|
- <formatter type="xml" tofile="reports/report-all-dmdirc.xml"/>
|
|
111
|
+ <formatter type="xml" tofile="reports/report-all.xml"/>
|
339
|
112
|
</checkstyle>
|
340
|
|
- <xslt in="reports/report-all-dmdirc.xml" out="reports/report-all-dmdirc.html" style="checkstyle/checkstyle.xsl"/>
|
|
113
|
+ <xslt in="reports/report-all.xml" out="reports/report-all.html" style="checkstyle/checkstyle.xsl"/>
|
341
|
114
|
</target>
|
342
|
|
- <target name="checkstyle-sun-all">
|
343
|
|
- <taskdef resource="checkstyletask.properties"
|
344
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
345
|
|
- <checkstyle config="checkstyle/sun_checks.xml" failureProperty="checkstyle.failure"
|
346
|
|
- failOnViolation="false">
|
347
|
|
- <fileset dir="src/" includes="**/*.java"/>
|
348
|
|
- <formatter type="xml" tofile="reports/report-all-sun.xml"/>
|
349
|
|
- </checkstyle>
|
350
|
|
- <xslt in="reports/report-all-sun.xml" out="reports/report-all-sun.html" style="checkstyle/checkstyle.xsl"/>
|
351
|
|
- </target>
|
352
|
|
- <target name="checkstyle-duplicate-all">
|
353
|
|
- <taskdef resource="checkstyletask.properties"
|
354
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
355
|
|
- <checkstyle config="checkstyle/duplicate_code_checks.xml" failureProperty="checkstyle.failure"
|
356
|
|
- failOnViolation="false">
|
357
|
|
- <fileset dir="src/" includes="**/*.java"/>
|
358
|
|
- <formatter type="xml" tofile="reports/report-all-duplicate.xml"/>
|
359
|
|
- </checkstyle>
|
360
|
|
- <xslt in="reports/report-all-duplicate.xml" out="reports/report-all-duplicate.html" style="checkstyle/checkstyle.xsl"/>
|
361
|
|
- </target>
|
362
|
|
- <target name="checkstyle-todo-all">
|
363
|
|
- <taskdef resource="checkstyletask.properties"
|
364
|
|
- classpath="checkstyle-all-4.3.jar"/>
|
365
|
|
- <checkstyle config="checkstyle/todo_checks.xml" failureProperty="checkstyle.failure"
|
366
|
|
- failOnViolation="false">
|
367
|
|
- <fileset dir="src/" includes="**/*.java"/>
|
368
|
|
- <formatter type="xml" tofile="reports/report-all-todo.xml"/>
|
369
|
|
- </checkstyle>
|
370
|
|
- <xslt in="reports/report-all-todo.xml" out="reports/report-all-todo.html" style="checkstyle/checkstyle.xsl"/>
|
371
|
|
- </target>
|
372
|
|
-
|
373
|
115
|
|
374
|
116
|
<target name="remove-xml-files">
|
375
|
117
|
<delete>
|