Name: instantiation/test/java/xmpp-tim/XmppClient/nbproject/build-impl.xml 
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"
23:
         xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3"
24:
         basedir=".." default="default" name="XmppClient-impl">
25:
    <fail message="Please build using Ant 1.8.0 or higher.">
26:
        <condition>
27:
            <not>
28:
                <antversion atleast="1.8.0"/>
29:
            </not>
30:
        </condition>
31:
    </fail>
32:
    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
33:
    <!--
34:
                ======================
35:
                INITIALIZATION SECTION
36:
                ======================
37:
            -->
38:
    <target name="-pre-init">
39:
        <!-- Empty placeholder for easier customization. -->
40:
        <!-- You can override this target in the ../build.xml file. -->
41:
    </target>
42:
    <target depends="-pre-init" name="-init-private">
43:
        <property file="nbproject/private/config.properties"/>
44:
        <property file="nbproject/private/configs/${config}.properties"/>
45:
        <property file="nbproject/private/private.properties"/>
46:
    </target>
47:
    <target depends="-pre-init,-init-private" name="-init-user">
48:
        <property file="${user.properties.file}"/>
49:
        <!-- The two properties below are usually overridden -->
50:
        <!-- by the active platform. Just a fallback. -->
51:
        <property name="default.javac.source" value="1.4"/>
52:
        <property name="default.javac.target" value="1.4"/>
53:
    </target>
54:
    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
55:
        <property file="nbproject/configs/${config}.properties"/>
56:
        <property file="nbproject/project.properties"/>
57:
    </target>
58:
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
59:
        <available file="${manifest.file}" property="manifest.available"/>
60:
        <condition property="splashscreen.available">
61:
            <and>
62:
                <not>
63:
                    <equals arg1="${application.splash}" arg2="" trim="true"/>
64:
                </not>
65:
                <available file="${application.splash}"/>
66:
            </and>
67:
        </condition>
68:
        <condition property="main.class.available">
69:
            <and>
70:
                <isset property="main.class"/>
71:
                <not>
72:
                    <equals arg1="${main.class}" arg2="" trim="true"/>
73:
                </not>
74:
            </and>
75:
        </condition>
76:
        <condition property="manifest.available+main.class">
77:
            <and>
78:
                <isset property="manifest.available"/>
79:
                <isset property="main.class.available"/>
80:
            </and>
81:
        </condition>
82:
        <condition property="do.archive">
83:
            <not>
84:
                <istrue value="${jar.archive.disabled}"/>
85:
            </not>
86:
        </condition>
87:
        <condition property="do.mkdist">
88:
            <and>
89:
                <isset property="do.archive"/>
90:
                <isset property="libs.CopyLibs.classpath"/>
91:
                <not>
92:
                    <istrue value="${mkdist.disabled}"/>
93:
                </not>
94:
            </and>
95:
        </condition>
96:
        <condition property="manifest.available+main.class+mkdist.available">
97:
            <and>
98:
                <istrue value="${manifest.available+main.class}"/>
99:
                <isset property="do.mkdist"/>
100:
            </and>
101:
        </condition>
102:
        <condition property="do.archive+manifest.available">
103:
            <and>
104:
                <isset property="manifest.available"/>
105:
                <istrue value="${do.archive}"/>
106:
            </and>
107:
        </condition>
108:
        <condition property="do.archive+main.class.available">
109:
            <and>
110:
                <isset property="main.class.available"/>
111:
                <istrue value="${do.archive}"/>
112:
            </and>
113:
        </condition>
114:
        <condition property="do.archive+splashscreen.available">
115:
            <and>
116:
                <isset property="splashscreen.available"/>
117:
                <istrue value="${do.archive}"/>
118:
            </and>
119:
        </condition>
120:
        <condition property="do.archive+manifest.available+main.class">
121:
            <and>
122:
                <istrue value="${manifest.available+main.class}"/>
123:
                <istrue value="${do.archive}"/>
124:
            </and>
125:
        </condition>
126:
        <condition property="manifest.available-mkdist.available">
127:
            <or>
128:
                <istrue value="${manifest.available}"/>
129:
                <isset property="do.mkdist"/>
130:
            </or>
131:
        </condition>
132:
        <condition property="manifest.available+main.class-mkdist.available">
133:
            <or>
134:
                <istrue value="${manifest.available+main.class}"/>
135:
                <isset property="do.mkdist"/>
136:
            </or>
137:
        </condition>
138:
        <condition property="have.tests">
139:
            <or/>
140:
        </condition>
141:
        <condition property="have.sources">
142:
            <or>
143:
                <available file="${src.dir}"/>
144:
            </or>
145:
        </condition>
146:
        <condition property="netbeans.home+have.tests">
147:
            <and>
148:
                <isset property="netbeans.home"/>
149:
                <isset property="have.tests"/>
150:
            </and>
151:
        </condition>
152:
        <condition property="no.javadoc.preview">
153:
            <and>
154:
                <isset property="javadoc.preview"/>
155:
                <isfalse value="${javadoc.preview}"/>
156:
            </and>
157:
        </condition>
158:
        <property name="run.jvmargs" value=""/>
159:
        <property name="javac.compilerargs" value=""/>
160:
        <property name="work.dir" value="${basedir}"/>
161:
        <condition property="no.deps">
162:
            <and>
163:
                <istrue value="${no.dependencies}"/>
164:
            </and>
165:
        </condition>
166:
        <property name="javac.debug" value="true"/>
167:
        <property name="javadoc.preview" value="true"/>
168:
        <property name="application.args" value=""/>
169:
        <property name="source.encoding" value="${file.encoding}"/>
170:
        <property name="runtime.encoding" value="${source.encoding}"/>
171:
        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
172:
            <and>
173:
                <isset property="javadoc.encoding"/>
174:
                <not>
175:
                    <equals arg1="${javadoc.encoding}" arg2=""/>
176:
                </not>
177:
            </and>
178:
        </condition>
179:
        <property name="javadoc.encoding.used" value="${source.encoding}"/>
180:
        <property name="includes" value="**"/>
181:
        <property name="excludes" value=""/>
182:
        <property name="do.depend" value="false"/>
183:
        <condition property="do.depend.true">
184:
            <istrue value="${do.depend}"/>
185:
        </condition>
186:
        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
187:
        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
188:
            <length length="0" string="${endorsed.classpath}" when="greater"/>
189:
        </condition>
190:
        <condition else="false" property="jdkBug6558476">
191:
            <and>
192:
                <matches pattern="1\.[56]" string="${java.specification.version}"/>
193:
                <not>
194:
                    <os family="unix"/>
195:
                </not>
196:
            </and>
197:
        </condition>
198:
        <property name="javac.fork" value="${jdkBug6558476}"/>
199:
        <property name="jar.index" value="false"/>
200:
        <property name="jar.index.metainf" value="${jar.index}"/>
201:
        <property name="copylibs.rebase" value="true"/>
202:
        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
203:
    </target>
204:
    <target name="-post-init">
205:
        <!-- Empty placeholder for easier customization. -->
206:
        <!-- You can override this target in the ../build.xml file. -->
207:
    </target>
208:
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
209:
        <fail unless="src.dir">Must set src.dir</fail>
210:
        <fail unless="build.dir">Must set build.dir</fail>
211:
        <fail unless="dist.dir">Must set dist.dir</fail>
212:
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
213:
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
214:
        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
215:
        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
216:
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
217:
        <fail unless="dist.jar">Must set dist.jar</fail>
218:
    </target>
219:
    <target name="-init-macrodef-property">
220:
        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
221:
            <attribute name="name"/>
222:
            <attribute name="value"/>
223:
            <sequential>
224:
                <property name="@{name}" value="${@{value}}"/>
225:
            </sequential>
226:
        </macrodef>
227:
    </target>
228:
    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
229:
        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
230:
            <attribute default="${src.dir}" name="srcdir"/>
231:
            <attribute default="${build.classes.dir}" name="destdir"/>
232:
            <attribute default="${javac.classpath}" name="classpath"/>
233:
            <attribute default="${javac.processorpath}" name="processorpath"/>
234:
            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
235:
            <attribute default="${includes}" name="includes"/>
236:
            <attribute default="${excludes}" name="excludes"/>
237:
            <attribute default="${javac.debug}" name="debug"/>
238:
            <attribute default="${empty.dir}" name="sourcepath"/>
239:
            <attribute default="${empty.dir}" name="gensrcdir"/>
240:
            <element name="customize" optional="true"/>
241:
            <sequential>
242:
                <property location="${build.dir}/empty" name="empty.dir"/>
243:
                <mkdir dir="${empty.dir}"/>
244:
                <mkdir dir="@{apgeneratedsrcdir}"/>
245:
                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
246:
                    <src>
247:
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
248:
                            <include name="*"/>
249:
                        </dirset>
250:
                    </src>
251:
                    <classpath>
252:
                        <path path="@{classpath}"/>
253:
                    </classpath>
254:
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
255:
                    <compilerarg line="${javac.compilerargs}"/>
256:
                    <compilerarg value="-processorpath"/>
257:
                    <compilerarg path="@{processorpath}:${empty.dir}"/>
258:
                    <compilerarg line="${ap.processors.internal}"/>
259:
                    <compilerarg line="${annotation.processing.processor.options}"/>
260:
                    <compilerarg value="-s"/>
261:
                    <compilerarg path="@{apgeneratedsrcdir}"/>
262:
                    <compilerarg line="${ap.proc.none.internal}"/>
263:
                    <customize/>
264:
                </javac>
265:
            </sequential>
266:
        </macrodef>
267:
    </target>
268:
    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
269:
        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
270:
            <attribute default="${src.dir}" name="srcdir"/>
271:
            <attribute default="${build.classes.dir}" name="destdir"/>
272:
            <attribute default="${javac.classpath}" name="classpath"/>
273:
            <attribute default="${javac.processorpath}" name="processorpath"/>
274:
            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
275:
            <attribute default="${includes}" name="includes"/>
276:
            <attribute default="${excludes}" name="excludes"/>
277:
            <attribute default="${javac.debug}" name="debug"/>
278:
            <attribute default="${empty.dir}" name="sourcepath"/>
279:
            <attribute default="${empty.dir}" name="gensrcdir"/>
280:
            <element name="customize" optional="true"/>
281:
            <sequential>
282:
                <property location="${build.dir}/empty" name="empty.dir"/>
283:
                <mkdir dir="${empty.dir}"/>
284:
                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
285:
                    <src>
286:
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
287:
                            <include name="*"/>
288:
                        </dirset>
289:
                    </src>
290:
                    <classpath>
291:
                        <path path="@{classpath}"/>
292:
                    </classpath>
293:
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
294:
                    <compilerarg line="${javac.compilerargs}"/>
295:
                    <customize/>
296:
                </javac>
297:
            </sequential>
298:
        </macrodef>
299:
    </target>
300:
    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
301:
        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
302:
            <attribute default="${src.dir}" name="srcdir"/>
303:
            <attribute default="${build.classes.dir}" name="destdir"/>
304:
            <attribute default="${javac.classpath}" name="classpath"/>
305:
            <sequential>
306:
                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
307:
                    <classpath>
308:
                        <path path="@{classpath}"/>
309:
                    </classpath>
310:
                </depend>
311:
            </sequential>
312:
        </macrodef>
313:
        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
314:
            <attribute default="${build.classes.dir}" name="destdir"/>
315:
            <sequential>
316:
                <fail unless="javac.includes">Must set javac.includes</fail>
317:
                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
318:
                    <path>
319:
                        <filelist dir="@{destdir}" files="${javac.includes}"/>
320:
                    </path>
321:
                    <globmapper from="*.java" to="*.class"/>
322:
                </pathconvert>
323:
                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
324:
                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
325:
                <delete>
326:
                    <files includesfile="${javac.includesfile.binary}"/>
327:
                </delete>
328:
                <delete>
329:
                    <fileset file="${javac.includesfile.binary}"/>
330:
                </delete>
331:
            </sequential>
332:
        </macrodef>
333:
    </target>
334:
    <target name="-init-macrodef-junit">
335:
        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
336:
            <attribute default="${includes}" name="includes"/>
337:
            <attribute default="${excludes}" name="excludes"/>
338:
            <attribute default="**" name="testincludes"/>
339:
            <sequential>
340:
                <property name="junit.forkmode" value="perTest"/>
341:
                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
342:
                    <batchtest todir="${build.test.results.dir}"/>
343:
                    <classpath>
344:
                        <path path="${run.test.classpath}"/>
345:
                    </classpath>
346:
                    <syspropertyset>
347:
                        <propertyref prefix="test-sys-prop."/>
348:
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
349:
                    </syspropertyset>
350:
                    <formatter type="brief" usefile="false"/>
351:
                    <formatter type="xml"/>
352:
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
353:
                    <jvmarg value="-ea"/>
354:
                    <jvmarg line="${run.jvmargs}"/>
355:
                </junit>
356:
            </sequential>
357:
        </macrodef>
358:
    </target>
359:
    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
360:
    <target name="-profile-pre-init">
361:
        <!-- Empty placeholder for easier customization. -->
362:
        <!-- You can override this target in the ../build.xml file. -->
363:
    </target>
364:
    <target name="-profile-post-init">
365:
        <!-- Empty placeholder for easier customization. -->
366:
        <!-- You can override this target in the ../build.xml file. -->
367:
    </target>
368:
    <target name="-profile-init-macrodef-profile">
369:
        <macrodef name="resolve">
370:
            <attribute name="name"/>
371:
            <attribute name="value"/>
372:
            <sequential>
373:
                <property name="@{name}" value="${[email protected]{value}}"/>
374:
            </sequential>
375:
        </macrodef>
376:
        <macrodef name="profile">
377:
            <attribute default="${main.class}" name="classname"/>
378:
            <element name="customize" optional="true"/>
379:
            <sequential>
380:
                <property environment="env"/>
381:
                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
382:
                <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
383:
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
384:
                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
385:
                    <jvmarg line="${profiler.info.jvmargs}"/>
386:
                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
387:
                    <arg line="${application.args}"/>
388:
                    <classpath>
389:
                        <path path="${run.classpath}"/>
390:
                    </classpath>
391:
                    <syspropertyset>
392:
                        <propertyref prefix="run-sys-prop."/>
393:
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
394:
                    </syspropertyset>
395:
                    <customize/>
396:
                </java>
397:
            </sequential>
398:
        </macrodef>
399:
    </target>
400:
    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
401:
        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
402:
        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
403:
    </target>
404:
    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
405:
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
406:
            <attribute default="${main.class}" name="name"/>
407:
            <attribute default="${debug.classpath}" name="classpath"/>
408:
            <attribute default="" name="stopclassname"/>
409:
            <sequential>
410:
                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
411:
                    <classpath>
412:
                        <path path="@{classpath}"/>
413:
                    </classpath>
414:
                </nbjpdastart>
415:
            </sequential>
416:
        </macrodef>
417:
        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
418:
            <attribute default="${build.classes.dir}" name="dir"/>
419:
            <sequential>
420:
                <nbjpdareload>
421:
                    <fileset dir="@{dir}" includes="${fix.classes}">
422:
                        <include name="${fix.includes}*.class"/>
423:
                    </fileset>
424:
                </nbjpdareload>
425:
            </sequential>
426:
        </macrodef>
427:
    </target>
428:
    <target name="-init-debug-args">
429:
        <property name="version-output" value="java version "${ant.java.version}"/>
430:
        <condition property="have-jdk-older-than-1.4">
431:
            <or>
432:
                <contains string="${version-output}" substring="java version "1.0"/>
433:
                <contains string="${version-output}" substring="java version "1.1"/>
434:
                <contains string="${version-output}" substring="java version "1.2"/>
435:
                <contains string="${version-output}" substring="java version "1.3"/>
436:
            </or>
437:
        </condition>
438:
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
439:
            <istrue value="${have-jdk-older-than-1.4}"/>
440:
        </condition>
441:
        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
442:
            <os family="windows"/>
443:
        </condition>
444:
        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
445:
            <isset property="debug.transport"/>
446:
        </condition>
447:
    </target>
448:
    <target depends="-init-debug-args" name="-init-macrodef-debug">
449:
        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
450:
            <attribute default="${main.class}" name="classname"/>
451:
            <attribute default="${debug.classpath}" name="classpath"/>
452:
            <element name="customize" optional="true"/>
453:
            <sequential>
454:
                <java classname="@{classname}" dir="${work.dir}" fork="true">
455:
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
456:
                    <jvmarg line="${debug-args-line}"/>
457:
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
458:
                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
459:
                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
460:
                    <jvmarg line="${run.jvmargs}"/>
461:
                    <classpath>
462:
                        <path path="@{classpath}"/>
463:
                    </classpath>
464:
                    <syspropertyset>
465:
                        <propertyref prefix="run-sys-prop."/>
466:
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
467:
                    </syspropertyset>
468:
                    <customize/>
469:
                </java>
470:
            </sequential>
471:
        </macrodef>
472:
    </target>
473:
    <target name="-init-macrodef-java">
474:
        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
475:
            <attribute default="${main.class}" name="classname"/>
476:
            <attribute default="${run.classpath}" name="classpath"/>
477:
            <element name="customize" optional="true"/>
478:
            <sequential>
479:
                <java classname="@{classname}" dir="${work.dir}" fork="true">
480:
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
481:
                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
482:
                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
483:
                    <jvmarg line="${run.jvmargs}"/>
484:
                    <classpath>
485:
                        <path path="@{classpath}"/>
486:
                    </classpath>
487:
                    <syspropertyset>
488:
                        <propertyref prefix="run-sys-prop."/>
489:
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
490:
                    </syspropertyset>
491:
                    <customize/>
492:
                </java>
493:
            </sequential>
494:
        </macrodef>
495:
    </target>
496:
    <target name="-init-macrodef-copylibs">
497:
        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
498:
            <attribute default="${manifest.file}" name="manifest"/>
499:
            <element name="customize" optional="true"/>
500:
            <sequential>
501:
                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
502:
                <pathconvert property="run.classpath.without.build.classes.dir">
503:
                    <path path="${run.classpath}"/>
504:
                    <map from="${build.classes.dir.resolved}" to=""/>
505:
                </pathconvert>
506:
                <pathconvert pathsep=" " property="jar.classpath">
507:
                    <path path="${run.classpath.without.build.classes.dir}"/>
508:
                    <chainedmapper>
509:
                        <flattenmapper/>
510:
                        <globmapper from="*" to="lib/*"/>
511:
                    </chainedmapper>
512:
                </pathconvert>
513:
                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
514:
                <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
515:
                    <fileset dir="${build.classes.dir}"/>
516:
                    <manifest>
517:
                        <attribute name="Class-Path" value="${jar.classpath}"/>
518:
                        <customize/>
519:
                    </manifest>
520:
                </copylibs>
521:
            </sequential>
522:
        </macrodef>
523:
    </target>
524:
    <target name="-init-presetdef-jar">
525:
        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
526:
            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
527:
                <j2seproject1:fileset dir="${build.classes.dir}"/>
528:
            </jar>
529:
        </presetdef>
530:
    </target>
531:
    <target name="-init-ap-cmdline-properties">
532:
        <property name="annotation.processing.enabled" value="true"/>
533:
        <property name="annotation.processing.processors.list" value=""/>
534:
        <property name="annotation.processing.processor.options" value=""/>
535:
        <property name="annotation.processing.run.all.processors" value="true"/>
536:
        <property name="javac.processorpath" value="${javac.classpath}"/>
537:
        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
538:
        <condition property="ap.supported.internal" value="true">
539:
            <not>
540:
                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
541:
            </not>
542:
        </condition>
543:
    </target>
544:
    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
545:
        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
546:
            <isfalse value="${annotation.processing.run.all.processors}"/>
547:
        </condition>
548:
        <condition else="" property="ap.proc.none.internal" value="-proc:none">
549:
            <isfalse value="${annotation.processing.enabled}"/>
550:
        </condition>
551:
    </target>
552:
    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
553:
        <property name="ap.cmd.line.internal" value=""/>
554:
    </target>
555:
    <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,-init-ap-cmdline" name="init"/>
556:
    <!--
557:
                ===================
558:
                COMPILATION SECTION
559:
                ===================
560:
            -->
561:
    <target name="-deps-jar-init" unless="built-jar.properties">
562:
        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
563:
        <delete file="${built-jar.properties}" quiet="true"/>
564:
    </target>
565:
    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
566:
        <echo level="warn" message="Cycle detected: XmppClient was already built"/>
567:
    </target>
568:
    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
569:
        <mkdir dir="${build.dir}"/>
570:
        <touch file="${built-jar.properties}" verbose="false"/>
571:
        <property file="${built-jar.properties}" prefix="already.built.jar."/>
572:
        <antcall target="-warn-already-built-jar"/>
573:
        <propertyfile file="${built-jar.properties}">
574:
            <entry key="${basedir}" value=""/>
575:
        </propertyfile>
576:
    </target>
577:
    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
578:
    <target depends="init" name="-check-automatic-build">
579:
        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
580:
    </target>
581:
    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
582:
        <antcall target="clean"/>
583:
    </target>
584:
    <target depends="init,deps-jar" name="-pre-pre-compile">
585:
        <mkdir dir="${build.classes.dir}"/>
586:
    </target>
587:
    <target name="-pre-compile">
588:
        <!-- Empty placeholder for easier customization. -->
589:
        <!-- You can override this target in the ../build.xml file. -->
590:
    </target>
591:
    <target if="do.depend.true" name="-compile-depend">
592:
        <pathconvert property="build.generated.subdirs">
593:
            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
594:
                <include name="*"/>
595:
            </dirset>
596:
        </pathconvert>
597:
        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
598:
    </target>
599:
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
600:
        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
601:
        <copy todir="${build.classes.dir}">
602:
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
603:
        </copy>
604:
    </target>
605:
    <target if="has.persistence.xml" name="-copy-persistence-xml">
606:
        <mkdir dir="${build.classes.dir}/META-INF"/>
607:
        <copy todir="${build.classes.dir}/META-INF">
608:
            <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
609:
        </copy>
610:
    </target>
611:
    <target name="-post-compile">
612:
        <!-- Empty placeholder for easier customization. -->
613:
        <!-- You can override this target in the ../build.xml file. -->
614:
    </target>
615:
    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
616:
    <target name="-pre-compile-single">
617:
        <!-- Empty placeholder for easier customization. -->
618:
        <!-- You can override this target in the ../build.xml file. -->
619:
    </target>
620:
    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
621:
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
622:
        <j2seproject3:force-recompile/>
623:
        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
624:
    </target>
625:
    <target name="-post-compile-single">
626:
        <!-- Empty placeholder for easier customization. -->
627:
        <!-- You can override this target in the ../build.xml file. -->
628:
    </target>
629:
    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
630:
    <!--
631:
                ====================
632:
                JAR BUILDING SECTION
633:
                ====================
634:
            -->
635:
    <target depends="init" name="-pre-pre-jar">
636:
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
637:
        <mkdir dir="${dist.jar.dir}"/>
638:
    </target>
639:
    <target name="-pre-jar">
640:
        <!-- Empty placeholder for easier customization. -->
641:
        <!-- You can override this target in the ../build.xml file. -->
642:
    </target>
643:
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
644:
        <j2seproject1:jar/>
645:
    </target>
646:
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
647:
        <j2seproject1:jar manifest="${manifest.file}"/>
648:
    </target>
649:
    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
650:
        <j2seproject1:jar manifest="${manifest.file}">
651:
            <j2seproject1:manifest>
652:
                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
653:
            </j2seproject1:manifest>
654:
        </j2seproject1:jar>
655:
        <echo level="info">To run this application from the command line without Ant, try:</echo>
656:
        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
657:
        <property location="${dist.jar}" name="dist.jar.resolved"/>
658:
        <pathconvert property="run.classpath.with.dist.jar">
659:
            <path path="${run.classpath}"/>
660:
            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
661:
        </pathconvert>
662:
        <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
663:
    </target>
664:
    <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
665:
        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
666:
        <touch file="${tmp.manifest.file}" verbose="false"/>
667:
    </target>
668:
    <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
669:
        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
670:
        <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
671:
    </target>
672:
    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
673:
        <manifest file="${tmp.manifest.file}" mode="update">
674:
            <attribute name="Main-Class" value="${main.class}"/>
675:
        </manifest>
676:
    </target>
677:
    <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
678:
        <basename file="${application.splash}" property="splashscreen.basename"/>
679:
        <mkdir dir="${build.classes.dir}/META-INF"/>
680:
        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
681:
        <manifest file="${tmp.manifest.file}" mode="update">
682:
            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
683:
        </manifest>
684:
    </target>
685:
    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
686:
        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
687:
        <echo level="info">To run this application from the command line without Ant, try:</echo>
688:
        <property location="${dist.jar}" name="dist.jar.resolved"/>
689:
        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
690:
    </target>
691:
    <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
692:
        <delete>
693:
            <fileset file="${tmp.manifest.file}"/>
694:
        </delete>
695:
    </target>
696:
    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
697:
    <target name="-post-jar">
698:
        <!-- Empty placeholder for easier customization. -->
699:
        <!-- You can override this target in the ../build.xml file. -->
700:
    </target>
701:
    <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"/>
702:
    <!--
703:
                =================
704:
                EXECUTION SECTION
705:
                =================
706:
            -->
707:
    <target depends="init,compile" description="Run a main class." name="run">
708:
        <j2seproject1:java>
709:
            <customize>
710:
                <arg line="${application.args}"/>
711:
            </customize>
712:
        </j2seproject1:java>
713:
    </target>
714:
    <target name="-do-not-recompile">
715:
        <property name="javac.includes.binary" value=""/>
716:
    </target>
717:
    <target depends="init,compile-single" name="run-single">
718:
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
719:
        <j2seproject1:java classname="${run.class}"/>
720:
    </target>
721:
    <target depends="init,compile-test-single" name="run-test-with-main">
722:
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
723:
        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
724:
    </target>
725:
    <!--
726:
                =================
727:
                DEBUGGING SECTION
728:
                =================
729:
            -->
730:
    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
731:
        <j2seproject1:nbjpdastart name="${debug.class}"/>
732:
    </target>
733:
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
734:
        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
735:
    </target>
736:
    <target depends="init,compile" name="-debug-start-debuggee">
737:
        <j2seproject3:debug>
738:
            <customize>
739:
                <arg line="${application.args}"/>
740:
            </customize>
741:
        </j2seproject3:debug>
742:
    </target>
743:
    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
744:
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
745:
        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
746:
    </target>
747:
    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
748:
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
749:
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
750:
        <j2seproject3:debug classname="${debug.class}"/>
751:
    </target>
752:
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
753:
    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
754:
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
755:
        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
756:
    </target>
757:
    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
758:
    <target depends="init" name="-pre-debug-fix">
759:
        <fail unless="fix.includes">Must set fix.includes</fail>
760:
        <property name="javac.includes" value="${fix.includes}.java"/>
761:
    </target>
762:
    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
763:
        <j2seproject1:nbjpdareload/>
764:
    </target>
765:
    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
766:
    <!--
767:
                =================
768:
                PROFILING SECTION
769:
                =================
770:
            -->
771:
    <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
772:
        <nbprofiledirect>
773:
            <classpath>
774:
                <path path="${run.classpath}"/>
775:
            </classpath>
776:
        </nbprofiledirect>
777:
        <profile/>
778:
    </target>
779:
    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
780:
        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
781:
        <nbprofiledirect>
782:
            <classpath>
783:
                <path path="${run.classpath}"/>
784:
            </classpath>
785:
        </nbprofiledirect>
786:
        <profile classname="${profile.class}"/>
787:
    </target>
788:
    <!--
789:
                =========================
790:
                APPLET PROFILING  SECTION
791:
                =========================
792:
            -->
793:
    <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
794:
        <nbprofiledirect>
795:
            <classpath>
796:
                <path path="${run.classpath}"/>
797:
            </classpath>
798:
        </nbprofiledirect>
799:
        <profile classname="sun.applet.AppletViewer">
800:
            <customize>
801:
                <arg value="${applet.url}"/>
802:
            </customize>
803:
        </profile>
804:
    </target>
805:
    <!--
806:
                =========================
807:
                TESTS PROFILING  SECTION
808:
                =========================
809:
            -->
810:
    <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
811:
        <nbprofiledirect>
812:
            <classpath>
813:
                <path path="${run.test.classpath}"/>
814:
            </classpath>
815:
        </nbprofiledirect>
816:
        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
817:
            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
818:
            <jvmarg value="${profiler.info.jvmargs.agent}"/>
819:
            <jvmarg line="${profiler.info.jvmargs}"/>
820:
            <test name="${profile.class}"/>
821:
            <classpath>
822:
                <path path="${run.test.classpath}"/>
823:
            </classpath>
824:
            <syspropertyset>
825:
                <propertyref prefix="test-sys-prop."/>
826:
                <mapper from="test-sys-prop.*" to="*" type="glob"/>
827:
            </syspropertyset>
828:
            <formatter type="brief" usefile="false"/>
829:
            <formatter type="xml"/>
830:
        </junit>
831:
    </target>
832:
    <!--
833:
                ===============
834:
                JAVADOC SECTION
835:
                ===============
836:
            -->
837:
    <target depends="init" if="have.sources" name="-javadoc-build">
838:
        <mkdir dir="${dist.javadoc.dir}"/>
839:
        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
840:
            <and>
841:
                <isset property="endorsed.classpath.cmd.line.arg"/>
842:
                <not>
843:
                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
844:
                </not>
845:
            </and>
846:
        </condition>
847:
        <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}">
848:
            <classpath>
849:
                <path path="${javac.classpath}"/>
850:
            </classpath>
851:
            <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
852:
                <filename name="**/*.java"/>
853:
            </fileset>
854:
            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
855:
                <include name="**/*.java"/>
856:
                <exclude name="*.java"/>
857:
            </fileset>
858:
            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
859:
        </javadoc>
860:
        <copy todir="${dist.javadoc.dir}">
861:
            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
862:
                <filename name="**/doc-files/**"/>
863:
            </fileset>
864:
            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
865:
                <include name="**/doc-files/**"/>
866:
            </fileset>
867:
        </copy>
868:
    </target>
869:
    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
870:
        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
871:
    </target>
872:
    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
873:
    <!--
874:
                =========================
875:
                JUNIT COMPILATION SECTION
876:
                =========================
877:
            -->
878:
    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
879:
        <mkdir dir="${build.test.classes.dir}"/>
880:
    </target>
881:
    <target name="-pre-compile-test">
882:
        <!-- Empty placeholder for easier customization. -->
883:
        <!-- You can override this target in the ../build.xml file. -->
884:
    </target>
885:
    <target if="do.depend.true" name="-compile-test-depend">
886:
        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir=""/>
887:
    </target>
888:
    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
889:
        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir=""/>
890:
        <copy todir="${build.test.classes.dir}"/>
891:
    </target>
892:
    <target name="-post-compile-test">
893:
        <!-- Empty placeholder for easier customization. -->
894:
        <!-- You can override this target in the ../build.xml file. -->
895:
    </target>
896:
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
897:
    <target name="-pre-compile-test-single">
898:
        <!-- Empty placeholder for easier customization. -->
899:
        <!-- You can override this target in the ../build.xml file. -->
900:
    </target>
901:
    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
902:
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
903:
        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
904:
        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="" srcdir=""/>
905:
        <copy todir="${build.test.classes.dir}"/>
906:
    </target>
907:
    <target name="-post-compile-test-single">
908:
        <!-- Empty placeholder for easier customization. -->
909:
        <!-- You can override this target in the ../build.xml file. -->
910:
    </target>
911:
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
912:
    <!--
913:
                =======================
914:
                JUNIT EXECUTION SECTION
915:
                =======================
916:
            -->
917:
    <target depends="init" if="have.tests" name="-pre-test-run">
918:
        <mkdir dir="${build.test.results.dir}"/>
919:
    </target>
920:
    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
921:
        <j2seproject3:junit testincludes="**/*Test.java"/>
922:
    </target>
923:
    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
924:
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
925:
    </target>
926:
    <target depends="init" if="have.tests" name="test-report"/>
927:
    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
928:
    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
929:
    <target depends="init" if="have.tests" name="-pre-test-run-single">
930:
        <mkdir dir="${build.test.results.dir}"/>
931:
    </target>
932:
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
933:
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
934:
        <j2seproject3:junit excludes="" includes="${test.includes}"/>
935:
    </target>
936:
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
937:
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
938:
    </target>
939:
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
940:
    <!--
941:
                =======================
942:
                JUNIT DEBUGGING SECTION
943:
                =======================
944:
            -->
945:
    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
946:
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
947:
        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
948:
        <delete file="${test.report.file}"/>
949:
        <mkdir dir="${build.test.results.dir}"/>
950:
        <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}">
951:
            <customize>
952:
                <syspropertyset>
953:
                    <propertyref prefix="test-sys-prop."/>
954:
                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
955:
                </syspropertyset>
956:
                <arg value="${test.class}"/>
957:
                <arg value="showoutput=true"/>
958:
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
959:
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
960:
            </customize>
961:
        </j2seproject3:debug>
962:
    </target>
963:
    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
964:
        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
965:
    </target>
966:
    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
967:
    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
968:
        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
969:
    </target>
970:
    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
971:
    <!--
972:
                =========================
973:
                APPLET EXECUTION SECTION
974:
                =========================
975:
            -->
976:
    <target depends="init,compile-single" name="run-applet">
977:
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
978:
        <j2seproject1:java classname="sun.applet.AppletViewer">
979:
            <customize>
980:
                <arg value="${applet.url}"/>
981:
            </customize>
982:
        </j2seproject1:java>
983:
    </target>
984:
    <!--
985:
                =========================
986:
                APPLET DEBUGGING  SECTION
987:
                =========================
988:
            -->
989:
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
990:
        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
991:
        <j2seproject3:debug classname="sun.applet.AppletViewer">
992:
            <customize>
993:
                <arg value="${applet.url}"/>
994:
            </customize>
995:
        </j2seproject3:debug>
996:
    </target>
997:
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
998:
    <!--
999:
                ===============
1000:
                CLEANUP SECTION
1001:
                ===============
1002:
            -->
1003:
    <target name="-deps-clean-init" unless="built-clean.properties">
1004:
        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1005:
        <delete file="${built-clean.properties}" quiet="true"/>
1006:
    </target>
1007:
    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1008:
        <echo level="warn" message="Cycle detected: XmppClient was already built"/>
1009:
    </target>
1010:
    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1011:
        <mkdir dir="${build.dir}"/>
1012:
        <touch file="${built-clean.properties}" verbose="false"/>
1013:
        <property file="${built-clean.properties}" prefix="already.built.clean."/>
1014:
        <antcall target="-warn-already-built-clean"/>
1015:
        <propertyfile file="${built-clean.properties}">
1016:
            <entry key="${basedir}" value=""/>
1017:
        </propertyfile>
1018:
    </target>
1019:
    <target depends="init" name="-do-clean">
1020:
        <delete dir="${build.dir}"/>
1021:
        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1022:
    </target>
1023:
    <target name="-post-clean">
1024:
        <!-- Empty placeholder for easier customization. -->
1025:
        <!-- You can override this target in the ../build.xml file. -->
1026:
    </target>
1027:
    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1028:
    <target name="-check-call-dep">
1029:
        <property file="${call.built.properties}" prefix="already.built."/>
1030:
        <condition property="should.call.dep">
1031:
            <not>
1032:
                <isset property="already.built.${call.subproject}"/>
1033:
            </not>
1034:
        </condition>
1035:
    </target>
1036:
    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1037:
        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1038:
            <propertyset>
1039:
                <propertyref prefix="transfer."/>
1040:
                <mapper from="transfer.*" to="*" type="glob"/>
1041:
            </propertyset>
1042:
        </ant>
1043:
    </target>
1044:
</project>