1
<?xml version="1.0" encoding="UTF-8"?>
3
*** GENERATED FROM project.xml - DO NOT EDIT ***
4
*** EDIT ../build.xml INSTEAD ***
6
For the purpose of easier reading the script
7
is divided into following sections:
22
<project name="GE_Java_Utils-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."/>
25
======================
26
INITIALIZATION SECTION
27
======================
29
<target name="-pre-init">
30
<!-- Empty placeholder for easier customization. -->
31
<!-- You can override this target in the ../build.xml file. -->
33
<target name="-init-private" depends="-pre-init">
34
<property file="nbproject/private/private.properties"/>
36
<target name="-init-user" depends="-pre-init,-init-private">
37
<property file="${user.properties.file}"/>
38
<!-- The two properties below are usually overridden -->
39
<!-- by the active platform. Just a fallback. -->
40
<property name="default.javac.source" value="1.4"/>
41
<property name="default.javac.target" value="1.4"/>
43
<target name="-init-project" depends="-pre-init,-init-private,-init-user">
44
<property file="nbproject/project.properties"/>
46
<target name="-do-init" depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property">
47
<available file="${manifest.file}" property="manifest.available"/>
48
<condition property="manifest.available+main.class">
50
<isset property="manifest.available"/>
51
<isset property="main.class"/>
53
<equals arg1="${main.class}" arg2="" trim="true"/>
57
<condition property="manifest.available+main.class+mkdist.available">
59
<istrue value="${manifest.available+main.class}"/>
60
<isset property="libs.CopyLibs.classpath"/>
63
<condition property="have.tests">
65
<available file="${test.src.dir}"/>
68
<condition property="have.sources">
70
<available file="${src.dir}"/>
71
<isset property="isJavaBuildHost"/>
74
<condition property="netbeans.home+have.tests">
76
<isset property="netbeans.home"/>
77
<isset property="have.tests"/>
80
<condition property="no.javadoc.preview">
81
<isfalse value="${javadoc.preview}"/>
83
<property name="run.jvmargs" value=""/>
84
<property name="javac.compilerargs" value=""/>
85
<property name="work.dir" value="${basedir}"/>
86
<condition property="no.deps">
88
<istrue value="${no.dependencies}"/>
91
<property name="javac.debug" value="true"/>
92
<property name="javadoc.preview" value="true"/>
94
<target name="-post-init">
95
<!-- Empty placeholder for easier customization. -->
96
<!-- You can override this target in the ../build.xml file. -->
98
<target name="-init-check" depends="-pre-init,-init-private,-init-user,-init-project,-do-init">
99
<fail unless="src.dir">Must set src.dir</fail>
100
<fail unless="test.src.dir">Must set test.src.dir</fail>
101
<fail unless="build.dir">Must set build.dir</fail>
102
<fail unless="dist.dir">Must set dist.dir</fail>
103
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
104
<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
105
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
106
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
107
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
108
<fail unless="dist.jar">Must set dist.jar</fail>
110
<target name="-init-macrodef-property">
111
<macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
112
<attribute name="name"/>
113
<attribute name="value"/>
115
<property name="@{name}" value="${@{value}}"/>
119
<target name="-init-macrodef-javac">
120
<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
121
<attribute name="srcdir" default="${src.dir}"/>
122
<attribute name="destdir" default="${build.classes.dir}"/>
123
<attribute name="classpath" default="${javac.classpath}"/>
124
<attribute name="debug" default="${javac.debug}"/>
125
<element name="customize" optional="true"/>
127
<javac srcdir="@{srcdir}" destdir="@{destdir}" debug="@{debug}" deprecation="${javac.deprecation}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
129
<path path="@{classpath}"/>
131
<compilerarg line="${javac.compilerargs}"/>
137
<target name="-init-macrodef-junit">
138
<macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
139
<attribute name="includes" default="**/*Test.java"/>
141
<junit showoutput="true" fork="true" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed">
142
<batchtest todir="${build.test.results.dir}">
143
<fileset dir="${test.src.dir}" includes="@{includes}"/>
146
<path path="${run.test.classpath}"/>
149
<propertyref prefix="test-sys-prop."/>
150
<mapper type="glob" from="test-sys-prop.*" to="*"/>
152
<formatter type="brief" usefile="false"/>
153
<formatter type="xml"/>
154
<jvmarg line="${run.jvmargs}"/>
159
<target name="-init-macrodef-nbjpda">
160
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
161
<attribute name="name" default="${main.class}"/>
162
<attribute name="classpath" default="${debug.classpath}"/>
163
<attribute name="stopclassname" default=""/>
165
<nbjpdastart transport="dt_socket" addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}">
167
<path path="@{classpath}"/>
172
<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
173
<attribute name="dir" default="${build.classes.dir}"/>
176
<fileset includes="${fix.includes}*.class" dir="@{dir}"/>
181
<target name="-init-macrodef-debug">
182
<macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
183
<attribute name="classname" default="${main.class}"/>
184
<attribute name="classpath" default="${debug.classpath}"/>
185
<element name="customize" optional="true"/>
187
<java fork="true" classname="@{classname}" dir="${work.dir}">
188
<jvmarg value="-Xdebug"/>
189
<jvmarg value="-Xnoagent"/>
190
<jvmarg value="-Djava.compiler=none"/>
191
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
192
<jvmarg line="${run.jvmargs}"/>
194
<path path="@{classpath}"/>
197
<propertyref prefix="run-sys-prop."/>
198
<mapper type="glob" from="run-sys-prop.*" to="*"/>
205
<target name="-init-macrodef-java">
206
<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
207
<attribute name="classname" default="${main.class}"/>
208
<element name="customize" optional="true"/>
210
<java fork="true" classname="@{classname}" dir="${work.dir}">
211
<jvmarg line="${run.jvmargs}"/>
213
<path path="${run.classpath}"/>
216
<propertyref prefix="run-sys-prop."/>
217
<mapper type="glob" from="run-sys-prop.*" to="*"/>
224
<target name="-init-presetdef-jar">
225
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
226
<jar jarfile="${dist.jar}" compress="${jar.compress}">
227
<j2seproject1:fileset dir="${build.classes.dir}"/>
231
<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"/>
237
<target name="deps-jar" depends="init" unless="no.deps"/>
238
<target name="-pre-pre-compile" depends="init,deps-jar">
239
<mkdir dir="${build.classes.dir}"/>
241
<target name="-pre-compile">
242
<!-- Empty placeholder for easier customization. -->
243
<!-- You can override this target in the ../build.xml file. -->
245
<target name="-do-compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile" if="have.sources">
246
<j2seproject3:javac/>
247
<copy todir="${build.classes.dir}">
248
<fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
251
<target name="-post-compile">
252
<!-- Empty placeholder for easier customization. -->
253
<!-- You can override this target in the ../build.xml file. -->
255
<target name="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/>
256
<target name="-pre-compile-single">
257
<!-- Empty placeholder for easier customization. -->
258
<!-- You can override this target in the ../build.xml file. -->
260
<target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile">
261
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
264
<patternset includes="${javac.includes}"/>
266
</j2seproject3:javac>
268
<target name="-post-compile-single">
269
<!-- Empty placeholder for easier customization. -->
270
<!-- You can override this target in the ../build.xml file. -->
272
<target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/>
278
<target name="-pre-pre-jar" depends="init">
279
<dirname property="dist.jar.dir" file="${dist.jar}"/>
280
<mkdir dir="${dist.jar.dir}"/>
282
<target name="-pre-jar">
283
<!-- Empty placeholder for easier customization. -->
284
<!-- You can override this target in the ../build.xml file. -->
286
<target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" unless="manifest.available">
289
<target name="-do-jar-with-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" unless="manifest.available+main.class">
290
<j2seproject1:jar manifest="${manifest.file}"/>
292
<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">
293
<j2seproject1:jar manifest="${manifest.file}">
294
<j2seproject1:manifest>
295
<j2seproject1:attribute name="Main-Class" value="${main.class}"/>
296
</j2seproject1:manifest>
298
<echo>To run this application from the command line without Ant, try:</echo>
299
<property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
300
<property name="dist.jar.resolved" location="${dist.jar}"/>
301
<pathconvert property="run.classpath.with.dist.jar">
302
<path path="${run.classpath}"/>
303
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
305
<echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
307
<target name="-do-jar-with-libraries" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available">
308
<property name="build.classes.dir.resolved" location="${build.classes.dir}"/>
309
<pathconvert property="run.classpath.without.build.classes.dir">
310
<path path="${run.classpath}"/>
311
<map from="${build.classes.dir.resolved}" to=""/>
313
<pathconvert property="jar.classpath" pathsep=" ">
314
<path path="${run.classpath.without.build.classes.dir}"/>
317
<globmapper from="*" to="lib/*"/>
320
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" name="copylibs" classpath="${libs.CopyLibs.classpath}"/>
321
<copylibs manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}" jarfile="${dist.jar}" compress="${jar.compress}">
322
<fileset dir="${build.classes.dir}"/>
324
<attribute name="Main-Class" value="${main.class}"/>
325
<attribute name="Class-Path" value="${jar.classpath}"/>
328
<echo>To run this application from the command line without Ant, try:</echo>
329
<property name="dist.jar.resolved" location="${dist.jar}"/>
330
<echo>java -jar "${dist.jar.resolved}"</echo>
332
<target name="-post-jar">
333
<!-- Empty placeholder for easier customization. -->
334
<!-- You can override this target in the ../build.xml file. -->
336
<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."/>
342
<target name="run" depends="init,compile" description="Run a main class.">
345
<arg line="${application.args}"/>
349
<target name="run-single" depends="init,compile-single">
350
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
351
<j2seproject1:java classname="${run.class}"/>
358
<target name="-debug-start-debugger" if="netbeans.home" depends="init">
359
<j2seproject1:nbjpdastart name="${debug.class}"/>
361
<target name="-debug-start-debuggee" depends="init,compile">
364
<arg line="${application.args}"/>
366
</j2seproject3:debug>
368
<target name="debug" if="netbeans.home" depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE."/>
369
<target name="-debug-start-debugger-stepinto" if="netbeans.home" depends="init">
370
<j2seproject1:nbjpdastart stopclassname="${main.class}"/>
372
<target name="debug-stepinto" if="netbeans.home" depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee"/>
373
<target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single">
374
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
375
<j2seproject3:debug classname="${debug.class}"/>
377
<target name="debug-single" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/>
378
<target name="-pre-debug-fix" depends="init">
379
<fail unless="fix.includes">Must set fix.includes</fail>
380
<property name="javac.includes" value="${fix.includes}.java"/>
382
<target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single">
383
<j2seproject1:nbjpdareload/>
385
<target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/>
391
<target name="-javadoc-build" depends="init">
392
<mkdir dir="${dist.javadoc.dir}"/>
393
<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">
395
<path path="${javac.classpath}"/>
398
<pathelement location="${src.dir}"/>
400
<packageset dir="${src.dir}" includes="*/**"/>
401
<fileset dir="${src.dir}" includes="*.java"/>
404
<target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build">
405
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
407
<target name="javadoc" depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc."/>
409
=========================
410
JUNIT COMPILATION SECTION
411
=========================
413
<target name="-pre-pre-compile-test" if="have.tests" depends="init,compile">
414
<mkdir dir="${build.test.classes.dir}"/>
416
<target name="-pre-compile-test">
417
<!-- Empty placeholder for easier customization. -->
418
<!-- You can override this target in the ../build.xml file. -->
420
<target name="-do-compile-test" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test">
421
<j2seproject3:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"/>
422
<copy todir="${build.test.classes.dir}">
423
<fileset dir="${test.src.dir}" excludes="**/*.java"/>
426
<target name="-post-compile-test">
427
<!-- Empty placeholder for easier customization. -->
428
<!-- You can override this target in the ../build.xml file. -->
430
<target name="compile-test" depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test"/>
431
<target name="-pre-compile-test-single">
432
<!-- Empty placeholder for easier customization. -->
433
<!-- You can override this target in the ../build.xml file. -->
435
<target name="-do-compile-test-single" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single">
436
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
437
<j2seproject3:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}">
439
<patternset includes="${javac.includes}"/>
441
</j2seproject3:javac>
442
<copy todir="${build.test.classes.dir}">
443
<fileset dir="${test.src.dir}" excludes="**/*.java"/>
446
<target name="-post-compile-test-single">
447
<!-- Empty placeholder for easier customization. -->
448
<!-- You can override this target in the ../build.xml file. -->
450
<target name="compile-test-single" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single"/>
452
=======================
453
JUNIT EXECUTION SECTION
454
=======================
456
<target name="-pre-test-run" if="have.tests" depends="init">
457
<mkdir dir="${build.test.results.dir}"/>
459
<target name="-do-test-run" if="have.tests" depends="init,compile-test,-pre-test-run">
460
<j2seproject3:junit/>
462
<target name="-post-test-run" if="have.tests" depends="init,compile-test,-pre-test-run,-do-test-run">
463
<fail if="tests.failed">Some tests failed; see details above.</fail>
465
<target name="test-report" if="have.tests" depends="init"/>
466
<target name="-test-browse" if="netbeans.home+have.tests" depends="init"/>
467
<target name="test" depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests."/>
468
<target name="-pre-test-run-single" if="have.tests" depends="init">
469
<mkdir dir="${build.test.results.dir}"/>
471
<target name="-do-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single">
472
<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
473
<j2seproject3:junit includes="${test.includes}"/>
475
<target name="-post-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single">
476
<fail if="tests.failed">Some tests failed; see details above.</fail>
478
<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."/>
480
=======================
481
JUNIT DEBUGGING SECTION
482
=======================
484
<target name="-debug-start-debuggee-test" if="have.tests" depends="init,compile-test">
485
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
486
<j2seproject3:debug classname="junit.textui.TestRunner" classpath="${debug.test.classpath}">
488
<arg line="${test.class}"/>
490
</j2seproject3:debug>
492
<target name="-debug-start-debugger-test" if="netbeans.home+have.tests" depends="init,compile-test">
493
<j2seproject1:nbjpdastart name="${test.class}" classpath="${debug.test.classpath}"/>
495
<target name="debug-test" depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test"/>
496
<target name="-do-debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,compile-test-single">
497
<j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
499
<target name="debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix-test"/>
501
=========================
502
APPLET EXECUTION SECTION
503
=========================
505
<target name="run-applet" depends="init,compile-single">
506
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
507
<j2seproject1:java classname="sun.applet.AppletViewer">
509
<arg value="${applet.url}"/>
514
=========================
515
APPLET DEBUGGING SECTION
516
=========================
518
<target name="-debug-start-debuggee-applet" if="netbeans.home" depends="init,compile-single">
519
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
520
<j2seproject3:debug classname="sun.applet.AppletViewer">
522
<arg value="${applet.url}"/>
524
</j2seproject3:debug>
526
<target name="debug-applet" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet"/>
532
<target name="deps-clean" depends="init" unless="no.deps"/>
533
<target name="-do-clean" depends="init">
534
<delete dir="${build.dir}"/>
535
<delete dir="${dist.dir}"/>
537
<target name="-post-clean">
538
<!-- Empty placeholder for easier customization. -->
539
<!-- You can override this target in the ../build.xml file. -->
541
<target name="clean" depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products."/>