source: branches/irods-mockup/nbproject/build-impl.xml @ 247

Revision 247, 74.9 KB checked in by bartek, 11 years ago (diff)

copy for create the irods mockup

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