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