1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 ***********************************************************-->
22<!--
23*** GENERATED FROM project.xml - DO NOT EDIT  ***
24***         EDIT ../build.xml INSTEAD         ***
25
26For the purpose of easier reading the script
27is divided into following sections:
28
29  - initialization
30  - compilation
31  - jar
32  - execution
33  - debugging
34  - javadoc
35  - junit compilation
36  - junit execution
37  - junit debugging
38  - applet
39  - cleanup
40
41        -->
42<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="ConvwatchGUIProject-impl">
43    <fail message="Please build using Ant 1.7.1 or higher.">
44        <condition>
45            <not>
46                <antversion atleast="1.7.1"/>
47            </not>
48        </condition>
49    </fail>
50    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
51    <!--
52                ======================
53                INITIALIZATION SECTION
54                ======================
55            -->
56    <target name="-pre-init">
57        <!-- Empty placeholder for easier customization. -->
58        <!-- You can override this target in the ../build.xml file. -->
59    </target>
60    <target depends="-pre-init" name="-init-private">
61        <property file="nbproject/private/config.properties"/>
62        <property file="nbproject/private/configs/${config}.properties"/>
63        <property file="nbproject/private/private.properties"/>
64    </target>
65    <target depends="-pre-init,-init-private" name="-init-user">
66        <property file="${user.properties.file}"/>
67        <!-- The two properties below are usually overridden -->
68        <!-- by the active platform. Just a fallback. -->
69        <property name="default.javac.source" value="1.4"/>
70        <property name="default.javac.target" value="1.4"/>
71    </target>
72    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
73        <property file="nbproject/configs/${config}.properties"/>
74        <property file="nbproject/project.properties"/>
75    </target>
76    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
77        <available file="${manifest.file}" property="manifest.available"/>
78        <condition property="main.class.available">
79            <and>
80                <isset property="main.class"/>
81                <not>
82                    <equals arg1="${main.class}" arg2="" trim="true"/>
83                </not>
84            </and>
85        </condition>
86        <condition property="manifest.available+main.class">
87            <and>
88                <isset property="manifest.available"/>
89                <isset property="main.class.available"/>
90            </and>
91        </condition>
92        <condition property="do.mkdist">
93            <and>
94                <isset property="libs.CopyLibs.classpath"/>
95                <not>
96                    <istrue value="${mkdist.disabled}"/>
97                </not>
98            </and>
99        </condition>
100        <condition property="manifest.available+main.class+mkdist.available">
101            <and>
102                <istrue value="${manifest.available+main.class}"/>
103                <isset property="do.mkdist"/>
104            </and>
105        </condition>
106        <condition property="manifest.available+mkdist.available">
107            <and>
108                <istrue value="${manifest.available}"/>
109                <isset property="do.mkdist"/>
110            </and>
111        </condition>
112        <condition property="manifest.available-mkdist.available">
113            <or>
114                <istrue value="${manifest.available}"/>
115                <isset property="do.mkdist"/>
116            </or>
117        </condition>
118        <condition property="manifest.available+main.class-mkdist.available">
119            <or>
120                <istrue value="${manifest.available+main.class}"/>
121                <isset property="do.mkdist"/>
122            </or>
123        </condition>
124        <condition property="have.tests">
125            <or>
126                <available file="${test.src.dir}"/>
127            </or>
128        </condition>
129        <condition property="have.sources">
130            <or>
131                <available file="${src.dir}"/>
132            </or>
133        </condition>
134        <condition property="netbeans.home+have.tests">
135            <and>
136                <isset property="netbeans.home"/>
137                <isset property="have.tests"/>
138            </and>
139        </condition>
140        <condition property="no.javadoc.preview">
141            <and>
142                <isset property="javadoc.preview"/>
143                <isfalse value="${javadoc.preview}"/>
144            </and>
145        </condition>
146        <property name="run.jvmargs" value=""/>
147        <property name="javac.compilerargs" value=""/>
148        <property name="work.dir" value="${basedir}"/>
149        <condition property="no.deps">
150            <and>
151                <istrue value="${no.dependencies}"/>
152            </and>
153        </condition>
154        <property name="javac.debug" value="true"/>
155        <property name="javadoc.preview" value="true"/>
156        <property name="application.args" value=""/>
157        <property name="source.encoding" value="${file.encoding}"/>
158        <property name="runtime.encoding" value="${source.encoding}"/>
159        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
160            <and>
161                <isset property="javadoc.encoding"/>
162                <not>
163                    <equals arg1="${javadoc.encoding}" arg2=""/>
164                </not>
165            </and>
166        </condition>
167        <property name="javadoc.encoding.used" value="${source.encoding}"/>
168        <property name="includes" value="**"/>
169        <property name="excludes" value=""/>
170        <property name="do.depend" value="false"/>
171        <condition property="do.depend.true">
172            <istrue value="${do.depend}"/>
173        </condition>
174        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
175        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
176            <length length="0" string="${endorsed.classpath}" when="greater"/>
177        </condition>
178        <property name="javac.fork" value="false"/>
179    </target>
180    <target name="-post-init">
181        <!-- Empty placeholder for easier customization. -->
182        <!-- You can override this target in the ../build.xml file. -->
183    </target>
184    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
185        <fail unless="src.dir">Must set src.dir</fail>
186        <fail unless="test.src.dir">Must set test.src.dir</fail>
187        <fail unless="build.dir">Must set build.dir</fail>
188        <fail unless="dist.dir">Must set dist.dir</fail>
189        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
190        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
191        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
192        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
193        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
194        <fail unless="dist.jar">Must set dist.jar</fail>
195    </target>
196    <target name="-init-macrodef-property">
197        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
198            <attribute name="name"/>
199            <attribute name="value"/>
200            <sequential>
201                <property name="@{name}" value="${@{value}}"/>
202            </sequential>
203        </macrodef>
204    </target>
205    <target name="-init-macrodef-javac">
206        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
207            <attribute default="${src.dir}" name="srcdir"/>
208            <attribute default="${build.classes.dir}" name="destdir"/>
209            <attribute default="${javac.classpath}" name="classpath"/>
210            <attribute default="${includes}" name="includes"/>
211            <attribute default="${excludes}" name="excludes"/>
212            <attribute default="${javac.debug}" name="debug"/>
213            <attribute default="${empty.dir}" name="sourcepath"/>
214            <attribute default="${empty.dir}" name="gensrcdir"/>
215            <element name="customize" optional="true"/>
216            <sequential>
217                <property location="${build.dir}/empty" name="empty.dir"/>
218                <mkdir dir="${empty.dir}"/>
219                <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}">
220                    <src>
221                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
222                            <include name="*"/>
223                        </dirset>
224                    </src>
225                    <classpath>
226                        <path path="@{classpath}"/>
227                    </classpath>
228                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
229                    <compilerarg line="${javac.compilerargs}"/>
230                    <customize/>
231                </javac>
232            </sequential>
233        </macrodef>
234        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
235            <attribute default="${src.dir}" name="srcdir"/>
236            <attribute default="${build.classes.dir}" name="destdir"/>
237            <attribute default="${javac.classpath}" name="classpath"/>
238            <sequential>
239                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
240                    <classpath>
241                        <path path="@{classpath}"/>
242                    </classpath>
243                </depend>
244            </sequential>
245        </macrodef>
246        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
247            <attribute default="${build.classes.dir}" name="destdir"/>
248            <sequential>
249                <fail unless="javac.includes">Must set javac.includes</fail>
250                <pathconvert pathsep="," property="javac.includes.binary">
251                    <path>
252                        <filelist dir="@{destdir}" files="${javac.includes}"/>
253                    </path>
254                    <globmapper from="*.java" to="*.class"/>
255                </pathconvert>
256                <delete>
257                    <files includes="${javac.includes.binary}"/>
258                </delete>
259            </sequential>
260        </macrodef>
261    </target>
262    <target name="-init-macrodef-junit">
263        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
264            <attribute default="${includes}" name="includes"/>
265            <attribute default="${excludes}" name="excludes"/>
266            <attribute default="**" name="testincludes"/>
267            <sequential>
268                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
269                    <batchtest todir="${build.test.results.dir}">
270                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
271                            <filename name="@{testincludes}"/>
272                        </fileset>
273                    </batchtest>
274                    <classpath>
275                        <path path="${run.test.classpath}"/>
276                    </classpath>
277                    <syspropertyset>
278                        <propertyref prefix="test-sys-prop."/>
279                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
280                    </syspropertyset>
281                    <formatter type="brief" usefile="false"/>
282                    <formatter type="xml"/>
283                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
284                    <jvmarg line="${run.jvmargs}"/>
285                </junit>
286            </sequential>
287        </macrodef>
288    </target>
289    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
290        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
291            <attribute default="${main.class}" name="name"/>
292            <attribute default="${debug.classpath}" name="classpath"/>
293            <attribute default="" name="stopclassname"/>
294            <sequential>
295                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
296                    <classpath>
297                        <path path="@{classpath}"/>
298                    </classpath>
299                </nbjpdastart>
300            </sequential>
301        </macrodef>
302        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
303            <attribute default="${build.classes.dir}" name="dir"/>
304            <sequential>
305                <nbjpdareload>
306                    <fileset dir="@{dir}" includes="${fix.classes}">
307                        <include name="${fix.includes}*.class"/>
308                    </fileset>
309                </nbjpdareload>
310            </sequential>
311        </macrodef>
312    </target>
313    <target name="-init-debug-args">
314        <property name="version-output" value="java version &quot;${ant.java.version}"/>
315        <condition property="have-jdk-older-than-1.4">
316            <or>
317                <contains string="${version-output}" substring="java version &quot;1.0"/>
318                <contains string="${version-output}" substring="java version &quot;1.1"/>
319                <contains string="${version-output}" substring="java version &quot;1.2"/>
320                <contains string="${version-output}" substring="java version &quot;1.3"/>
321            </or>
322        </condition>
323        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
324            <istrue value="${have-jdk-older-than-1.4}"/>
325        </condition>
326        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
327            <os family="windows"/>
328        </condition>
329        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
330            <isset property="debug.transport"/>
331        </condition>
332    </target>
333    <target depends="-init-debug-args" name="-init-macrodef-debug">
334        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
335            <attribute default="${main.class}" name="classname"/>
336            <attribute default="${debug.classpath}" name="classpath"/>
337            <element name="customize" optional="true"/>
338            <sequential>
339                <java classname="@{classname}" dir="${work.dir}" fork="true">
340                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
341                    <jvmarg line="${debug-args-line}"/>
342                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
343                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
344                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
345                    <jvmarg line="${run.jvmargs}"/>
346                    <classpath>
347                        <path path="@{classpath}"/>
348                    </classpath>
349                    <syspropertyset>
350                        <propertyref prefix="run-sys-prop."/>
351                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
352                    </syspropertyset>
353                    <customize/>
354                </java>
355            </sequential>
356        </macrodef>
357    </target>
358    <target name="-init-macrodef-java">
359        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
360            <attribute default="${main.class}" name="classname"/>
361            <attribute default="${run.classpath}" name="classpath"/>
362            <element name="customize" optional="true"/>
363            <sequential>
364                <java classname="@{classname}" dir="${work.dir}" fork="true">
365                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
366                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
367                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
368                    <jvmarg line="${run.jvmargs}"/>
369                    <classpath>
370                        <path path="@{classpath}"/>
371                    </classpath>
372                    <syspropertyset>
373                        <propertyref prefix="run-sys-prop."/>
374                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
375                    </syspropertyset>
376                    <customize/>
377                </java>
378            </sequential>
379        </macrodef>
380    </target>
381    <target name="-init-presetdef-jar">
382        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
383            <jar compress="${jar.compress}" jarfile="${dist.jar}">
384                <j2seproject1:fileset dir="${build.classes.dir}"/>
385            </jar>
386        </presetdef>
387    </target>
388    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
389    <!--
390                ===================
391                COMPILATION SECTION
392                ===================
393            -->
394    <target name="-deps-jar-init" unless="built-jar.properties">
395        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
396        <delete file="${built-jar.properties}" quiet="true"/>
397    </target>
398    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
399        <echo level="warn" message="Cycle detected: ConvwatchGUIProject was already built"/>
400    </target>
401    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
402        <mkdir dir="${build.dir}"/>
403        <touch file="${built-jar.properties}" verbose="false"/>
404        <property file="${built-jar.properties}" prefix="already.built.jar."/>
405        <antcall target="-warn-already-built-jar"/>
406        <propertyfile file="${built-jar.properties}">
407            <entry key="${basedir}" value=""/>
408        </propertyfile>
409    </target>
410    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
411    <target depends="init" name="-check-automatic-build">
412        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
413    </target>
414    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
415        <antcall target="clean"/>
416    </target>
417    <target depends="init,deps-jar" name="-pre-pre-compile">
418        <mkdir dir="${build.classes.dir}"/>
419    </target>
420    <target name="-pre-compile">
421        <!-- Empty placeholder for easier customization. -->
422        <!-- You can override this target in the ../build.xml file. -->
423    </target>
424    <target if="do.depend.true" name="-compile-depend">
425        <pathconvert property="build.generated.subdirs">
426            <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
427                <include name="*"/>
428            </dirset>
429        </pathconvert>
430        <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
431    </target>
432    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
433        <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
434        <copy todir="${build.classes.dir}">
435            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
436        </copy>
437    </target>
438    <target name="-post-compile">
439        <!-- Empty placeholder for easier customization. -->
440        <!-- You can override this target in the ../build.xml file. -->
441    </target>
442    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
443    <target name="-pre-compile-single">
444        <!-- Empty placeholder for easier customization. -->
445        <!-- You can override this target in the ../build.xml file. -->
446    </target>
447    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
448        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
449        <j2seproject3:force-recompile/>
450        <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
451    </target>
452    <target name="-post-compile-single">
453        <!-- Empty placeholder for easier customization. -->
454        <!-- You can override this target in the ../build.xml file. -->
455    </target>
456    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
457    <!--
458                ====================
459                JAR BUILDING SECTION
460                ====================
461            -->
462    <target depends="init" name="-pre-pre-jar">
463        <dirname file="${dist.jar}" property="dist.jar.dir"/>
464        <mkdir dir="${dist.jar.dir}"/>
465    </target>
466    <target name="-pre-jar">
467        <!-- Empty placeholder for easier customization. -->
468        <!-- You can override this target in the ../build.xml file. -->
469    </target>
470    <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
471        <j2seproject1:jar/>
472    </target>
473    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
474        <j2seproject1:jar manifest="${manifest.file}"/>
475    </target>
476    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
477        <j2seproject1:jar manifest="${manifest.file}">
478            <j2seproject1:manifest>
479                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
480            </j2seproject1:manifest>
481        </j2seproject1:jar>
482        <echo>To run this application from the command line without Ant, try:</echo>
483        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
484        <property location="${dist.jar}" name="dist.jar.resolved"/>
485        <pathconvert property="run.classpath.with.dist.jar">
486            <path path="${run.classpath}"/>
487            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
488        </pathconvert>
489        <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
490    </target>
491    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
492        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
493        <pathconvert property="run.classpath.without.build.classes.dir">
494            <path path="${run.classpath}"/>
495            <map from="${build.classes.dir.resolved}" to=""/>
496        </pathconvert>
497        <pathconvert pathsep=" " property="jar.classpath">
498            <path path="${run.classpath.without.build.classes.dir}"/>
499            <chainedmapper>
500                <flattenmapper/>
501                <globmapper from="*" to="lib/*"/>
502            </chainedmapper>
503        </pathconvert>
504        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
505        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
506            <fileset dir="${build.classes.dir}"/>
507            <manifest>
508                <attribute name="Main-Class" value="${main.class}"/>
509                <attribute name="Class-Path" value="${jar.classpath}"/>
510            </manifest>
511        </copylibs>
512        <echo>To run this application from the command line without Ant, try:</echo>
513        <property location="${dist.jar}" name="dist.jar.resolved"/>
514        <echo>java -jar "${dist.jar.resolved}"</echo>
515    </target>
516    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+mkdist.available" name="-do-jar-with-libraries-without-mainclass" unless="main.class.available">
517        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
518        <pathconvert property="run.classpath.without.build.classes.dir">
519            <path path="${run.classpath}"/>
520            <map from="${build.classes.dir.resolved}" to=""/>
521        </pathconvert>
522        <pathconvert pathsep=" " property="jar.classpath">
523            <path path="${run.classpath.without.build.classes.dir}"/>
524            <chainedmapper>
525                <flattenmapper/>
526                <globmapper from="*" to="lib/*"/>
527            </chainedmapper>
528        </pathconvert>
529        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
530        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
531            <fileset dir="${build.classes.dir}"/>
532            <manifest>
533                <attribute name="Class-Path" value="${jar.classpath}"/>
534            </manifest>
535        </copylibs>
536    </target>
537    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.mkdist" name="-do-jar-with-libraries-without-manifest" unless="manifest.available">
538        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
539        <pathconvert property="run.classpath.without.build.classes.dir">
540            <path path="${run.classpath}"/>
541            <map from="${build.classes.dir.resolved}" to=""/>
542        </pathconvert>
543        <pathconvert pathsep=" " property="jar.classpath">
544            <path path="${run.classpath.without.build.classes.dir}"/>
545            <chainedmapper>
546                <flattenmapper/>
547                <globmapper from="*" to="lib/*"/>
548            </chainedmapper>
549        </pathconvert>
550        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
551        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
552            <fileset dir="${build.classes.dir}"/>
553            <manifest>
554                <attribute name="Class-Path" value="${jar.classpath}"/>
555            </manifest>
556        </copylibs>
557    </target>
558    <target name="-post-jar">
559        <!-- Empty placeholder for easier customization. -->
560        <!-- You can override this target in the ../build.xml file. -->
561    </target>
562    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-mainclass,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/>
563    <!--
564                =================
565                EXECUTION SECTION
566                =================
567            -->
568    <target depends="init,compile" description="Run a main class." name="run">
569        <j2seproject1:java>
570            <customize>
571                <arg line="${application.args}"/>
572            </customize>
573        </j2seproject1:java>
574    </target>
575    <target name="-do-not-recompile">
576        <property name="javac.includes.binary" value=""/>
577    </target>
578    <target depends="init,compile-single" name="run-single">
579        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
580        <j2seproject1:java classname="${run.class}"/>
581    </target>
582    <target depends="init,compile-test-single" name="run-test-with-main">
583        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
584        <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
585    </target>
586    <!--
587                =================
588                DEBUGGING SECTION
589                =================
590            -->
591    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
592        <j2seproject1:nbjpdastart name="${debug.class}"/>
593    </target>
594    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
595        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
596    </target>
597    <target depends="init,compile" name="-debug-start-debuggee">
598        <j2seproject3:debug>
599            <customize>
600                <arg line="${application.args}"/>
601            </customize>
602        </j2seproject3:debug>
603    </target>
604    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
605    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
606        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
607    </target>
608    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
609    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
610        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
611        <j2seproject3:debug classname="${debug.class}"/>
612    </target>
613    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
614    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
615        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
616        <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
617    </target>
618    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
619    <target depends="init" name="-pre-debug-fix">
620        <fail unless="fix.includes">Must set fix.includes</fail>
621        <property name="javac.includes" value="${fix.includes}.java"/>
622    </target>
623    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
624        <j2seproject1:nbjpdareload/>
625    </target>
626    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
627    <!--
628                ===============
629                JAVADOC SECTION
630                ===============
631            -->
632    <target depends="init" name="-javadoc-build">
633        <mkdir dir="${dist.javadoc.dir}"/>
634        <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}">
635            <classpath>
636                <path path="${javac.classpath}"/>
637            </classpath>
638            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
639                <filename name="**/*.java"/>
640            </fileset>
641            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
642                <include name="**/*.java"/>
643            </fileset>
644        </javadoc>
645    </target>
646    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
647        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
648    </target>
649    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
650    <!--
651                =========================
652                JUNIT COMPILATION SECTION
653                =========================
654            -->
655    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
656        <mkdir dir="${build.test.classes.dir}"/>
657    </target>
658    <target name="-pre-compile-test">
659        <!-- Empty placeholder for easier customization. -->
660        <!-- You can override this target in the ../build.xml file. -->
661    </target>
662    <target if="do.depend.true" name="-compile-test-depend">
663        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
664    </target>
665    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
666        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
667        <copy todir="${build.test.classes.dir}">
668            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
669        </copy>
670    </target>
671    <target name="-post-compile-test">
672        <!-- Empty placeholder for easier customization. -->
673        <!-- You can override this target in the ../build.xml file. -->
674    </target>
675    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
676    <target name="-pre-compile-test-single">
677        <!-- Empty placeholder for easier customization. -->
678        <!-- You can override this target in the ../build.xml file. -->
679    </target>
680    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
681        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
682        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
683        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
684        <copy todir="${build.test.classes.dir}">
685            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
686        </copy>
687    </target>
688    <target name="-post-compile-test-single">
689        <!-- Empty placeholder for easier customization. -->
690        <!-- You can override this target in the ../build.xml file. -->
691    </target>
692    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
693    <!--
694                =======================
695                JUNIT EXECUTION SECTION
696                =======================
697            -->
698    <target depends="init" if="have.tests" name="-pre-test-run">
699        <mkdir dir="${build.test.results.dir}"/>
700    </target>
701    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
702        <j2seproject3:junit testincludes="**/*Test.java"/>
703    </target>
704    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
705        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
706    </target>
707    <target depends="init" if="have.tests" name="test-report"/>
708    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
709    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
710    <target depends="init" if="have.tests" name="-pre-test-run-single">
711        <mkdir dir="${build.test.results.dir}"/>
712    </target>
713    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
714        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
715        <j2seproject3:junit excludes="" includes="${test.includes}"/>
716    </target>
717    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
718        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
719    </target>
720    <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"/>
721    <!--
722                =======================
723                JUNIT DEBUGGING SECTION
724                =======================
725            -->
726    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
727        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
728        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
729        <delete file="${test.report.file}"/>
730        <mkdir dir="${build.test.results.dir}"/>
731        <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
732            <customize>
733                <syspropertyset>
734                    <propertyref prefix="test-sys-prop."/>
735                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
736                </syspropertyset>
737                <arg value="${test.class}"/>
738                <arg value="showoutput=true"/>
739                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
740                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
741            </customize>
742        </j2seproject3:debug>
743    </target>
744    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
745        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
746    </target>
747    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
748    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
749        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
750    </target>
751    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
752    <!--
753                =========================
754                APPLET EXECUTION SECTION
755                =========================
756            -->
757    <target depends="init,compile-single" name="run-applet">
758        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
759        <j2seproject1:java classname="sun.applet.AppletViewer">
760            <customize>
761                <arg value="${applet.url}"/>
762            </customize>
763        </j2seproject1:java>
764    </target>
765    <!--
766                =========================
767                APPLET DEBUGGING  SECTION
768                =========================
769            -->
770    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
771        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
772        <j2seproject3:debug classname="sun.applet.AppletViewer">
773            <customize>
774                <arg value="${applet.url}"/>
775            </customize>
776        </j2seproject3:debug>
777    </target>
778    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
779    <!--
780                ===============
781                CLEANUP SECTION
782                ===============
783            -->
784    <target name="-deps-clean-init" unless="built-clean.properties">
785        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
786        <delete file="${built-clean.properties}" quiet="true"/>
787    </target>
788    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
789        <echo level="warn" message="Cycle detected: ConvwatchGUIProject was already built"/>
790    </target>
791    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
792        <mkdir dir="${build.dir}"/>
793        <touch file="${built-clean.properties}" verbose="false"/>
794        <property file="${built-clean.properties}" prefix="already.built.clean."/>
795        <antcall target="-warn-already-built-clean"/>
796        <propertyfile file="${built-clean.properties}">
797            <entry key="${basedir}" value=""/>
798        </propertyfile>
799    </target>
800    <target depends="init" name="-do-clean">
801        <delete dir="${build.dir}"/>
802        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
803    </target>
804    <target name="-post-clean">
805        <!-- Empty placeholder for easier customization. -->
806        <!-- You can override this target in the ../build.xml file. -->
807    </target>
808    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
809    <target name="-check-call-dep">
810        <property file="${call.built.properties}" prefix="already.built."/>
811        <condition property="should.call.dep">
812            <not>
813                <isset property="already.built.${call.subproject}"/>
814            </not>
815        </condition>
816    </target>
817    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
818        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
819            <propertyset>
820                <propertyref prefix="transfer."/>
821                <mapper from="transfer.*" to="*" type="glob"/>
822            </propertyset>
823        </ant>
824    </target>
825</project>
826