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