|
@@ -1,668 +0,0 @@
|
1
|
|
-<?xml version="1.0" encoding="UTF-8"?>
|
2
|
|
-<!--
|
3
|
|
-*** GENERATED FROM project.xml - DO NOT EDIT ***
|
4
|
|
-*** EDIT ../build.xml INSTEAD ***
|
5
|
|
-
|
6
|
|
-For the purpose of easier reading the script
|
7
|
|
-is divided into following sections:
|
8
|
|
-
|
9
|
|
- - initialization
|
10
|
|
- - compilation
|
11
|
|
- - jar
|
12
|
|
- - execution
|
13
|
|
- - debugging
|
14
|
|
- - javadoc
|
15
|
|
- - junit compilation
|
16
|
|
- - junit execution
|
17
|
|
- - junit debugging
|
18
|
|
- - applet
|
19
|
|
- - cleanup
|
20
|
|
-
|
21
|
|
- -->
|
22
|
|
-<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="DMDirc-impl">
|
23
|
|
- <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
|
24
|
|
- <!--
|
25
|
|
- ======================
|
26
|
|
- INITIALIZATION SECTION
|
27
|
|
- ======================
|
28
|
|
- -->
|
29
|
|
- <path id="all.libs">
|
30
|
|
- <fileset dir="lib" includes="*.jar"/>
|
31
|
|
- </path>
|
32
|
|
-
|
33
|
|
- <property name="test_profile_dir" value="./test_profile"/>
|
34
|
|
- <target name="-pre-init">
|
35
|
|
- <!-- Empty placeholder for easier customization. -->
|
36
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
37
|
|
- </target>
|
38
|
|
-
|
39
|
|
- <target depends="-pre-init" name="-init-private">
|
40
|
|
- <property file="nbproject/private/config.properties"/>
|
41
|
|
- <property file="nbproject/private/configs/${config}.properties"/>
|
42
|
|
- <property file="nbproject/private/private.properties"/>
|
43
|
|
- </target>
|
44
|
|
- <target depends="-pre-init,-init-private" name="-init-user">
|
45
|
|
- <property file="${user.properties.file}"/>
|
46
|
|
- <!-- The two properties below are usually overridden -->
|
47
|
|
- <!-- by the active platform. Just a fallback. -->
|
48
|
|
- <property name="default.javac.source" value="1.4"/>
|
49
|
|
- <property name="default.javac.target" value="1.4"/>
|
50
|
|
- </target>
|
51
|
|
- <target depends="-pre-init,-init-private,-init-user" name="-init-project">
|
52
|
|
- <property file="nbproject/configs/${config}.properties"/>
|
53
|
|
- <property file="nbproject/project.properties"/>
|
54
|
|
- </target>
|
55
|
|
- <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
|
56
|
|
- <available file="${manifest.file}" property="manifest.available"/>
|
57
|
|
- <condition property="manifest.available+main.class">
|
58
|
|
- <and>
|
59
|
|
- <isset property="manifest.available"/>
|
60
|
|
- <isset property="main.class"/>
|
61
|
|
- <not>
|
62
|
|
- <equals arg1="${main.class}" arg2="" trim="true"/>
|
63
|
|
- </not>
|
64
|
|
- </and>
|
65
|
|
- </condition>
|
66
|
|
- <condition property="have.tests">
|
67
|
|
- <and>
|
68
|
|
- <available file="${main.test.dir}"/>
|
69
|
|
- <available file="${parser.test.dir}"/>
|
70
|
|
- </and>
|
71
|
|
- </condition>
|
72
|
|
- <condition property="have.sources">
|
73
|
|
- <and>
|
74
|
|
- <available file="${main.src.dir}"/>
|
75
|
|
- <available file="${parser.src.dir}"/>
|
76
|
|
- </and>
|
77
|
|
- </condition>
|
78
|
|
- <condition property="netbeans.home+have.tests">
|
79
|
|
- <and>
|
80
|
|
- <isset property="netbeans.home"/>
|
81
|
|
- <isset property="have.tests"/>
|
82
|
|
- </and>
|
83
|
|
- </condition>
|
84
|
|
- <condition property="no.javadoc.preview">
|
85
|
|
- <and>
|
86
|
|
- <isset property="javadoc.preview"/>
|
87
|
|
- <isfalse value="${javadoc.preview}"/>
|
88
|
|
- </and>
|
89
|
|
- </condition>
|
90
|
|
- <property name="run.jvmargs" value=""/>
|
91
|
|
- <property name="javac.compilerargs" value=""/>
|
92
|
|
- <property name="work.dir" value="${basedir}"/>
|
93
|
|
- <condition property="no.deps">
|
94
|
|
- <and>
|
95
|
|
- <istrue value="${no.dependencies}"/>
|
96
|
|
- </and>
|
97
|
|
- </condition>
|
98
|
|
- <property name="javac.debug" value="true"/>
|
99
|
|
- <property name="javadoc.preview" value="true"/>
|
100
|
|
- <property name="application.args" value=""/>
|
101
|
|
- <property name="source.encoding" value="${file.encoding}"/>
|
102
|
|
- <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
|
103
|
|
- <and>
|
104
|
|
- <isset property="javadoc.encoding"/>
|
105
|
|
- <not>
|
106
|
|
- <equals arg1="${javadoc.encoding}" arg2=""/>
|
107
|
|
- </not>
|
108
|
|
- </and>
|
109
|
|
- </condition>
|
110
|
|
- <property name="javadoc.encoding.used" value="${source.encoding}"/>
|
111
|
|
- <property name="includes" value="**"/>
|
112
|
|
- <property name="excludes" value=""/>
|
113
|
|
- <property name="do.depend" value="true"/>
|
114
|
|
- <condition property="do.depend.true">
|
115
|
|
- <istrue value="${do.depend}"/>
|
116
|
|
- </condition>
|
117
|
|
- <fail unless="have.sources">Not all sources are available, have you run `git submodule init` and `git submodule update`</fail>
|
118
|
|
- </target>
|
119
|
|
- <target name="-post-init">
|
120
|
|
- <!-- Empty placeholder for easier customization. -->
|
121
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
122
|
|
- </target>
|
123
|
|
- <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
|
124
|
|
- <fail unless="main.src.dir">Must set main.src.dir</fail>
|
125
|
|
- <fail unless="main.test.dir">Must set main.test.dir</fail>
|
126
|
|
- <fail unless="parser.src.dir">Must set parser.src.dir</fail>
|
127
|
|
- <fail unless="parser.test.dir">Must set parser.test.dir</fail>
|
128
|
|
- <fail unless="build.dir">Must set build.dir</fail>
|
129
|
|
- <fail unless="dist.dir">Must set dist.dir</fail>
|
130
|
|
- <fail unless="build.classes.dir">Must set build.classes.dir</fail>
|
131
|
|
- <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
|
132
|
|
- <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
|
133
|
|
- <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
|
134
|
|
- <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
|
135
|
|
- <fail unless="dist.jar">Must set dist.jar</fail>
|
136
|
|
- </target>
|
137
|
|
- <target name="-init-macrodef-property">
|
138
|
|
- <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
|
139
|
|
- <attribute name="name"/>
|
140
|
|
- <attribute name="value"/>
|
141
|
|
- <sequential>
|
142
|
|
- <property name="@{name}" value="${@{value}}"/>
|
143
|
|
- </sequential>
|
144
|
|
- </macrodef>
|
145
|
|
- </target>
|
146
|
|
- <target name="-init-macrodef-javac">
|
147
|
|
- <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
|
148
|
|
- <attribute default="${parser.src.dir}:${main.src.dir}" name="srcdir"/>
|
149
|
|
- <attribute default="${build.classes.dir}" name="destdir"/>
|
150
|
|
- <attribute default="${javac.classpath}" name="classpath"/>
|
151
|
|
- <attribute default="${includes}" name="includes"/>
|
152
|
|
- <attribute default="${excludes}" name="excludes"/>
|
153
|
|
- <attribute default="${javac.debug}" name="debug"/>
|
154
|
|
- <attribute default="" name="javac.compilerargs.jaxws"/>
|
155
|
|
- <attribute default="" name="sourcepath"/>
|
156
|
|
- <element name="customize" optional="true"/>
|
157
|
|
- <sequential>
|
158
|
|
- <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
|
159
|
|
- <classpath refid="all.libs"/>
|
160
|
|
- <classpath>
|
161
|
|
- <path path="@{classpath}"/>
|
162
|
|
- </classpath>
|
163
|
|
- <compilerarg line="${javac.compilerargs} @{javac.compilerargs.jaxws}"/>
|
164
|
|
- <customize/>
|
165
|
|
- </javac>
|
166
|
|
- </sequential>
|
167
|
|
- </macrodef>
|
168
|
|
- <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
|
169
|
|
- <attribute default="${parser.src.dir}:${main.src.dir}" name="srcdir"/>
|
170
|
|
- <attribute default="${build.classes.dir}" name="destdir"/>
|
171
|
|
- <attribute default="${javac.classpath}" name="classpath"/>
|
172
|
|
- <sequential>
|
173
|
|
- <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
|
174
|
|
- <classpath>
|
175
|
|
- <path path="@{classpath}"/>
|
176
|
|
- </classpath>
|
177
|
|
- <classpath refid="all.libs"/>
|
178
|
|
- </depend>
|
179
|
|
- </sequential>
|
180
|
|
- </macrodef>
|
181
|
|
- <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
|
182
|
|
- <attribute default="${build.classes.dir}" name="destdir"/>
|
183
|
|
- <sequential>
|
184
|
|
- <fail unless="javac.includes">Must set javac.includes</fail>
|
185
|
|
- <pathconvert pathsep="," property="javac.includes.binary">
|
186
|
|
- <path>
|
187
|
|
- <filelist dir="@{destdir}" files="${javac.includes}"/>
|
188
|
|
- </path>
|
189
|
|
- <globmapper from="*.java" to="*.class"/>
|
190
|
|
- </pathconvert>
|
191
|
|
- <delete>
|
192
|
|
- <files includes="${javac.includes.binary}"/>
|
193
|
|
- </delete>
|
194
|
|
- </sequential>
|
195
|
|
- </macrodef>
|
196
|
|
- </target>
|
197
|
|
-
|
198
|
|
- <target name="-init-macrodef-junit">
|
199
|
|
- <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
|
200
|
|
- <attribute default="${includes}" name="includes"/>
|
201
|
|
- <attribute default="${excludes}" name="excludes"/>
|
202
|
|
- <attribute default="**" name="testincludes"/>
|
203
|
|
- <sequential>
|
204
|
|
- <delete dir="${test_profile_dir}"/>
|
205
|
|
- <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="yes" forkmode="once" showoutput="true" timeout="120000">
|
206
|
|
- <env key="DMDIRC_HOME" value="${test_profile_dir}"/>
|
207
|
|
- <classpath refid="all.libs"/>
|
208
|
|
- <batchtest todir="${build.test.results.dir}">
|
209
|
|
- <fileset dir="${main.test.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
|
210
|
|
- <filename name="@{testincludes}"/>
|
211
|
|
- </fileset>
|
212
|
|
- <fileset dir="${parser.test.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
|
213
|
|
- <filename name="@{testincludes}"/>
|
214
|
|
- </fileset>
|
215
|
|
- </batchtest>
|
216
|
|
- <classpath>
|
217
|
|
- <path path="${run.test.classpath}"/>
|
218
|
|
- </classpath>
|
219
|
|
- <syspropertyset>
|
220
|
|
- <propertyref prefix="test-sys-prop."/>
|
221
|
|
- <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
222
|
|
- </syspropertyset>
|
223
|
|
- <formatter type="brief" usefile="false"/>
|
224
|
|
- <formatter type="xml"/>
|
225
|
|
- <jvmarg line="${run.jvmargs}"/>
|
226
|
|
- </junit>
|
227
|
|
- <delete dir="${test_profile_dir}"/>
|
228
|
|
- </sequential>
|
229
|
|
- </macrodef>
|
230
|
|
- </target>
|
231
|
|
-
|
232
|
|
- <target name="-init-macrodef-nbjpda">
|
233
|
|
- <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
|
234
|
|
- <attribute default="${main.class}" name="name"/>
|
235
|
|
- <attribute default="${debug.classpath}" name="classpath"/>
|
236
|
|
- <attribute default="" name="stopclassname"/>
|
237
|
|
- <sequential>
|
238
|
|
- <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
|
239
|
|
- <classpath>
|
240
|
|
- <path path="@{classpath}"/>
|
241
|
|
- <path refid="all.libs"/>
|
242
|
|
- </classpath>
|
243
|
|
- </nbjpdastart>
|
244
|
|
- </sequential>
|
245
|
|
- </macrodef>
|
246
|
|
- <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
|
247
|
|
- <attribute default="${build.classes.dir}" name="dir"/>
|
248
|
|
- <sequential>
|
249
|
|
- <nbjpdareload>
|
250
|
|
- <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
|
251
|
|
- </nbjpdareload>
|
252
|
|
- </sequential>
|
253
|
|
- </macrodef>
|
254
|
|
- </target>
|
255
|
|
- <target name="-init-debug-args">
|
256
|
|
- <property name="version-output" value="java version "${ant.java.version}"/>
|
257
|
|
- <condition property="have-jdk-older-than-1.4">
|
258
|
|
- <or>
|
259
|
|
- <contains string="${version-output}" substring="java version "1.0"/>
|
260
|
|
- <contains string="${version-output}" substring="java version "1.1"/>
|
261
|
|
- <contains string="${version-output}" substring="java version "1.2"/>
|
262
|
|
- <contains string="${version-output}" substring="java version "1.3"/>
|
263
|
|
- </or>
|
264
|
|
- </condition>
|
265
|
|
- <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
|
266
|
|
- <istrue value="${have-jdk-older-than-1.4}"/>
|
267
|
|
- </condition>
|
268
|
|
- </target>
|
269
|
|
- <target depends="-init-debug-args" name="-init-macrodef-debug">
|
270
|
|
- <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
271
|
|
- <attribute default="${main.class}" name="classname"/>
|
272
|
|
- <attribute default="${debug.classpath}" name="classpath"/>
|
273
|
|
- <element name="customize" optional="true"/>
|
274
|
|
- <sequential>
|
275
|
|
- <java classname="@{classname}" dir="${work.dir}" fork="true">
|
276
|
|
- <classpath refid="all.libs"/>
|
277
|
|
- <jvmarg line="${debug-args-line}"/>
|
278
|
|
- <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
|
279
|
|
- <jvmarg line="${run.jvmargs}"/>
|
280
|
|
- <classpath>
|
281
|
|
- <path path="@{classpath}"/>
|
282
|
|
- </classpath>
|
283
|
|
- <syspropertyset>
|
284
|
|
- <propertyref prefix="run-sys-prop."/>
|
285
|
|
- <mapper from="run-sys-prop.*" to="*" type="glob"/>
|
286
|
|
- </syspropertyset>
|
287
|
|
- <customize/>
|
288
|
|
- </java>
|
289
|
|
- </sequential>
|
290
|
|
- </macrodef>
|
291
|
|
- </target>
|
292
|
|
- <target name="-init-macrodef-java">
|
293
|
|
- <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
|
294
|
|
- <attribute default="${main.class}" name="classname"/>
|
295
|
|
- <element name="customize" optional="true"/>
|
296
|
|
- <sequential>
|
297
|
|
- <java classname="@{classname}" dir="${work.dir}" fork="true">
|
298
|
|
- <jvmarg line="${run.jvmargs}"/>
|
299
|
|
- <classpath>
|
300
|
|
- <path path="${run.classpath}"/>
|
301
|
|
- </classpath>
|
302
|
|
- <syspropertyset>
|
303
|
|
- <propertyref prefix="run-sys-prop."/>
|
304
|
|
- <mapper from="run-sys-prop.*" to="*" type="glob"/>
|
305
|
|
- </syspropertyset>
|
306
|
|
- <customize/>
|
307
|
|
- </java>
|
308
|
|
- </sequential>
|
309
|
|
- </macrodef>
|
310
|
|
- </target>
|
311
|
|
- <target name="-init-presetdef-jar">
|
312
|
|
- <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
313
|
|
- <jar compress="${jar.compress}" jarfile="${dist.jar}">
|
314
|
|
- <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.jar.excludes}"/>
|
315
|
|
- </jar>
|
316
|
|
- </presetdef>
|
317
|
|
- </target>
|
318
|
|
- <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
|
319
|
|
- <!--
|
320
|
|
- ===================
|
321
|
|
- COMPILATION SECTION
|
322
|
|
- ===================
|
323
|
|
- -->
|
324
|
|
- <target depends="init" name="deps-jar" unless="no.deps"/>
|
325
|
|
- <target depends="init,deps-jar" name="-pre-pre-compile">
|
326
|
|
- <mkdir dir="${build.classes.dir}"/>
|
327
|
|
- </target>
|
328
|
|
- <target name="-pre-compile">
|
329
|
|
- <!-- Empty placeholder for easier customization. -->
|
330
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
331
|
|
- </target>
|
332
|
|
- <target if="do.depend.true" name="-compile-depend">
|
333
|
|
- <j2seproject3:depend/>
|
334
|
|
- </target>
|
335
|
|
- <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
|
336
|
|
- <j2seproject3:javac/>
|
337
|
|
- <copy todir="${build.classes.dir}">
|
338
|
|
- <fileset dir="${main.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
339
|
|
- <fileset dir="${parser.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
340
|
|
- </copy>
|
341
|
|
- </target>
|
342
|
|
- <target name="-post-compile">
|
343
|
|
- <!-- Empty placeholder for easier customization. -->
|
344
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
345
|
|
- </target>
|
346
|
|
- <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
|
347
|
|
- <target name="-pre-compile-single">
|
348
|
|
- <!-- Empty placeholder for easier customization. -->
|
349
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
350
|
|
- </target>
|
351
|
|
- <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
|
352
|
|
- <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
353
|
|
- <j2seproject3:force-recompile/>
|
354
|
|
- <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${main.src.dir}:${parser.src.dir}"/>
|
355
|
|
- </target>
|
356
|
|
- <target name="-post-compile-single">
|
357
|
|
- <!-- Empty placeholder for easier customization. -->
|
358
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
359
|
|
- </target>
|
360
|
|
- <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
|
361
|
|
- <!--
|
362
|
|
- ====================
|
363
|
|
- JAR BUILDING SECTION
|
364
|
|
- ====================
|
365
|
|
- -->
|
366
|
|
- <target depends="init" name="-pre-pre-jar">
|
367
|
|
- <dirname file="${dist.jar}" property="dist.jar.dir"/>
|
368
|
|
- <mkdir dir="${dist.jar.dir}"/>
|
369
|
|
- </target>
|
370
|
|
- <target name="-pre-jar">
|
371
|
|
- <!-- Empty placeholder for easier customization. -->
|
372
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
373
|
|
- </target>
|
374
|
|
- <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
|
375
|
|
- <j2seproject1:jar/>
|
376
|
|
- </target>
|
377
|
|
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
|
378
|
|
- <j2seproject1:jar manifest="${manifest.file}"/>
|
379
|
|
- </target>
|
380
|
|
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
|
381
|
|
- <j2seproject1:jar manifest="${manifest.file}">
|
382
|
|
- <j2seproject1:manifest>
|
383
|
|
- <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
|
384
|
|
- </j2seproject1:manifest>
|
385
|
|
- </j2seproject1:jar>
|
386
|
|
- </target>
|
387
|
|
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
|
388
|
|
- <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
389
|
|
- <pathconvert property="run.classpath.without.build.classes.dir">
|
390
|
|
- <path path="${run.classpath}"/>
|
391
|
|
- <map from="${build.classes.dir.resolved}" to=""/>
|
392
|
|
- </pathconvert>
|
393
|
|
- <pathconvert pathsep=" " property="jar.classpath">
|
394
|
|
- <path path="${run.classpath.without.build.classes.dir}"/>
|
395
|
|
- <chainedmapper>
|
396
|
|
- <flattenmapper/>
|
397
|
|
- <globmapper from="*" to="lib/*"/>
|
398
|
|
- </chainedmapper>
|
399
|
|
- </pathconvert>
|
400
|
|
- <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
401
|
|
- <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
402
|
|
- <fileset dir="${build.classes.dir}" excludes="${dist.jar.excludes}" />
|
403
|
|
- <manifest>
|
404
|
|
- <attribute name="Main-Class" value="${main.class}"/>
|
405
|
|
- <attribute name="Class-Path" value="${jar.classpath}"/>
|
406
|
|
- </manifest>
|
407
|
|
- </copylibs>
|
408
|
|
- </target>
|
409
|
|
- <target name="-post-jar">
|
410
|
|
- <!-- Empty placeholder for easier customization. -->
|
411
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
412
|
|
- </target>
|
413
|
|
- <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
|
414
|
|
- <!--
|
415
|
|
- =================
|
416
|
|
- EXECUTION SECTION
|
417
|
|
- =================
|
418
|
|
- -->
|
419
|
|
- <target depends="init,compile" description="Run a main class." name="run">
|
420
|
|
- <j2seproject1:java>
|
421
|
|
- <customize>
|
422
|
|
- <arg line="${application.args}"/>
|
423
|
|
- </customize>
|
424
|
|
- </j2seproject1:java>
|
425
|
|
- </target>
|
426
|
|
- <target name="-do-not-recompile">
|
427
|
|
- <property name="javac.includes.binary" value=""/>
|
428
|
|
- </target>
|
429
|
|
- <target depends="init,-do-not-recompile,compile-single" name="run-single">
|
430
|
|
- <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
431
|
|
- <j2seproject1:java classname="${run.class}"/>
|
432
|
|
- </target>
|
433
|
|
- <!--
|
434
|
|
- =================
|
435
|
|
- DEBUGGING SECTION
|
436
|
|
- =================
|
437
|
|
- -->
|
438
|
|
- <target depends="init" if="netbeans.home" name="-debug-start-debugger">
|
439
|
|
- <j2seproject1:nbjpdastart name="${debug.class}"/>
|
440
|
|
- </target>
|
441
|
|
- <target depends="init,compile" name="-debug-start-debuggee">
|
442
|
|
- <j2seproject3:debug>
|
443
|
|
- <customize>
|
444
|
|
- <arg line="${application.args}"/>
|
445
|
|
- </customize>
|
446
|
|
- </j2seproject3:debug>
|
447
|
|
- </target>
|
448
|
|
- <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
|
449
|
|
- <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
|
450
|
|
- <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
|
451
|
|
- </target>
|
452
|
|
- <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
|
453
|
|
- <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
|
454
|
|
- <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
455
|
|
- <j2seproject3:debug classname="${debug.class}"/>
|
456
|
|
- </target>
|
457
|
|
- <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
|
458
|
|
- <target depends="init" name="-pre-debug-fix">
|
459
|
|
- <fail unless="fix.includes">Must set fix.includes</fail>
|
460
|
|
- <property name="javac.includes" value="${fix.includes}.java"/>
|
461
|
|
- </target>
|
462
|
|
- <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
|
463
|
|
- <j2seproject1:nbjpdareload/>
|
464
|
|
- </target>
|
465
|
|
- <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
|
466
|
|
- <!--
|
467
|
|
- ===============
|
468
|
|
- JAVADOC SECTION
|
469
|
|
- ===============
|
470
|
|
- -->
|
471
|
|
- <target depends="init" name="-javadoc-build">
|
472
|
|
- <mkdir dir="${dist.javadoc.dir}"/>
|
473
|
|
- <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="${javadoc.encoding.used}" destdir="${dist.javadoc.dir}" docencoding="${javadoc.encoding.used}" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
|
474
|
|
- <classpath>
|
475
|
|
- <path path="${javac.classpath}"/>
|
476
|
|
- </classpath>
|
477
|
|
- <classpath refid="all.libs"/>
|
478
|
|
- <fileset dir="${main.src.dir}" excludes="${excludes}" includes="${includes}">
|
479
|
|
- <filename name="**/*.java"/>
|
480
|
|
- </fileset>
|
481
|
|
- <fileset dir="${parser.src.dir}" excludes="${excludes}" includes="${includes}">
|
482
|
|
- <filename name="**/*.java"/>
|
483
|
|
- </fileset>
|
484
|
|
- </javadoc>
|
485
|
|
- </target>
|
486
|
|
-
|
487
|
|
- <target name="move-javadoc-check">
|
488
|
|
- <condition property="move.javadoc">
|
489
|
|
- <isset property="javadoc.moveto"/>
|
490
|
|
- </condition>
|
491
|
|
- </target>
|
492
|
|
- <target name="move-javadoc" depends="move-javadoc-check" if="move.javadoc">
|
493
|
|
- <delete dir="${javadoc.moveto}"/>
|
494
|
|
- <move file="${dist.javadoc.dir}" tofile="${javadoc.moveto}"/>
|
495
|
|
- </target>
|
496
|
|
-
|
497
|
|
- <target depends="init,-doccheck-check" name="-doccheck-build" if="doccheck.run">
|
498
|
|
- <mkdir dir="${doccheck.dir}"/>
|
499
|
|
- <javadoc additionalparam="-doclet com.sun.tools.doclets.doccheck.DocCheck -docletpath ${doccheck.path} -skipPkg net.miginfocom.*" author="${javadoc.author}" destdir="${doccheck.dir}" failonerror="true" private="${javadoc.private}" source="${javac.source}" sourcepath="${main.src.dir}:${parser.src.dir}" useexternalfile="true" version="${javadoc.version}">
|
500
|
|
- <classpath>
|
501
|
|
- <path path="${javac.classpath}"/>
|
502
|
|
- </classpath>
|
503
|
|
- <classpath refid="all.libs"/>
|
504
|
|
- </javadoc>
|
505
|
|
- </target>
|
506
|
|
-
|
507
|
|
- <target name="-doccheck-check">
|
508
|
|
- <condition property="doccheck.run">
|
509
|
|
- <and>
|
510
|
|
- <isset property="doccheck.path"/>
|
511
|
|
- <isset property="doccheck.dir"/>
|
512
|
|
- <available file="${doccheck.path}"/>
|
513
|
|
- </and>
|
514
|
|
- </condition>
|
515
|
|
- </target>
|
516
|
|
-
|
517
|
|
- <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
|
518
|
|
- <nbbrowse file="${dist.javadoc.dir}/index.html"/>
|
519
|
|
- </target>
|
520
|
|
- <target depends="init,-javadoc-build,-javadoc-browse,move-javadoc,-doccheck-build" description="Build Javadoc." name="javadoc"/>
|
521
|
|
- <target depends="-doccheck-build" description="Build Javadoc error report (doccheck)." name="doccheck"/>
|
522
|
|
- <!--
|
523
|
|
- =========================
|
524
|
|
- JUNIT COMPILATION SECTION
|
525
|
|
- =========================
|
526
|
|
- -->
|
527
|
|
- <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
|
528
|
|
- <mkdir dir="${build.test.classes.dir}"/>
|
529
|
|
- </target>
|
530
|
|
- <target name="-pre-compile-test">
|
531
|
|
- <!-- Empty placeholder for easier customization. -->
|
532
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
533
|
|
- </target>
|
534
|
|
- <target if="do.depend.true" name="-compile-test-depend">
|
535
|
|
- <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${main.test.dir}:${parser.test.dir}"/>
|
536
|
|
- </target>
|
537
|
|
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
|
538
|
|
- <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${main.test.dir}:${parser.test.dir}"/>
|
539
|
|
- <copy todir="${build.test.classes.dir}">
|
540
|
|
- <fileset dir="${main.test.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
541
|
|
- <fileset dir="${parser.test.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
542
|
|
- </copy>
|
543
|
|
- </target>
|
544
|
|
- <target name="-post-compile-test">
|
545
|
|
- <!-- Empty placeholder for easier customization. -->
|
546
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
547
|
|
- </target>
|
548
|
|
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
|
549
|
|
- <target name="-pre-compile-test-single">
|
550
|
|
- <!-- Empty placeholder for easier customization. -->
|
551
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
552
|
|
- </target>
|
553
|
|
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
|
554
|
|
- <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
555
|
|
- <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
|
556
|
|
- <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${main.test.dir}:${parser.test.dir}" srcdir="${main.test.dir}:${parser.test.dir}"/>
|
557
|
|
- <copy todir="${build.test.classes.dir}">
|
558
|
|
- <fileset dir="${main.test.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
559
|
|
- <fileset dir="${parser.test.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
560
|
|
- </copy>
|
561
|
|
- </target>
|
562
|
|
- <target name="-post-compile-test-single">
|
563
|
|
- <!-- Empty placeholder for easier customization. -->
|
564
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
565
|
|
- </target>
|
566
|
|
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
|
567
|
|
- <!--
|
568
|
|
- =======================
|
569
|
|
- JUNIT EXECUTION SECTION
|
570
|
|
- =======================
|
571
|
|
- -->
|
572
|
|
- <target depends="init" if="have.tests" name="-pre-test-run">
|
573
|
|
- <mkdir dir="${build.test.results.dir}"/>
|
574
|
|
- </target>
|
575
|
|
- <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
|
576
|
|
- <j2seproject3:junit testincludes="**/*Test.java"/>
|
577
|
|
- </target>
|
578
|
|
- <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
|
579
|
|
- <fail if="tests.failed">Some tests failed; see details above.</fail>
|
580
|
|
- </target>
|
581
|
|
- <target depends="init" if="have.tests" name="test-report"/>
|
582
|
|
- <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
|
583
|
|
- <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
|
584
|
|
- <target depends="init" if="have.tests" name="-pre-test-run-single">
|
585
|
|
- <mkdir dir="${build.test.results.dir}"/>
|
586
|
|
- </target>
|
587
|
|
- <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
|
588
|
|
- <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
|
589
|
|
- <j2seproject3:junit excludes="" includes="${test.includes}"/>
|
590
|
|
- </target>
|
591
|
|
- <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
|
592
|
|
- <fail if="tests.failed">Some tests failed; see details above.</fail>
|
593
|
|
- </target>
|
594
|
|
- <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
|
595
|
|
- <!--
|
596
|
|
- =======================
|
597
|
|
- JUNIT DEBUGGING SECTION
|
598
|
|
- =======================
|
599
|
|
- -->
|
600
|
|
- <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
|
601
|
|
- <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
|
602
|
|
- <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
|
603
|
|
- <delete file="${test.report.file}"/>
|
604
|
|
- <mkdir dir="${build.test.results.dir}"/>
|
605
|
|
- <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
|
606
|
|
- <customize>
|
607
|
|
- <syspropertyset>
|
608
|
|
- <propertyref prefix="test-sys-prop."/>
|
609
|
|
- <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
610
|
|
- </syspropertyset>
|
611
|
|
- <arg value="${test.class}"/>
|
612
|
|
- <arg value="showoutput=true"/>
|
613
|
|
- <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
|
614
|
|
- <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
|
615
|
|
- </customize>
|
616
|
|
- </j2seproject3:debug>
|
617
|
|
- </target>
|
618
|
|
- <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
|
619
|
|
- <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
|
620
|
|
- </target>
|
621
|
|
- <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
|
622
|
|
- <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
|
623
|
|
- <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
|
624
|
|
- </target>
|
625
|
|
- <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
|
626
|
|
- <!--
|
627
|
|
- =========================
|
628
|
|
- APPLET EXECUTION SECTION
|
629
|
|
- =========================
|
630
|
|
- -->
|
631
|
|
- <target depends="init,compile-single" name="run-applet">
|
632
|
|
- <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
633
|
|
- <j2seproject1:java classname="sun.applet.AppletViewer">
|
634
|
|
- <customize>
|
635
|
|
- <arg value="${applet.url}"/>
|
636
|
|
- </customize>
|
637
|
|
- </j2seproject1:java>
|
638
|
|
- </target>
|
639
|
|
- <!--
|
640
|
|
- =========================
|
641
|
|
- APPLET DEBUGGING SECTION
|
642
|
|
- =========================
|
643
|
|
- -->
|
644
|
|
- <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
|
645
|
|
- <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
646
|
|
- <j2seproject3:debug classname="sun.applet.AppletViewer">
|
647
|
|
- <customize>
|
648
|
|
- <arg value="${applet.url}"/>
|
649
|
|
- </customize>
|
650
|
|
- </j2seproject3:debug>
|
651
|
|
- </target>
|
652
|
|
- <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
|
653
|
|
- <!--
|
654
|
|
- ===============
|
655
|
|
- CLEANUP SECTION
|
656
|
|
- ===============
|
657
|
|
- -->
|
658
|
|
- <target name="deps-clean" unless="no.deps"/>
|
659
|
|
- <target name="-do-clean">
|
660
|
|
- <delete dir="build"/>
|
661
|
|
- <delete dir="dist"/>
|
662
|
|
- </target>
|
663
|
|
- <target name="-post-clean">
|
664
|
|
- <!-- Empty placeholder for easier customization. -->
|
665
|
|
- <!-- You can override this target in the ../build.xml file. -->
|
666
|
|
- </target>
|
667
|
|
- <target depends="deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
|
668
|
|
-</project>
|