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 xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" name="OrderClient-impl" default="default" basedir="..">
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 value="1.4" name="default.javac.source"/>
41
<property value="1.4" name="default.javac.target"/>
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 property="manifest.available" file="${manifest.file}"/>
48
<condition property="manifest.available+main.class">
50
<isset property="manifest.available"/>
51
<isset property="main.class"/>
53
<equals trim="true" arg2="" arg1="${main.class}"/>
57
<condition property="have.tests">
59
<available file="${test.src.dir}"/>
62
<condition property="netbeans.home+have.tests">
64
<isset property="netbeans.home"/>
65
<isset property="have.tests"/>
68
<condition property="no.javadoc.preview">
69
<isfalse value="${javadoc.preview}"/>
71
<property value="" name="run.jvmargs"/>
72
<property value="" name="javac.compilerargs"/>
73
<property value="${basedir}" name="work.dir"/>
74
<condition property="no.deps">
76
<istrue value="${no.dependencies}"/>
80
<target name="-post-init">
81
<!-- Empty placeholder for easier customization. -->
82
<!-- You can override this target in the ../build.xml file. -->
84
<target name="-init-check" depends="-pre-init,-init-private,-init-user,-init-project,-do-init">
85
<fail unless="src.dir">Must set src.dir</fail>
86
<fail unless="test.src.dir">Must set test.src.dir</fail>
87
<fail unless="build.dir">Must set build.dir</fail>
88
<fail unless="dist.dir">Must set dist.dir</fail>
89
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
90
<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
91
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
92
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
93
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
94
<fail unless="dist.jar">Must set dist.jar</fail>
96
<target name="-init-macrodef-property">
97
<macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
98
<attribute name="name"/>
99
<attribute name="value"/>
101
<property value="${@{value}}" name="@{name}"/>
105
<target name="-init-macrodef-javac">
106
<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/2">
107
<attribute name="srcdir" default="${src.dir}"/>
108
<attribute name="destdir" default="${build.classes.dir}"/>
109
<attribute name="classpath" default="${javac.classpath}"/>
110
<attribute name="debug" default="${javac.debug}"/>
111
<element name="customize" optional="true"/>
113
<javac srcdir="@{srcdir}" destdir="@{destdir}" debug="@{debug}" deprecation="${javac.deprecation}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
115
<path path="@{classpath}"/>
117
<compilerarg line="${javac.compilerargs}"/>
123
<target name="-init-macrodef-junit">
124
<macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/2">
125
<attribute name="includes" default="**/*Test.java"/>
127
<junit showoutput="true" fork="true" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed">
128
<batchtest todir="${build.test.results.dir}">
129
<fileset dir="${test.src.dir}" includes="@{includes}"/>
132
<path path="${run.test.classpath}"/>
135
<propertyref prefix="test-sys-prop."/>
136
<mapper to="*" from="test-sys-prop.*" type="glob"/>
138
<formatter usefile="false" type="brief"/>
143
<target name="-init-macrodef-nbjpda">
144
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
145
<attribute name="name" default="${main.class}"/>
146
<attribute name="classpath" default="${debug.classpath}"/>
147
<attribute name="stopclassname" default=""/>
149
<nbjpdastart stopclassname="@{stopclassname}" name="@{name}" addressproperty="jpda.address" transport="dt_socket">
151
<path path="@{classpath}"/>
156
<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
157
<attribute name="dir" default="${build.classes.dir}"/>
160
<fileset dir="@{dir}" includes="${fix.includes}*.class"/>
165
<target name="-init-macrodef-debug">
166
<macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/2">
167
<attribute name="classname" default="${main.class}"/>
168
<attribute name="classpath" default="${debug.classpath}"/>
169
<element name="customize" optional="true"/>
171
<java classname="@{classname}" fork="true" dir="${work.dir}">
172
<jvmarg value="-Xdebug"/>
173
<jvmarg value="-Xnoagent"/>
174
<jvmarg value="-Djava.compiler=none"/>
175
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
176
<jvmarg line="${run.jvmargs}"/>
178
<path path="@{classpath}"/>
181
<propertyref prefix="run-sys-prop."/>
182
<mapper to="*" from="run-sys-prop.*" type="glob"/>
189
<target name="-init-macrodef-java">
190
<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
191
<attribute name="classname" default="${main.class}"/>
192
<element name="customize" optional="true"/>
194
<java classname="@{classname}" fork="true" dir="${work.dir}">
195
<jvmarg line="${run.jvmargs}"/>
197
<path path="${run.classpath}"/>
200
<propertyref prefix="run-sys-prop."/>
201
<mapper to="*" from="run-sys-prop.*" type="glob"/>
208
<target name="-init-presetdef-jar">
209
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
210
<jar compress="${jar.compress}" jarfile="${dist.jar}">
211
<j2seproject1:fileset dir="${build.classes.dir}"/>
215
<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"/>
221
<target name="deps-jar" depends="init" unless="no.deps">
222
<ant antfile="${project.Order}/build.xml" inheritall="false" target="dist"/>
224
<target name="-pre-pre-compile" depends="init,deps-jar">
225
<mkdir dir="${build.classes.dir}"/>
227
<target name="-pre-compile">
228
<!-- Empty placeholder for easier customization. -->
229
<!-- You can override this target in the ../build.xml file. -->
231
<target name="-do-compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile">
232
<j2seproject2:javac/>
233
<copy todir="${build.classes.dir}">
234
<fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
237
<target name="-post-compile">
238
<!-- Empty placeholder for easier customization. -->
239
<!-- You can override this target in the ../build.xml file. -->
241
<target name="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/>
242
<target name="-pre-compile-single">
243
<!-- Empty placeholder for easier customization. -->
244
<!-- You can override this target in the ../build.xml file. -->
246
<target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile">
247
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
250
<patternset includes="${javac.includes}"/>
252
</j2seproject2:javac>
254
<target name="-post-compile-single">
255
<!-- Empty placeholder for easier customization. -->
256
<!-- You can override this target in the ../build.xml file. -->
258
<target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/>
264
<target name="-pre-pre-jar" depends="init">
265
<dirname file="${dist.jar}" property="dist.jar.dir"/>
266
<mkdir dir="${dist.jar.dir}"/>
268
<target name="-pre-jar">
269
<!-- Empty placeholder for easier customization. -->
270
<!-- You can override this target in the ../build.xml file. -->
272
<target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" unless="manifest.available">
275
<target name="-do-jar-with-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" unless="manifest.available+main.class">
276
<j2seproject1:jar manifest="${manifest.file}"/>
278
<target name="-do-jar-with-mainclass" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class">
279
<j2seproject1:jar manifest="${manifest.file}">
280
<j2seproject1:manifest>
281
<j2seproject1:attribute value="${main.class}" name="Main-Class"/>
282
</j2seproject1:manifest>
285
<target name="-post-jar">
286
<!-- Empty placeholder for easier customization. -->
287
<!-- You can override this target in the ../build.xml file. -->
289
<target name="jar" depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-post-jar" description="Build JAR."/>
295
<target name="run" depends="init,compile" description="Run a main class.">
298
<arg line="${application.args}"/>
302
<target name="run-single" depends="init,compile-single">
303
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
304
<j2seproject1:java classname="${run.class}"/>
311
<target name="-debug-start-debugger" if="netbeans.home" depends="init">
312
<j2seproject1:nbjpdastart name="${debug.class}"/>
314
<target name="-debug-start-debuggee" depends="init,compile">
317
<arg line="${application.args}"/>
319
</j2seproject2:debug>
321
<target name="debug" if="netbeans.home" depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE."/>
322
<target name="-debug-start-debugger-stepinto" if="netbeans.home" depends="init">
323
<j2seproject1:nbjpdastart stopclassname="${main.class}"/>
325
<target name="debug-stepinto" if="netbeans.home" depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee"/>
326
<target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single">
327
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
328
<j2seproject2:debug classname="${debug.class}"/>
330
<target name="debug-single" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/>
331
<target name="-pre-debug-fix" depends="init">
332
<fail unless="fix.includes">Must set fix.includes</fail>
333
<property value="${fix.includes}.java" name="javac.includes"/>
335
<target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single">
336
<j2seproject1:nbjpdareload/>
338
<target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/>
344
<target name="-javadoc-build" depends="init">
345
<mkdir dir="${dist.javadoc.dir}"/>
346
<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">
348
<path path="${javac.classpath}"/>
351
<pathelement location="${src.dir}"/>
353
<fileset dir="${src.dir}"/>
356
<target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build">
357
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
359
<target name="javadoc" depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc."/>
361
=========================
362
JUNIT COMPILATION SECTION
363
=========================
365
<target name="-pre-pre-compile-test" if="have.tests" depends="init,compile">
366
<mkdir dir="${build.test.classes.dir}"/>
368
<target name="-pre-compile-test">
369
<!-- Empty placeholder for easier customization. -->
370
<!-- You can override this target in the ../build.xml file. -->
372
<target name="-do-compile-test" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test">
373
<j2seproject2:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"/>
374
<copy todir="${build.test.classes.dir}">
375
<fileset dir="${test.src.dir}" excludes="**/*.java"/>
378
<target name="-post-compile-test">
379
<!-- Empty placeholder for easier customization. -->
380
<!-- You can override this target in the ../build.xml file. -->
382
<target name="compile-test" depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test"/>
383
<target name="-pre-compile-test-single">
384
<!-- Empty placeholder for easier customization. -->
385
<!-- You can override this target in the ../build.xml file. -->
387
<target name="-do-compile-test-single" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single">
388
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
389
<j2seproject2:javac srcdir="${test.src.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}">
391
<patternset includes="${javac.includes}"/>
393
</j2seproject2:javac>
395
<target name="-post-compile-test-single">
396
<!-- Empty placeholder for easier customization. -->
397
<!-- You can override this target in the ../build.xml file. -->
399
<target name="compile-test-single" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single"/>
401
=======================
402
JUNIT EXECUTION SECTION
403
=======================
405
<target name="-pre-test-run" if="have.tests" depends="init">
406
<mkdir dir="${build.test.results.dir}"/>
408
<target name="-do-test-run" if="have.tests" depends="init,compile-test,-pre-test-run">
409
<j2seproject2:junit/>
411
<target name="-post-test-run" if="have.tests" depends="init,compile-test,-pre-test-run,-do-test-run">
412
<fail if="tests.failed">Some tests failed; see details above.</fail>
414
<target name="test-report" if="have.tests" depends="init"/>
415
<target name="-test-browse" if="netbeans.home+have.tests" depends="init"/>
416
<target name="test" depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests."/>
417
<target name="-pre-test-run-single" if="have.tests" depends="init">
418
<mkdir dir="${build.test.results.dir}"/>
420
<target name="-do-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single">
421
<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
422
<j2seproject2:junit includes="${test.includes}"/>
424
<target name="-post-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single">
425
<fail if="tests.failed">Some tests failed; see details above.</fail>
427
<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."/>
429
=======================
430
JUNIT DEBUGGING SECTION
431
=======================
433
<target name="-debug-start-debuggee-test" if="have.tests" depends="init,compile-test">
434
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
435
<j2seproject2:debug classpath="${debug.test.classpath}" classname="junit.textui.TestRunner">
437
<arg line="${test.class}"/>
439
</j2seproject2:debug>
441
<target name="-debug-start-debugger-test" if="netbeans.home+have.tests" depends="init,compile-test">
442
<j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
444
<target name="debug-test" depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test"/>
445
<target name="-do-debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,compile-test-single">
446
<j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
448
<target name="debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix-test"/>
450
=========================
451
APPLET EXECUTION SECTION
452
=========================
454
<target name="run-applet" depends="init,compile-single">
455
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
456
<j2seproject1:java classname="sun.applet.AppletViewer">
458
<arg value="${applet.url}"/>
463
=========================
464
APPLET DEBUGGING SECTION
465
=========================
467
<target name="-debug-start-debuggee-applet" if="netbeans.home" depends="init,compile-single">
468
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
469
<j2seproject2:debug classname="sun.applet.AppletViewer">
471
<arg value="${applet.url}"/>
473
</j2seproject2:debug>
475
<target name="debug-applet" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet"/>
481
<target name="deps-clean" depends="init" unless="no.deps">
482
<ant antfile="${project.Order}/build.xml" inheritall="false" target="clean"/>
484
<target name="-do-clean" depends="init">
485
<delete dir="${build.dir}"/>
486
<delete dir="${dist.dir}"/>
488
<target name="-post-clean">
489
<!-- Empty placeholder for easier customization. -->
490
<!-- You can override this target in the ../build.xml file. -->
492
<target name="clean" depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products."/>