source: tmcsimulator/branches/ExtendLDS/nbproject/build-impl.xml @ 350

Revision 350, 78.0 KB checked in by jdalbey, 7 years ago (diff)

Add a branch EInotebook for Electronic Instructor Notebook prototype

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3*** GENERATED FROM project.xml - DO NOT EDIT  ***
4***         EDIT ../build.xml INSTEAD         ***
5
6For the purpose of easier reading the script
7is divided into following sections:
8
9  - initialization
10  - compilation
11  - jar
12  - execution
13  - debugging
14  - javadoc
15  - test compilation
16  - test execution
17  - test debugging
18  - applet
19  - cleanup
20
21        -->
22<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="ExtendLDS-impl">
23    <fail message="Please build using Ant 1.8.0 or higher.">
24        <condition>
25            <not>
26                <antversion atleast="1.8.0"/>
27            </not>
28        </condition>
29    </fail>
30    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
31    <!--
32                ======================
33                INITIALIZATION SECTION
34                ======================
35            -->
36    <target name="-pre-init">
37        <!-- Empty placeholder for easier customization. -->
38        <!-- You can override this target in the ../build.xml file. -->
39    </target>
40    <target depends="-pre-init" name="-init-private">
41        <property file="nbproject/private/config.properties"/>
42        <property file="nbproject/private/configs/${config}.properties"/>
43        <property file="nbproject/private/private.properties"/>
44    </target>
45    <target name="-pre-init-libraries">
46        <property location="./lib/nblibraries.properties" name="libraries.path"/>
47        <dirname file="${libraries.path}" property="libraries.dir.nativedirsep"/>
48        <pathconvert dirsep="/" property="libraries.dir">
49            <path path="${libraries.dir.nativedirsep}"/>
50        </pathconvert>
51        <basename file="${libraries.path}" property="libraries.basename" suffix=".properties"/>
52        <available file="${libraries.dir}/${libraries.basename}-private.properties" property="private.properties.available"/>
53    </target>
54    <target depends="-pre-init-libraries" if="private.properties.available" name="-init-private-libraries">
55        <loadproperties encoding="ISO-8859-1" srcfile="${libraries.dir}/${libraries.basename}-private.properties">
56            <filterchain>
57                <replacestring from="$${base}" to="${libraries.dir}"/>
58                <escapeunicode/>
59            </filterchain>
60        </loadproperties>
61    </target>
62    <target depends="-pre-init,-init-private,-init-private-libraries" name="-init-libraries">
63        <loadproperties encoding="ISO-8859-1" srcfile="${libraries.path}">
64            <filterchain>
65                <replacestring from="$${base}" to="${libraries.dir}"/>
66                <escapeunicode/>
67            </filterchain>
68        </loadproperties>
69    </target>
70    <target depends="-pre-init,-init-private,-init-libraries" name="-init-user">
71        <property file="${user.properties.file}"/>
72        <!-- The two properties below are usually overridden -->
73        <!-- by the active platform. Just a fallback. -->
74        <property name="default.javac.source" value="1.6"/>
75        <property name="default.javac.target" value="1.6"/>
76    </target>
77    <target depends="-pre-init,-init-private,-init-libraries,-init-user" name="-init-project">
78        <property file="nbproject/configs/${config}.properties"/>
79        <property file="nbproject/project.properties"/>
80    </target>
81    <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
82        <property name="platform.java" value="${java.home}/bin/java"/>
83        <available file="${manifest.file}" property="manifest.available"/>
84        <condition property="splashscreen.available">
85            <and>
86                <not>
87                    <equals arg1="${application.splash}" arg2="" trim="true"/>
88                </not>
89                <available file="${application.splash}"/>
90            </and>
91        </condition>
92        <condition property="main.class.available">
93            <and>
94                <isset property="main.class"/>
95                <not>
96                    <equals arg1="${main.class}" arg2="" trim="true"/>
97                </not>
98            </and>
99        </condition>
100        <condition property="profile.available">
101            <and>
102                <isset property="javac.profile"/>
103                <length length="0" string="${javac.profile}" when="greater"/>
104                <matches pattern="((1\.[89])|9)(\..*)?" string="${javac.source}"/>
105            </and>
106        </condition>
107        <condition property="do.archive">
108            <or>
109                <not>
110                    <istrue value="${jar.archive.disabled}"/>
111                </not>
112                <istrue value="${not.archive.disabled}"/>
113            </or>
114        </condition>
115        <condition property="do.mkdist">
116            <and>
117                <isset property="do.archive"/>
118                <isset property="libs.CopyLibs.classpath"/>
119                <not>
120                    <istrue value="${mkdist.disabled}"/>
121                </not>
122            </and>
123        </condition>
124        <condition property="do.archive+manifest.available">
125            <and>
126                <isset property="manifest.available"/>
127                <istrue value="${do.archive}"/>
128            </and>
129        </condition>
130        <condition property="do.archive+main.class.available">
131            <and>
132                <isset property="main.class.available"/>
133                <istrue value="${do.archive}"/>
134            </and>
135        </condition>
136        <condition property="do.archive+splashscreen.available">
137            <and>
138                <isset property="splashscreen.available"/>
139                <istrue value="${do.archive}"/>
140            </and>
141        </condition>
142        <condition property="do.archive+profile.available">
143            <and>
144                <isset property="profile.available"/>
145                <istrue value="${do.archive}"/>
146            </and>
147        </condition>
148        <condition property="have.tests">
149            <or>
150                <available file="${test.src.dir}"/>
151            </or>
152        </condition>
153        <condition property="have.sources">
154            <or>
155                <available file="${src.dir}"/>
156            </or>
157        </condition>
158        <condition property="netbeans.home+have.tests">
159            <and>
160                <isset property="netbeans.home"/>
161                <isset property="have.tests"/>
162            </and>
163        </condition>
164        <condition property="no.javadoc.preview">
165            <and>
166                <isset property="javadoc.preview"/>
167                <isfalse value="${javadoc.preview}"/>
168            </and>
169        </condition>
170        <property name="run.jvmargs" value=""/>
171        <property name="run.jvmargs.ide" value=""/>
172        <property name="javac.compilerargs" value=""/>
173        <property name="work.dir" value="${basedir}"/>
174        <condition property="no.deps">
175            <and>
176                <istrue value="${no.dependencies}"/>
177            </and>
178        </condition>
179        <property name="javac.debug" value="true"/>
180        <property name="javadoc.preview" value="true"/>
181        <property name="application.args" value=""/>
182        <property name="source.encoding" value="${file.encoding}"/>
183        <property name="runtime.encoding" value="${source.encoding}"/>
184        <property name="manifest.encoding" value="${source.encoding}"/>
185        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
186            <and>
187                <isset property="javadoc.encoding"/>
188                <not>
189                    <equals arg1="${javadoc.encoding}" arg2=""/>
190                </not>
191            </and>
192        </condition>
193        <property name="javadoc.encoding.used" value="${source.encoding}"/>
194        <property name="includes" value="**"/>
195        <property name="excludes" value=""/>
196        <property name="do.depend" value="false"/>
197        <condition property="do.depend.true">
198            <istrue value="${do.depend}"/>
199        </condition>
200        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
201        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
202            <and>
203                <isset property="endorsed.classpath"/>
204                <not>
205                    <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
206                </not>
207            </and>
208        </condition>
209        <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
210            <isset property="profile.available"/>
211        </condition>
212        <condition else="false" property="jdkBug6558476">
213            <and>
214                <matches pattern="1\.[56]" string="${java.specification.version}"/>
215                <not>
216                    <os family="unix"/>
217                </not>
218            </and>
219        </condition>
220        <condition else="false" property="javac.fork">
221            <or>
222                <istrue value="${jdkBug6558476}"/>
223                <istrue value="${javac.external.vm}"/>
224            </or>
225        </condition>
226        <property name="jar.index" value="false"/>
227        <property name="jar.index.metainf" value="${jar.index}"/>
228        <property name="copylibs.rebase" value="true"/>
229        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
230        <condition property="junit.available">
231            <or>
232                <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
233                <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
234            </or>
235        </condition>
236        <condition property="testng.available">
237            <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
238        </condition>
239        <condition property="junit+testng.available">
240            <and>
241                <istrue value="${junit.available}"/>
242                <istrue value="${testng.available}"/>
243            </and>
244        </condition>
245        <condition else="testng" property="testng.mode" value="mixed">
246            <istrue value="${junit+testng.available}"/>
247        </condition>
248        <condition else="" property="testng.debug.mode" value="-mixed">
249            <istrue value="${junit+testng.available}"/>
250        </condition>
251        <property name="java.failonerror" value="true"/>
252    </target>
253    <target name="-post-init">
254        <!-- Empty placeholder for easier customization. -->
255        <!-- You can override this target in the ../build.xml file. -->
256    </target>
257    <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name="-init-check">
258        <fail unless="src.dir">Must set src.dir</fail>
259        <fail unless="test.src.dir">Must set test.src.dir</fail>
260        <fail unless="build.dir">Must set build.dir</fail>
261        <fail unless="dist.dir">Must set dist.dir</fail>
262        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
263        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
264        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
265        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
266        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
267        <fail unless="dist.jar">Must set dist.jar</fail>
268    </target>
269    <target name="-init-macrodef-property">
270        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
271            <attribute name="name"/>
272            <attribute name="value"/>
273            <sequential>
274                <property name="@{name}" value="${@{value}}"/>
275            </sequential>
276        </macrodef>
277    </target>
278    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
279        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
280            <attribute default="${src.dir}" name="srcdir"/>
281            <attribute default="${build.classes.dir}" name="destdir"/>
282            <attribute default="${javac.classpath}" name="classpath"/>
283            <attribute default="${javac.processorpath}" name="processorpath"/>
284            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
285            <attribute default="${includes}" name="includes"/>
286            <attribute default="${excludes}" name="excludes"/>
287            <attribute default="${javac.debug}" name="debug"/>
288            <attribute default="${empty.dir}" name="sourcepath"/>
289            <attribute default="${empty.dir}" name="gensrcdir"/>
290            <element name="customize" optional="true"/>
291            <sequential>
292                <property location="${build.dir}/empty" name="empty.dir"/>
293                <mkdir dir="${empty.dir}"/>
294                <mkdir dir="@{apgeneratedsrcdir}"/>
295                <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}">
296                    <src>
297                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
298                            <include name="*"/>
299                        </dirset>
300                    </src>
301                    <classpath>
302                        <path path="@{classpath}"/>
303                    </classpath>
304                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
305                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
306                    <compilerarg line="${javac.compilerargs}"/>
307                    <compilerarg value="-processorpath"/>
308                    <compilerarg path="@{processorpath}:${empty.dir}"/>
309                    <compilerarg line="${ap.processors.internal}"/>
310                    <compilerarg line="${annotation.processing.processor.options}"/>
311                    <compilerarg value="-s"/>
312                    <compilerarg path="@{apgeneratedsrcdir}"/>
313                    <compilerarg line="${ap.proc.none.internal}"/>
314                    <customize/>
315                </javac>
316            </sequential>
317        </macrodef>
318    </target>
319    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
320        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
321            <attribute default="${src.dir}" name="srcdir"/>
322            <attribute default="${build.classes.dir}" name="destdir"/>
323            <attribute default="${javac.classpath}" name="classpath"/>
324            <attribute default="${javac.processorpath}" name="processorpath"/>
325            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
326            <attribute default="${includes}" name="includes"/>
327            <attribute default="${excludes}" name="excludes"/>
328            <attribute default="${javac.debug}" name="debug"/>
329            <attribute default="${empty.dir}" name="sourcepath"/>
330            <attribute default="${empty.dir}" name="gensrcdir"/>
331            <element name="customize" optional="true"/>
332            <sequential>
333                <property location="${build.dir}/empty" name="empty.dir"/>
334                <mkdir dir="${empty.dir}"/>
335                <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}">
336                    <src>
337                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
338                            <include name="*"/>
339                        </dirset>
340                    </src>
341                    <classpath>
342                        <path path="@{classpath}"/>
343                    </classpath>
344                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
345                    <compilerarg line="${javac.profile.cmd.line.arg}"/>
346                    <compilerarg line="${javac.compilerargs}"/>
347                    <customize/>
348                </javac>
349            </sequential>
350        </macrodef>
351    </target>
352    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
353        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
354            <attribute default="${src.dir}" name="srcdir"/>
355            <attribute default="${build.classes.dir}" name="destdir"/>
356            <attribute default="${javac.classpath}" name="classpath"/>
357            <sequential>
358                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
359                    <classpath>
360                        <path path="@{classpath}"/>
361                    </classpath>
362                </depend>
363            </sequential>
364        </macrodef>
365        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
366            <attribute default="${build.classes.dir}" name="destdir"/>
367            <sequential>
368                <fail unless="javac.includes">Must set javac.includes</fail>
369                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
370                    <path>
371                        <filelist dir="@{destdir}" files="${javac.includes}"/>
372                    </path>
373                    <globmapper from="*.java" to="*.class"/>
374                </pathconvert>
375                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
376                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
377                <delete>
378                    <files includesfile="${javac.includesfile.binary}"/>
379                </delete>
380                <delete>
381                    <fileset file="${javac.includesfile.binary}"/>
382                </delete>
383            </sequential>
384        </macrodef>
385    </target>
386    <target if="${junit.available}" name="-init-macrodef-junit-init">
387        <condition else="false" property="nb.junit.batch" value="true">
388            <and>
389                <istrue value="${junit.available}"/>
390                <not>
391                    <isset property="test.method"/>
392                </not>
393            </and>
394        </condition>
395        <condition else="false" property="nb.junit.single" value="true">
396            <and>
397                <istrue value="${junit.available}"/>
398                <isset property="test.method"/>
399            </and>
400        </condition>
401    </target>
402    <target name="-init-test-properties">
403        <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
404        <property name="test.binarytestincludes" value=""/>
405        <property name="test.binaryexcludes" value=""/>
406    </target>
407    <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
408        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
409            <attribute default="${includes}" name="includes"/>
410            <attribute default="${excludes}" name="excludes"/>
411            <attribute default="**" name="testincludes"/>
412            <attribute default="" name="testmethods"/>
413            <element name="customize" optional="true"/>
414            <sequential>
415                <property name="junit.forkmode" value="perTest"/>
416                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
417                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
418                    <syspropertyset>
419                        <propertyref prefix="test-sys-prop."/>
420                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
421                    </syspropertyset>
422                    <formatter type="brief" usefile="false"/>
423                    <formatter type="xml"/>
424                    <jvmarg value="-ea"/>
425                    <customize/>
426                </junit>
427            </sequential>
428        </macrodef>
429    </target>
430    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
431        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
432            <attribute default="${includes}" name="includes"/>
433            <attribute default="${excludes}" name="excludes"/>
434            <attribute default="**" name="testincludes"/>
435            <attribute default="" name="testmethods"/>
436            <element name="customize" optional="true"/>
437            <sequential>
438                <property name="junit.forkmode" value="perTest"/>
439                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
440                    <batchtest todir="${build.test.results.dir}">
441                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
442                            <filename name="@{testincludes}"/>
443                        </fileset>
444                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
445                            <filename name="${test.binarytestincludes}"/>
446                        </fileset>
447                    </batchtest>
448                    <syspropertyset>
449                        <propertyref prefix="test-sys-prop."/>
450                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
451                    </syspropertyset>
452                    <formatter type="brief" usefile="false"/>
453                    <formatter type="xml"/>
454                    <jvmarg value="-ea"/>
455                    <customize/>
456                </junit>
457            </sequential>
458        </macrodef>
459    </target>
460    <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
461    <target if="${testng.available}" name="-init-macrodef-testng">
462        <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
463            <attribute default="${includes}" name="includes"/>
464            <attribute default="${excludes}" name="excludes"/>
465            <attribute default="**" name="testincludes"/>
466            <attribute default="" name="testmethods"/>
467            <element name="customize" optional="true"/>
468            <sequential>
469                <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
470                    <isset property="test.method"/>
471                </condition>
472                <union id="test.set">
473                    <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
474                        <filename name="@{testincludes}"/>
475                    </fileset>
476                </union>
477                <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
478                <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="ExtendLDS" testname="TestNG tests" workingDir="${work.dir}">
479                    <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
480                    <propertyset>
481                        <propertyref prefix="test-sys-prop."/>
482                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
483                    </propertyset>
484                    <customize/>
485                </testng>
486            </sequential>
487        </macrodef>
488    </target>
489    <target name="-init-macrodef-test-impl">
490        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
491            <attribute default="${includes}" name="includes"/>
492            <attribute default="${excludes}" name="excludes"/>
493            <attribute default="**" name="testincludes"/>
494            <attribute default="" name="testmethods"/>
495            <element implicit="true" name="customize" optional="true"/>
496            <sequential>
497                <echo>No tests executed.</echo>
498            </sequential>
499        </macrodef>
500    </target>
501    <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
502        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
503            <attribute default="${includes}" name="includes"/>
504            <attribute default="${excludes}" name="excludes"/>
505            <attribute default="**" name="testincludes"/>
506            <attribute default="" name="testmethods"/>
507            <element implicit="true" name="customize" optional="true"/>
508            <sequential>
509                <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
510                    <customize/>
511                </j2seproject3:junit>
512            </sequential>
513        </macrodef>
514    </target>
515    <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
516        <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
517            <attribute default="${includes}" name="includes"/>
518            <attribute default="${excludes}" name="excludes"/>
519            <attribute default="**" name="testincludes"/>
520            <attribute default="" name="testmethods"/>
521            <element implicit="true" name="customize" optional="true"/>
522            <sequential>
523                <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
524                    <customize/>
525                </j2seproject3:testng>
526            </sequential>
527        </macrodef>
528    </target>
529    <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
530        <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
531            <attribute default="${includes}" name="includes"/>
532            <attribute default="${excludes}" name="excludes"/>
533            <attribute default="**" name="testincludes"/>
534            <attribute default="" name="testmethods"/>
535            <sequential>
536                <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
537                    <customize>
538                        <classpath>
539                            <path path="${run.test.classpath}"/>
540                        </classpath>
541                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
542                        <jvmarg line="${run.jvmargs}"/>
543                        <jvmarg line="${run.jvmargs.ide}"/>
544                    </customize>
545                </j2seproject3:test-impl>
546            </sequential>
547        </macrodef>
548    </target>
549    <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
550        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
551            <attribute default="${includes}" name="includes"/>
552            <attribute default="${excludes}" name="excludes"/>
553            <attribute default="**" name="testincludes"/>
554            <attribute default="" name="testmethods"/>
555            <element name="customize" optional="true"/>
556            <sequential>
557                <property name="junit.forkmode" value="perTest"/>
558                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
559                    <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
560                    <syspropertyset>
561                        <propertyref prefix="test-sys-prop."/>
562                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
563                    </syspropertyset>
564                    <formatter type="brief" usefile="false"/>
565                    <formatter type="xml"/>
566                    <jvmarg value="-ea"/>
567                    <jvmarg line="${debug-args-line}"/>
568                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
569                    <customize/>
570                </junit>
571            </sequential>
572        </macrodef>
573    </target>
574    <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
575        <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
576            <attribute default="${includes}" name="includes"/>
577            <attribute default="${excludes}" name="excludes"/>
578            <attribute default="**" name="testincludes"/>
579            <attribute default="" name="testmethods"/>
580            <element name="customize" optional="true"/>
581            <sequential>
582                <property name="junit.forkmode" value="perTest"/>
583                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
584                    <batchtest todir="${build.test.results.dir}">
585                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
586                            <filename name="@{testincludes}"/>
587                        </fileset>
588                        <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
589                            <filename name="${test.binarytestincludes}"/>
590                        </fileset>
591                    </batchtest>
592                    <syspropertyset>
593                        <propertyref prefix="test-sys-prop."/>
594                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
595                    </syspropertyset>
596                    <formatter type="brief" usefile="false"/>
597                    <formatter type="xml"/>
598                    <jvmarg value="-ea"/>
599                    <jvmarg line="${debug-args-line}"/>
600                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
601                    <customize/>
602                </junit>
603            </sequential>
604        </macrodef>
605    </target>
606    <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
607        <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
608            <attribute default="${includes}" name="includes"/>
609            <attribute default="${excludes}" name="excludes"/>
610            <attribute default="**" name="testincludes"/>
611            <attribute default="" name="testmethods"/>
612            <element implicit="true" name="customize" optional="true"/>
613            <sequential>
614                <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
615                    <customize/>
616                </j2seproject3:junit-debug>
617            </sequential>
618        </macrodef>
619    </target>
620    <target if="${testng.available}" name="-init-macrodef-testng-debug">
621        <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
622            <attribute default="${main.class}" name="testClass"/>
623            <attribute default="" name="testMethod"/>
624            <element name="customize2" optional="true"/>
625            <sequential>
626                <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
627                    <isset property="test.method"/>
628                </condition>
629                <condition else="-suitename ExtendLDS -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
630                    <matches pattern=".*\.xml" string="@{testClass}"/>
631                </condition>
632                <delete dir="${build.test.results.dir}" quiet="true"/>
633                <mkdir dir="${build.test.results.dir}"/>
634                <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
635                    <customize>
636                        <customize2/>
637                        <jvmarg value="-ea"/>
638                        <arg line="${testng.debug.mode}"/>
639                        <arg line="-d ${build.test.results.dir}"/>
640                        <arg line="-listener org.testng.reporters.VerboseReporter"/>
641                        <arg line="${testng.cmd.args}"/>
642                    </customize>
643                </j2seproject3:debug>
644            </sequential>
645        </macrodef>
646    </target>
647    <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
648        <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
649            <attribute default="${main.class}" name="testClass"/>
650            <attribute default="" name="testMethod"/>
651            <element implicit="true" name="customize2" optional="true"/>
652            <sequential>
653                <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
654                    <customize2/>
655                </j2seproject3:testng-debug>
656            </sequential>
657        </macrodef>
658    </target>
659    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
660        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
661            <attribute default="${includes}" name="includes"/>
662            <attribute default="${excludes}" name="excludes"/>
663            <attribute default="**" name="testincludes"/>
664            <attribute default="" name="testmethods"/>
665            <attribute default="${main.class}" name="testClass"/>
666            <attribute default="" name="testMethod"/>
667            <sequential>
668                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
669                    <customize>
670                        <classpath>
671                            <path path="${run.test.classpath}"/>
672                        </classpath>
673                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
674                        <jvmarg line="${run.jvmargs}"/>
675                        <jvmarg line="${run.jvmargs.ide}"/>
676                    </customize>
677                </j2seproject3:test-debug-impl>
678            </sequential>
679        </macrodef>
680    </target>
681    <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
682        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
683            <attribute default="${includes}" name="includes"/>
684            <attribute default="${excludes}" name="excludes"/>
685            <attribute default="**" name="testincludes"/>
686            <attribute default="" name="testmethods"/>
687            <attribute default="${main.class}" name="testClass"/>
688            <attribute default="" name="testMethod"/>
689            <sequential>
690                <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
691                    <customize2>
692                        <syspropertyset>
693                            <propertyref prefix="test-sys-prop."/>
694                            <mapper from="test-sys-prop.*" to="*" type="glob"/>
695                        </syspropertyset>
696                    </customize2>
697                </j2seproject3:testng-debug-impl>
698            </sequential>
699        </macrodef>
700    </target>
701    <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
702    <!--
703                pre NB7.2 profiling section; consider it deprecated
704            -->
705    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
706    <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
707        <!-- Empty placeholder for easier customization. -->
708        <!-- You can override this target in the ../build.xml file. -->
709    </target>
710    <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
711        <!-- Empty placeholder for easier customization. -->
712        <!-- You can override this target in the ../build.xml file. -->
713    </target>
714    <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
715        <macrodef name="resolve">
716            <attribute name="name"/>
717            <attribute name="value"/>
718            <sequential>
719                <property name="@{name}" value="${env.@{value}}"/>
720            </sequential>
721        </macrodef>
722        <macrodef name="profile">
723            <attribute default="${main.class}" name="classname"/>
724            <element name="customize" optional="true"/>
725            <sequential>
726                <property environment="env"/>
727                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
728                <java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
729                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
730                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
731                    <jvmarg line="${profiler.info.jvmargs}"/>
732                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
733                    <arg line="${application.args}"/>
734                    <classpath>
735                        <path path="${run.classpath}"/>
736                    </classpath>
737                    <syspropertyset>
738                        <propertyref prefix="run-sys-prop."/>
739                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
740                    </syspropertyset>
741                    <customize/>
742                </java>
743            </sequential>
744        </macrodef>
745    </target>
746    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
747        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
748        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
749    </target>
750    <!--
751                end of pre NB7.2 profiling section
752            -->
753    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
754        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
755            <attribute default="${main.class}" name="name"/>
756            <attribute default="${debug.classpath}" name="classpath"/>
757            <attribute default="" name="stopclassname"/>
758            <sequential>
759                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
760                    <classpath>
761                        <path path="@{classpath}"/>
762                    </classpath>
763                </nbjpdastart>
764            </sequential>
765        </macrodef>
766        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
767            <attribute default="${build.classes.dir}" name="dir"/>
768            <sequential>
769                <nbjpdareload>
770                    <fileset dir="@{dir}" includes="${fix.classes}">
771                        <include name="${fix.includes}*.class"/>
772                    </fileset>
773                </nbjpdareload>
774            </sequential>
775        </macrodef>
776    </target>
777    <target name="-init-debug-args">
778        <property name="version-output" value="java version &quot;${ant.java.version}"/>
779        <condition property="have-jdk-older-than-1.4">
780            <or>
781                <contains string="${version-output}" substring="java version &quot;1.0"/>
782                <contains string="${version-output}" substring="java version &quot;1.1"/>
783                <contains string="${version-output}" substring="java version &quot;1.2"/>
784                <contains string="${version-output}" substring="java version &quot;1.3"/>
785            </or>
786        </condition>
787        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
788            <istrue value="${have-jdk-older-than-1.4}"/>
789        </condition>
790        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
791            <os family="windows"/>
792        </condition>
793        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
794            <isset property="debug.transport"/>
795        </condition>
796    </target>
797    <target depends="-init-debug-args" name="-init-macrodef-debug">
798        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
799            <attribute default="${main.class}" name="classname"/>
800            <attribute default="${debug.classpath}" name="classpath"/>
801            <element name="customize" optional="true"/>
802            <sequential>
803                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
804                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
805                    <jvmarg line="${debug-args-line}"/>
806                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
807                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
808                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
809                    <jvmarg line="${run.jvmargs}"/>
810                    <jvmarg line="${run.jvmargs.ide}"/>
811                    <classpath>
812                        <path path="@{classpath}"/>
813                    </classpath>
814                    <syspropertyset>
815                        <propertyref prefix="run-sys-prop."/>
816                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
817                    </syspropertyset>
818                    <customize/>
819                </java>
820            </sequential>
821        </macrodef>
822    </target>
823    <target name="-init-macrodef-java">
824        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
825            <attribute default="${main.class}" name="classname"/>
826            <attribute default="${run.classpath}" name="classpath"/>
827            <attribute default="jvm" name="jvm"/>
828            <element name="customize" optional="true"/>
829            <sequential>
830                <java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
831                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
832                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
833                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
834                    <jvmarg line="${run.jvmargs}"/>
835                    <jvmarg line="${run.jvmargs.ide}"/>
836                    <classpath>
837                        <path path="@{classpath}"/>
838                    </classpath>
839                    <syspropertyset>
840                        <propertyref prefix="run-sys-prop."/>
841                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
842                    </syspropertyset>
843                    <customize/>
844                </java>
845            </sequential>
846        </macrodef>
847    </target>
848    <target name="-init-macrodef-copylibs">
849        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
850            <attribute default="${manifest.file}" name="manifest"/>
851            <element name="customize" optional="true"/>
852            <sequential>
853                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
854                <pathconvert property="run.classpath.without.build.classes.dir">
855                    <path path="${run.classpath}"/>
856                    <map from="${build.classes.dir.resolved}" to=""/>
857                </pathconvert>
858                <pathconvert pathsep=" " property="jar.classpath">
859                    <path path="${run.classpath.without.build.classes.dir}"/>
860                    <chainedmapper>
861                        <flattenmapper/>
862                        <filtermapper>
863                            <replacestring from=" " to="%20"/>
864                        </filtermapper>
865                        <globmapper from="*" to="lib/*"/>
866                    </chainedmapper>
867                </pathconvert>
868                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
869                <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
870                    <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
871                    <manifest>
872                        <attribute name="Class-Path" value="${jar.classpath}"/>
873                        <customize/>
874                    </manifest>
875                </copylibs>
876            </sequential>
877        </macrodef>
878    </target>
879    <target name="-init-presetdef-jar">
880        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
881            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
882                <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
883            </jar>
884        </presetdef>
885    </target>
886    <target name="-init-ap-cmdline-properties">
887        <property name="annotation.processing.enabled" value="true"/>
888        <property name="annotation.processing.processors.list" value=""/>
889        <property name="annotation.processing.processor.options" value=""/>
890        <property name="annotation.processing.run.all.processors" value="true"/>
891        <property name="javac.processorpath" value="${javac.classpath}"/>
892        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
893        <condition property="ap.supported.internal" value="true">
894            <not>
895                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
896            </not>
897        </condition>
898    </target>
899    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
900        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
901            <isfalse value="${annotation.processing.run.all.processors}"/>
902        </condition>
903        <condition else="" property="ap.proc.none.internal" value="-proc:none">
904            <isfalse value="${annotation.processing.enabled}"/>
905        </condition>
906    </target>
907    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
908        <property name="ap.cmd.line.internal" value=""/>
909    </target>
910    <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
911    <!--
912                ===================
913                COMPILATION SECTION
914                ===================
915            -->
916    <target name="-deps-jar-init" unless="built-jar.properties">
917        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
918        <delete file="${built-jar.properties}" quiet="true"/>
919    </target>
920    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
921        <echo level="warn" message="Cycle detected: ExtendLDS was already built"/>
922    </target>
923    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
924        <mkdir dir="${build.dir}"/>
925        <touch file="${built-jar.properties}" verbose="false"/>
926        <property file="${built-jar.properties}" prefix="already.built.jar."/>
927        <antcall target="-warn-already-built-jar"/>
928        <propertyfile file="${built-jar.properties}">
929            <entry key="${basedir}" value=""/>
930        </propertyfile>
931    </target>
932    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
933    <target depends="init" name="-check-automatic-build">
934        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
935    </target>
936    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
937        <antcall target="clean"/>
938    </target>
939    <target depends="init,deps-jar" name="-pre-pre-compile">
940        <mkdir dir="${build.classes.dir}"/>
941    </target>
942    <target name="-pre-compile">
943        <!-- Empty placeholder for easier customization. -->
944        <!-- You can override this target in the ../build.xml file. -->
945    </target>
946    <target if="do.depend.true" name="-compile-depend">
947        <pathconvert property="build.generated.subdirs">
948            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
949                <include name="*"/>
950            </dirset>
951        </pathconvert>
952        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
953    </target>
954    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
955        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
956        <copy todir="${build.classes.dir}">
957            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
958        </copy>
959    </target>
960    <target if="has.persistence.xml" name="-copy-persistence-xml">
961        <mkdir dir="${build.classes.dir}/META-INF"/>
962        <copy todir="${build.classes.dir}/META-INF">
963            <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
964        </copy>
965    </target>
966    <target name="-post-compile">
967        <!-- Empty placeholder for easier customization. -->
968        <!-- You can override this target in the ../build.xml file. -->
969    </target>
970    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
971    <target name="-pre-compile-single">
972        <!-- Empty placeholder for easier customization. -->
973        <!-- You can override this target in the ../build.xml file. -->
974    </target>
975    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
976        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
977        <j2seproject3:force-recompile/>
978        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
979    </target>
980    <target name="-post-compile-single">
981        <!-- Empty placeholder for easier customization. -->
982        <!-- You can override this target in the ../build.xml file. -->
983    </target>
984    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
985    <!--
986                ====================
987                JAR BUILDING SECTION
988                ====================
989            -->
990    <target depends="init" name="-pre-pre-jar">
991        <dirname file="${dist.jar}" property="dist.jar.dir"/>
992        <mkdir dir="${dist.jar.dir}"/>
993    </target>
994    <target name="-pre-jar">
995        <!-- Empty placeholder for easier customization. -->
996        <!-- You can override this target in the ../build.xml file. -->
997    </target>
998    <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
999        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
1000        <touch file="${tmp.manifest.file}" verbose="false"/>
1001    </target>
1002    <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
1003        <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
1004        <copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
1005    </target>
1006    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
1007        <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
1008            <attribute name="Main-Class" value="${main.class}"/>
1009        </manifest>
1010    </target>
1011    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
1012        <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
1013            <attribute name="Profile" value="${javac.profile}"/>
1014        </manifest>
1015    </target>
1016    <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
1017        <basename file="${application.splash}" property="splashscreen.basename"/>
1018        <mkdir dir="${build.classes.dir}/META-INF"/>
1019        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
1020        <manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
1021            <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
1022        </manifest>
1023    </target>
1024    <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">
1025        <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
1026        <echo level="info">To run this application from the command line without Ant, try:</echo>
1027        <property location="${dist.jar}" name="dist.jar.resolved"/>
1028        <echo level="info">java -jar "${dist.jar.resolved}"</echo>
1029    </target>
1030    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
1031        <j2seproject1:jar manifest="${tmp.manifest.file}"/>
1032        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1033        <property location="${dist.jar}" name="dist.jar.resolved"/>
1034        <pathconvert property="run.classpath.with.dist.jar">
1035            <path path="${run.classpath}"/>
1036            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1037        </pathconvert>
1038        <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">
1039            <isset property="main.class.available"/>
1040        </condition>
1041        <condition else="debug" property="jar.usage.level" value="info">
1042            <isset property="main.class.available"/>
1043        </condition>
1044        <echo level="${jar.usage.level}" message="${jar.usage.message}"/>
1045    </target>
1046    <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
1047        <delete>
1048            <fileset file="${tmp.manifest.file}"/>
1049        </delete>
1050    </target>
1051    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
1052    <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
1053    <target name="-post-jar">
1054        <!-- Empty placeholder for easier customization. -->
1055        <!-- You can override this target in the ../build.xml file. -->
1056    </target>
1057    <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
1058    <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>
1059    <!--
1060                =================
1061                EXECUTION SECTION
1062                =================
1063            -->
1064    <target depends="init,compile" description="Run a main class." name="run">
1065        <j2seproject1:java>
1066            <customize>
1067                <arg line="${application.args}"/>
1068            </customize>
1069        </j2seproject1:java>
1070    </target>
1071    <target name="-do-not-recompile">
1072        <property name="javac.includes.binary" value=""/>
1073    </target>
1074    <target depends="init,compile-single" name="run-single">
1075        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1076        <j2seproject1:java classname="${run.class}"/>
1077    </target>
1078    <target depends="init,compile-test-single" name="run-test-with-main">
1079        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1080        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
1081    </target>
1082    <!--
1083                =================
1084                DEBUGGING SECTION
1085                =================
1086            -->
1087    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1088        <j2seproject1:nbjpdastart name="${debug.class}"/>
1089    </target>
1090    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
1091        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
1092    </target>
1093    <target depends="init,compile" name="-debug-start-debuggee">
1094        <j2seproject3:debug>
1095            <customize>
1096                <arg line="${application.args}"/>
1097            </customize>
1098        </j2seproject3:debug>
1099    </target>
1100    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
1101    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
1102        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
1103    </target>
1104    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
1105    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1106        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1107        <j2seproject3:debug classname="${debug.class}"/>
1108    </target>
1109    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
1110    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
1111        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1112        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
1113    </target>
1114    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
1115    <target depends="init" name="-pre-debug-fix">
1116        <fail unless="fix.includes">Must set fix.includes</fail>
1117        <property name="javac.includes" value="${fix.includes}.java"/>
1118    </target>
1119    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1120        <j2seproject1:nbjpdareload/>
1121    </target>
1122    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1123    <!--
1124                =================
1125                PROFILING SECTION
1126                =================
1127            -->
1128    <!--
1129                pre NB7.2 profiler integration
1130            -->
1131    <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1132        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1133        <nbprofiledirect>
1134            <classpath>
1135                <path path="${run.classpath}"/>
1136            </classpath>
1137        </nbprofiledirect>
1138        <profile/>
1139    </target>
1140    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
1141        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
1142        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1143        <nbprofiledirect>
1144            <classpath>
1145                <path path="${run.classpath}"/>
1146            </classpath>
1147        </nbprofiledirect>
1148        <profile classname="${profile.class}"/>
1149    </target>
1150    <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
1151        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1152        <nbprofiledirect>
1153            <classpath>
1154                <path path="${run.classpath}"/>
1155            </classpath>
1156        </nbprofiledirect>
1157        <profile classname="sun.applet.AppletViewer">
1158            <customize>
1159                <arg value="${applet.url}"/>
1160            </customize>
1161        </profile>
1162    </target>
1163    <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1164        <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1165        <nbprofiledirect>
1166            <classpath>
1167                <path path="${run.test.classpath}"/>
1168            </classpath>
1169        </nbprofiledirect>
1170        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1171            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1172            <jvmarg value="${profiler.info.jvmargs.agent}"/>
1173            <jvmarg line="${profiler.info.jvmargs}"/>
1174            <test name="${profile.class}"/>
1175            <classpath>
1176                <path path="${run.test.classpath}"/>
1177            </classpath>
1178            <syspropertyset>
1179                <propertyref prefix="test-sys-prop."/>
1180                <mapper from="test-sys-prop.*" to="*" type="glob"/>
1181            </syspropertyset>
1182            <formatter type="brief" usefile="false"/>
1183            <formatter type="xml"/>
1184        </junit>
1185    </target>
1186    <!--
1187                end of pre NB72 profiling section
1188            -->
1189    <target if="netbeans.home" name="-profile-check">
1190        <condition property="profiler.configured">
1191            <or>
1192                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1193                <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1194            </or>
1195        </condition>
1196    </target>
1197    <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1198        <startprofiler/>
1199        <antcall target="run"/>
1200    </target>
1201    <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
1202        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1203        <startprofiler/>
1204        <antcall target="run-single"/>
1205    </target>
1206    <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
1207    <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
1208        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1209        <startprofiler/>
1210        <antcall target="test-single"/>
1211    </target>
1212    <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
1213        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1214        <startprofiler/>
1215        <antcall target="run-test-with-main"/>
1216    </target>
1217    <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
1218        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1219        <startprofiler/>
1220        <antcall target="run-applet"/>
1221    </target>
1222    <!--
1223                ===============
1224                JAVADOC SECTION
1225                ===============
1226            -->
1227    <target depends="init" if="have.sources" name="-javadoc-build">
1228        <mkdir dir="${dist.javadoc.dir}"/>
1229        <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
1230            <and>
1231                <isset property="endorsed.classpath.cmd.line.arg"/>
1232                <not>
1233                    <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
1234                </not>
1235            </and>
1236        </condition>
1237        <condition else="" property="bug5101868workaround" value="*.java">
1238            <matches pattern="1\.[56](\..*)?" string="${java.version}"/>
1239        </condition>
1240        <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${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}">
1241            <classpath>
1242                <path path="${javac.classpath}"/>
1243            </classpath>
1244            <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
1245                <filename name="**/*.java"/>
1246            </fileset>
1247            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1248                <include name="**/*.java"/>
1249                <exclude name="*.java"/>
1250            </fileset>
1251            <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
1252        </javadoc>
1253        <copy todir="${dist.javadoc.dir}">
1254            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1255                <filename name="**/doc-files/**"/>
1256            </fileset>
1257            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1258                <include name="**/doc-files/**"/>
1259            </fileset>
1260        </copy>
1261    </target>
1262    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
1263        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1264    </target>
1265    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
1266    <!--
1267                =========================
1268                TEST COMPILATION SECTION
1269                =========================
1270            -->
1271    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1272        <mkdir dir="${build.test.classes.dir}"/>
1273    </target>
1274    <target name="-pre-compile-test">
1275        <!-- Empty placeholder for easier customization. -->
1276        <!-- You can override this target in the ../build.xml file. -->
1277    </target>
1278    <target if="do.depend.true" name="-compile-test-depend">
1279        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1280    </target>
1281    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1282        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
1283        <copy todir="${build.test.classes.dir}">
1284            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1285        </copy>
1286    </target>
1287    <target name="-post-compile-test">
1288        <!-- Empty placeholder for easier customization. -->
1289        <!-- You can override this target in the ../build.xml file. -->
1290    </target>
1291    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1292    <target name="-pre-compile-test-single">
1293        <!-- Empty placeholder for easier customization. -->
1294        <!-- You can override this target in the ../build.xml file. -->
1295    </target>
1296    <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1297        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1298        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
1299        <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="${test.src.dir}" srcdir="${test.src.dir}"/>
1300        <copy todir="${build.test.classes.dir}">
1301            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1302        </copy>
1303    </target>
1304    <target name="-post-compile-test-single">
1305        <!-- Empty placeholder for easier customization. -->
1306        <!-- You can override this target in the ../build.xml file. -->
1307    </target>
1308    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1309    <!--
1310                =======================
1311                TEST EXECUTION SECTION
1312                =======================
1313            -->
1314    <target depends="init" if="have.tests" name="-pre-test-run">
1315        <mkdir dir="${build.test.results.dir}"/>
1316    </target>
1317    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1318        <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
1319    </target>
1320    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1321        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1322    </target>
1323    <target depends="init" if="have.tests" name="test-report"/>
1324    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1325    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1326    <target depends="init" if="have.tests" name="-pre-test-run-single">
1327        <mkdir dir="${build.test.results.dir}"/>
1328    </target>
1329    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1330        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1331        <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1332    </target>
1333    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1334        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1335    </target>
1336    <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"/>
1337    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1338        <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1339        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1340        <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1341    </target>
1342    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1343        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1344    </target>
1345    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
1346    <!--
1347                =======================
1348                TEST DEBUGGING SECTION
1349                =======================
1350            -->
1351    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
1352        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1353        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
1354    </target>
1355    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
1356        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1357        <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1358        <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
1359    </target>
1360    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1361        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1362    </target>
1363    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1364    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1365    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1366        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1367    </target>
1368    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1369    <!--
1370                =========================
1371                APPLET EXECUTION SECTION
1372                =========================
1373            -->
1374    <target depends="init,compile-single" name="run-applet">
1375        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1376        <j2seproject1:java classname="sun.applet.AppletViewer">
1377            <customize>
1378                <arg value="${applet.url}"/>
1379            </customize>
1380        </j2seproject1:java>
1381    </target>
1382    <!--
1383                =========================
1384                APPLET DEBUGGING  SECTION
1385                =========================
1386            -->
1387    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1388        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1389        <j2seproject3:debug classname="sun.applet.AppletViewer">
1390            <customize>
1391                <arg value="${applet.url}"/>
1392            </customize>
1393        </j2seproject3:debug>
1394    </target>
1395    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1396    <!--
1397                ===============
1398                CLEANUP SECTION
1399                ===============
1400            -->
1401    <target name="-deps-clean-init" unless="built-clean.properties">
1402        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1403        <delete file="${built-clean.properties}" quiet="true"/>
1404    </target>
1405    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1406        <echo level="warn" message="Cycle detected: ExtendLDS was already built"/>
1407    </target>
1408    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1409        <mkdir dir="${build.dir}"/>
1410        <touch file="${built-clean.properties}" verbose="false"/>
1411        <property file="${built-clean.properties}" prefix="already.built.clean."/>
1412        <antcall target="-warn-already-built-clean"/>
1413        <propertyfile file="${built-clean.properties}">
1414            <entry key="${basedir}" value=""/>
1415        </propertyfile>
1416    </target>
1417    <target depends="init" name="-do-clean">
1418        <delete dir="${build.dir}"/>
1419        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
1420    </target>
1421    <target name="-post-clean">
1422        <!-- Empty placeholder for easier customization. -->
1423        <!-- You can override this target in the ../build.xml file. -->
1424    </target>
1425    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1426    <target name="-check-call-dep">
1427        <property file="${call.built.properties}" prefix="already.built."/>
1428        <condition property="should.call.dep">
1429            <and>
1430                <not>
1431                    <isset property="already.built.${call.subproject}"/>
1432                </not>
1433                <available file="${call.script}"/>
1434            </and>
1435        </condition>
1436    </target>
1437    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1438        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1439            <propertyset>
1440                <propertyref prefix="transfer."/>
1441                <mapper from="transfer.*" to="*" type="glob"/>
1442            </propertyset>
1443        </ant>
1444    </target>
1445</project>
Note: See TracBrowser for help on using the repository browser.