~vcs-imports/xena/trunk

« back to all changes in this revision

Viewing changes to ext/src/javahelp/JSearchClient_nbproject/nbproject/build-impl.xml

  • Committer: matthewoliver
  • Date: 2009-12-10 03:18:07 UTC
  • Revision ID: vcs-imports@canonical.com-20091210031807-l086qguzdlljtkl9
Merged Xena Testing into Xena Stable for the Xena 5 release.

Show diffs side-by-side

added added

removed removed

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