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