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