task1/solution10/nbproject/build-impl.xml
changeset 6 97662396c0fd
child 7 ac8f5d2832db
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/task1/solution10/nbproject/build-impl.xml	Sun Sep 28 14:12:38 2008 +0200
     1.3 @@ -0,0 +1,684 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!--
     1.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
     1.7 +***         EDIT ../build.xml INSTEAD         ***
     1.8 +
     1.9 +For the purpose of easier reading the script
    1.10 +is divided into following sections:
    1.11 +
    1.12 +  - initialization
    1.13 +  - compilation
    1.14 +  - jar
    1.15 +  - execution
    1.16 +  - debugging
    1.17 +  - javadoc
    1.18 +  - junit compilation
    1.19 +  - junit execution
    1.20 +  - junit debugging
    1.21 +  - applet
    1.22 +  - cleanup
    1.23 +
    1.24 +        -->
    1.25 +<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="Currency_Convertor_Solution_10-impl">
    1.26 +    <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
    1.27 +    <!-- 
    1.28 +                ======================
    1.29 +                INITIALIZATION SECTION 
    1.30 +                ======================
    1.31 +            -->
    1.32 +    <target name="-pre-init">
    1.33 +        <!-- Empty placeholder for easier customization. -->
    1.34 +        <!-- You can override this target in the ../build.xml file. -->
    1.35 +    </target>
    1.36 +    <target depends="-pre-init" name="-init-private">
    1.37 +        <property file="nbproject/private/config.properties"/>
    1.38 +        <property file="nbproject/private/configs/${config}.properties"/>
    1.39 +        <property file="nbproject/private/private.properties"/>
    1.40 +    </target>
    1.41 +    <target depends="-pre-init,-init-private" name="-init-user">
    1.42 +        <property file="${user.properties.file}"/>
    1.43 +        <!-- The two properties below are usually overridden -->
    1.44 +        <!-- by the active platform. Just a fallback. -->
    1.45 +        <property name="default.javac.source" value="1.4"/>
    1.46 +        <property name="default.javac.target" value="1.4"/>
    1.47 +    </target>
    1.48 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    1.49 +        <property file="nbproject/configs/${config}.properties"/>
    1.50 +        <property file="nbproject/project.properties"/>
    1.51 +    </target>
    1.52 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    1.53 +        <j2seproject1:property name="platform.home" value="platforms.${platform.active}.home"/>
    1.54 +        <j2seproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/>
    1.55 +        <j2seproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/>
    1.56 +        <j2seproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/>
    1.57 +        <condition property="platform.javac" value="${platform.home}/bin/javac">
    1.58 +            <equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/>
    1.59 +        </condition>
    1.60 +        <property name="platform.javac" value="${platform.javac.tmp}"/>
    1.61 +        <j2seproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/>
    1.62 +        <condition property="platform.java" value="${platform.home}/bin/java">
    1.63 +            <equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/>
    1.64 +        </condition>
    1.65 +        <property name="platform.java" value="${platform.java.tmp}"/>
    1.66 +        <j2seproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/>
    1.67 +        <condition property="platform.javadoc" value="${platform.home}/bin/javadoc">
    1.68 +            <equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/>
    1.69 +        </condition>
    1.70 +        <property name="platform.javadoc" value="${platform.javadoc.tmp}"/>
    1.71 +        <condition property="platform.invalid" value="true">
    1.72 +            <or>
    1.73 +                <contains string="${platform.javac}" substring="$${platforms."/>
    1.74 +                <contains string="${platform.java}" substring="$${platforms."/>
    1.75 +                <contains string="${platform.javadoc}" substring="$${platforms."/>
    1.76 +            </or>
    1.77 +        </condition>
    1.78 +        <fail unless="platform.home">Must set platform.home</fail>
    1.79 +        <fail unless="platform.bootcp">Must set platform.bootcp</fail>
    1.80 +        <fail unless="platform.java">Must set platform.java</fail>
    1.81 +        <fail unless="platform.javac">Must set platform.javac</fail>
    1.82 +        <fail if="platform.invalid">
    1.83 + The J2SE Platform is not correctly set up.
    1.84 + Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. 
    1.85 + Either open the project in the IDE and setup the Platform with the same name or add it manually.
    1.86 + For example like this:
    1.87 +     ant -Duser.properties.file=&lt;path_to_property_file&gt; jar (where you put the property "platforms.${platform.active}.home" in a .properties file)
    1.88 +  or ant -Dplatforms.${platform.active}.home=&lt;path_to_JDK_home&gt; jar (where no properties file is used) 
    1.89 +  </fail>
    1.90 +        <available file="${manifest.file}" property="manifest.available"/>
    1.91 +        <condition property="manifest.available+main.class">
    1.92 +            <and>
    1.93 +                <isset property="manifest.available"/>
    1.94 +                <isset property="main.class"/>
    1.95 +                <not>
    1.96 +                    <equals arg1="${main.class}" arg2="" trim="true"/>
    1.97 +                </not>
    1.98 +            </and>
    1.99 +        </condition>
   1.100 +        <condition property="manifest.available+main.class+mkdist.available">
   1.101 +            <and>
   1.102 +                <istrue value="${manifest.available+main.class}"/>
   1.103 +                <isset property="libs.CopyLibs.classpath"/>
   1.104 +            </and>
   1.105 +        </condition>
   1.106 +        <condition property="have.tests">
   1.107 +            <or>
   1.108 +                <available file="${test.src.dir}"/>
   1.109 +            </or>
   1.110 +        </condition>
   1.111 +        <condition property="have.sources">
   1.112 +            <or>
   1.113 +                <available file="${src.dir}"/>
   1.114 +            </or>
   1.115 +        </condition>
   1.116 +        <condition property="netbeans.home+have.tests">
   1.117 +            <and>
   1.118 +                <isset property="netbeans.home"/>
   1.119 +                <isset property="have.tests"/>
   1.120 +            </and>
   1.121 +        </condition>
   1.122 +        <condition property="no.javadoc.preview">
   1.123 +            <and>
   1.124 +                <isset property="javadoc.preview"/>
   1.125 +                <isfalse value="${javadoc.preview}"/>
   1.126 +            </and>
   1.127 +        </condition>
   1.128 +        <property name="run.jvmargs" value=""/>
   1.129 +        <property name="javac.compilerargs" value=""/>
   1.130 +        <property name="work.dir" value="${basedir}"/>
   1.131 +        <condition property="no.deps">
   1.132 +            <and>
   1.133 +                <istrue value="${no.dependencies}"/>
   1.134 +            </and>
   1.135 +        </condition>
   1.136 +        <property name="javac.debug" value="true"/>
   1.137 +        <property name="javadoc.preview" value="true"/>
   1.138 +        <property name="application.args" value=""/>
   1.139 +        <property name="source.encoding" value="${file.encoding}"/>
   1.140 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   1.141 +            <and>
   1.142 +                <isset property="javadoc.encoding"/>
   1.143 +                <not>
   1.144 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
   1.145 +                </not>
   1.146 +            </and>
   1.147 +        </condition>
   1.148 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   1.149 +        <property name="includes" value="**"/>
   1.150 +        <property name="excludes" value=""/>
   1.151 +        <property name="do.depend" value="false"/>
   1.152 +        <condition property="do.depend.true">
   1.153 +            <istrue value="${do.depend}"/>
   1.154 +        </condition>
   1.155 +        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
   1.156 +            <and>
   1.157 +                <isset property="jaxws.endorsed.dir"/>
   1.158 +                <available file="nbproject/jaxws-build.xml"/>
   1.159 +            </and>
   1.160 +        </condition>
   1.161 +    </target>
   1.162 +    <target name="-post-init">
   1.163 +        <!-- Empty placeholder for easier customization. -->
   1.164 +        <!-- You can override this target in the ../build.xml file. -->
   1.165 +    </target>
   1.166 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   1.167 +        <fail unless="src.dir">Must set src.dir</fail>
   1.168 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
   1.169 +        <fail unless="build.dir">Must set build.dir</fail>
   1.170 +        <fail unless="dist.dir">Must set dist.dir</fail>
   1.171 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   1.172 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   1.173 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   1.174 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   1.175 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   1.176 +        <fail unless="dist.jar">Must set dist.jar</fail>
   1.177 +    </target>
   1.178 +    <target name="-init-macrodef-property">
   1.179 +        <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
   1.180 +            <attribute name="name"/>
   1.181 +            <attribute name="value"/>
   1.182 +            <sequential>
   1.183 +                <property name="@{name}" value="${@{value}}"/>
   1.184 +            </sequential>
   1.185 +        </macrodef>
   1.186 +    </target>
   1.187 +    <target name="-init-macrodef-javac">
   1.188 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
   1.189 +            <attribute default="${src.dir}" name="srcdir"/>
   1.190 +            <attribute default="${build.classes.dir}" name="destdir"/>
   1.191 +            <attribute default="${javac.classpath}" name="classpath"/>
   1.192 +            <attribute default="${includes}" name="includes"/>
   1.193 +            <attribute default="${excludes}" name="excludes"/>
   1.194 +            <attribute default="${javac.debug}" name="debug"/>
   1.195 +            <attribute default="" name="sourcepath"/>
   1.196 +            <element name="customize" optional="true"/>
   1.197 +            <sequential>
   1.198 +                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
   1.199 +                    <classpath>
   1.200 +                        <path path="@{classpath}"/>
   1.201 +                    </classpath>
   1.202 +                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
   1.203 +                    <customize/>
   1.204 +                </javac>
   1.205 +            </sequential>
   1.206 +        </macrodef>
   1.207 +        <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
   1.208 +            <attribute default="${src.dir}" name="srcdir"/>
   1.209 +            <attribute default="${build.classes.dir}" name="destdir"/>
   1.210 +            <attribute default="${javac.classpath}" name="classpath"/>
   1.211 +            <sequential>
   1.212 +                <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
   1.213 +                    <classpath>
   1.214 +                        <path path="@{classpath}"/>
   1.215 +                    </classpath>
   1.216 +                </depend>
   1.217 +            </sequential>
   1.218 +        </macrodef>
   1.219 +        <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
   1.220 +            <attribute default="${build.classes.dir}" name="destdir"/>
   1.221 +            <sequential>
   1.222 +                <fail unless="javac.includes">Must set javac.includes</fail>
   1.223 +                <pathconvert pathsep="," property="javac.includes.binary">
   1.224 +                    <path>
   1.225 +                        <filelist dir="@{destdir}" files="${javac.includes}"/>
   1.226 +                    </path>
   1.227 +                    <globmapper from="*.java" to="*.class"/>
   1.228 +                </pathconvert>
   1.229 +                <delete>
   1.230 +                    <files includes="${javac.includes.binary}"/>
   1.231 +                </delete>
   1.232 +            </sequential>
   1.233 +        </macrodef>
   1.234 +    </target>
   1.235 +    <target name="-init-macrodef-junit">
   1.236 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
   1.237 +            <attribute default="${includes}" name="includes"/>
   1.238 +            <attribute default="${excludes}" name="excludes"/>
   1.239 +            <attribute default="**" name="testincludes"/>
   1.240 +            <sequential>
   1.241 +                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true">
   1.242 +                    <batchtest todir="${build.test.results.dir}">
   1.243 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   1.244 +                            <filename name="@{testincludes}"/>
   1.245 +                        </fileset>
   1.246 +                    </batchtest>
   1.247 +                    <classpath>
   1.248 +                        <path path="${run.test.classpath}"/>
   1.249 +                    </classpath>
   1.250 +                    <syspropertyset>
   1.251 +                        <propertyref prefix="test-sys-prop."/>
   1.252 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   1.253 +                    </syspropertyset>
   1.254 +                    <formatter type="brief" usefile="false"/>
   1.255 +                    <formatter type="xml"/>
   1.256 +                    <jvmarg line="${run.jvmargs}"/>
   1.257 +                </junit>
   1.258 +            </sequential>
   1.259 +        </macrodef>
   1.260 +    </target>
   1.261 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   1.262 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
   1.263 +            <attribute default="${main.class}" name="name"/>
   1.264 +            <attribute default="${debug.classpath}" name="classpath"/>
   1.265 +            <attribute default="" name="stopclassname"/>
   1.266 +            <sequential>
   1.267 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
   1.268 +                    <classpath>
   1.269 +                        <path path="@{classpath}"/>
   1.270 +                    </classpath>
   1.271 +                    <bootclasspath>
   1.272 +                        <path path="${platform.bootcp}"/>
   1.273 +                    </bootclasspath>
   1.274 +                </nbjpdastart>
   1.275 +            </sequential>
   1.276 +        </macrodef>
   1.277 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
   1.278 +            <attribute default="${build.classes.dir}" name="dir"/>
   1.279 +            <sequential>
   1.280 +                <nbjpdareload>
   1.281 +                    <fileset dir="@{dir}" includes="${fix.classes}">
   1.282 +                        <include name="${fix.includes}*.class"/>
   1.283 +                    </fileset>
   1.284 +                </nbjpdareload>
   1.285 +            </sequential>
   1.286 +        </macrodef>
   1.287 +    </target>
   1.288 +    <target name="-init-debug-args">
   1.289 +        <exec executable="${platform.java}" outputproperty="version-output">
   1.290 +            <arg value="-version"/>
   1.291 +        </exec>
   1.292 +        <condition property="have-jdk-older-than-1.4">
   1.293 +            <or>
   1.294 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   1.295 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   1.296 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   1.297 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   1.298 +            </or>
   1.299 +        </condition>
   1.300 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   1.301 +            <istrue value="${have-jdk-older-than-1.4}"/>
   1.302 +        </condition>
   1.303 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   1.304 +            <os family="windows"/>
   1.305 +        </condition>
   1.306 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   1.307 +            <isset property="debug.transport"/>
   1.308 +        </condition>
   1.309 +    </target>
   1.310 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
   1.311 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
   1.312 +            <attribute default="${main.class}" name="classname"/>
   1.313 +            <attribute default="${debug.classpath}" name="classpath"/>
   1.314 +            <element name="customize" optional="true"/>
   1.315 +            <sequential>
   1.316 +                <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}">
   1.317 +                    <jvmarg line="${debug-args-line}"/>
   1.318 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   1.319 +                    <jvmarg line="${run.jvmargs}"/>
   1.320 +                    <classpath>
   1.321 +                        <path path="@{classpath}"/>
   1.322 +                    </classpath>
   1.323 +                    <syspropertyset>
   1.324 +                        <propertyref prefix="run-sys-prop."/>
   1.325 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   1.326 +                    </syspropertyset>
   1.327 +                    <customize/>
   1.328 +                </java>
   1.329 +            </sequential>
   1.330 +        </macrodef>
   1.331 +    </target>
   1.332 +    <target name="-init-macrodef-java">
   1.333 +        <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
   1.334 +            <attribute default="${main.class}" name="classname"/>
   1.335 +            <element name="customize" optional="true"/>
   1.336 +            <sequential>
   1.337 +                <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}">
   1.338 +                    <jvmarg line="${run.jvmargs}"/>
   1.339 +                    <classpath>
   1.340 +                        <path path="${run.classpath}"/>
   1.341 +                    </classpath>
   1.342 +                    <syspropertyset>
   1.343 +                        <propertyref prefix="run-sys-prop."/>
   1.344 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   1.345 +                    </syspropertyset>
   1.346 +                    <customize/>
   1.347 +                </java>
   1.348 +            </sequential>
   1.349 +        </macrodef>
   1.350 +    </target>
   1.351 +    <target name="-init-presetdef-jar">
   1.352 +        <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
   1.353 +            <jar compress="${jar.compress}" jarfile="${dist.jar}">
   1.354 +                <j2seproject1:fileset dir="${build.classes.dir}"/>
   1.355 +            </jar>
   1.356 +        </presetdef>
   1.357 +    </target>
   1.358 +    <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"/>
   1.359 +    <!--
   1.360 +                ===================
   1.361 +                COMPILATION SECTION
   1.362 +                ===================
   1.363 +            -->
   1.364 +    <target depends="init" name="deps-jar" unless="no.deps"/>
   1.365 +    <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
   1.366 +    <target depends="init" name="-check-automatic-build">
   1.367 +        <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
   1.368 +    </target>
   1.369 +    <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
   1.370 +        <antcall target="clean"/>
   1.371 +    </target>
   1.372 +    <target depends="init,deps-jar" name="-pre-pre-compile">
   1.373 +        <mkdir dir="${build.classes.dir}"/>
   1.374 +    </target>
   1.375 +    <target name="-pre-compile">
   1.376 +        <!-- Empty placeholder for easier customization. -->
   1.377 +        <!-- You can override this target in the ../build.xml file. -->
   1.378 +    </target>
   1.379 +    <target if="do.depend.true" name="-compile-depend">
   1.380 +        <j2seproject3:depend/>
   1.381 +    </target>
   1.382 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
   1.383 +        <j2seproject3:javac/>
   1.384 +        <copy todir="${build.classes.dir}">
   1.385 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   1.386 +        </copy>
   1.387 +    </target>
   1.388 +    <target name="-post-compile">
   1.389 +        <!-- Empty placeholder for easier customization. -->
   1.390 +        <!-- You can override this target in the ../build.xml file. -->
   1.391 +    </target>
   1.392 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   1.393 +    <target name="-pre-compile-single">
   1.394 +        <!-- Empty placeholder for easier customization. -->
   1.395 +        <!-- You can override this target in the ../build.xml file. -->
   1.396 +    </target>
   1.397 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   1.398 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   1.399 +        <j2seproject3:force-recompile/>
   1.400 +        <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
   1.401 +    </target>
   1.402 +    <target name="-post-compile-single">
   1.403 +        <!-- Empty placeholder for easier customization. -->
   1.404 +        <!-- You can override this target in the ../build.xml file. -->
   1.405 +    </target>
   1.406 +    <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   1.407 +    <!--
   1.408 +                ====================
   1.409 +                JAR BUILDING SECTION
   1.410 +                ====================
   1.411 +            -->
   1.412 +    <target depends="init" name="-pre-pre-jar">
   1.413 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.414 +        <mkdir dir="${dist.jar.dir}"/>
   1.415 +    </target>
   1.416 +    <target name="-pre-jar">
   1.417 +        <!-- Empty placeholder for easier customization. -->
   1.418 +        <!-- You can override this target in the ../build.xml file. -->
   1.419 +    </target>
   1.420 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
   1.421 +        <j2seproject1:jar/>
   1.422 +    </target>
   1.423 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
   1.424 +        <j2seproject1:jar manifest="${manifest.file}"/>
   1.425 +    </target>
   1.426 +    <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">
   1.427 +        <j2seproject1:jar manifest="${manifest.file}">
   1.428 +            <j2seproject1:manifest>
   1.429 +                <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
   1.430 +            </j2seproject1:manifest>
   1.431 +        </j2seproject1:jar>
   1.432 +        <echo>To run this application from the command line without Ant, try:</echo>
   1.433 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   1.434 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
   1.435 +        <pathconvert property="run.classpath.with.dist.jar">
   1.436 +            <path path="${run.classpath}"/>
   1.437 +            <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
   1.438 +        </pathconvert>
   1.439 +        <echo>${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
   1.440 +    </target>
   1.441 +    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
   1.442 +        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
   1.443 +        <pathconvert property="run.classpath.without.build.classes.dir">
   1.444 +            <path path="${run.classpath}"/>
   1.445 +            <map from="${build.classes.dir.resolved}" to=""/>
   1.446 +        </pathconvert>
   1.447 +        <pathconvert pathsep=" " property="jar.classpath">
   1.448 +            <path path="${run.classpath.without.build.classes.dir}"/>
   1.449 +            <chainedmapper>
   1.450 +                <flattenmapper/>
   1.451 +                <globmapper from="*" to="lib/*"/>
   1.452 +            </chainedmapper>
   1.453 +        </pathconvert>
   1.454 +        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
   1.455 +        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
   1.456 +            <fileset dir="${build.classes.dir}"/>
   1.457 +            <manifest>
   1.458 +                <attribute name="Main-Class" value="${main.class}"/>
   1.459 +                <attribute name="Class-Path" value="${jar.classpath}"/>
   1.460 +            </manifest>
   1.461 +        </copylibs>
   1.462 +        <echo>To run this application from the command line without Ant, try:</echo>
   1.463 +        <property location="${dist.jar}" name="dist.jar.resolved"/>
   1.464 +        <echo>${platform.java} -jar "${dist.jar.resolved}"</echo>
   1.465 +    </target>
   1.466 +    <target name="-post-jar">
   1.467 +        <!-- Empty placeholder for easier customization. -->
   1.468 +        <!-- You can override this target in the ../build.xml file. -->
   1.469 +    </target>
   1.470 +    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
   1.471 +    <!--
   1.472 +                =================
   1.473 +                EXECUTION SECTION
   1.474 +                =================
   1.475 +            -->
   1.476 +    <target depends="init,compile" description="Run a main class." name="run">
   1.477 +        <j2seproject1:java>
   1.478 +            <customize>
   1.479 +                <arg line="${application.args}"/>
   1.480 +            </customize>
   1.481 +        </j2seproject1:java>
   1.482 +    </target>
   1.483 +    <target name="-do-not-recompile">
   1.484 +        <property name="javac.includes.binary" value=""/>
   1.485 +    </target>
   1.486 +    <target depends="init,-do-not-recompile,compile-single" name="run-single">
   1.487 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   1.488 +        <j2seproject1:java classname="${run.class}"/>
   1.489 +    </target>
   1.490 +    <!--
   1.491 +                =================
   1.492 +                DEBUGGING SECTION
   1.493 +                =================
   1.494 +            -->
   1.495 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   1.496 +        <j2seproject1:nbjpdastart name="${debug.class}"/>
   1.497 +    </target>
   1.498 +    <target depends="init,compile" name="-debug-start-debuggee">
   1.499 +        <j2seproject3:debug>
   1.500 +            <customize>
   1.501 +                <arg line="${application.args}"/>
   1.502 +            </customize>
   1.503 +        </j2seproject3:debug>
   1.504 +    </target>
   1.505 +    <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
   1.506 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
   1.507 +        <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
   1.508 +    </target>
   1.509 +    <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
   1.510 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   1.511 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
   1.512 +        <j2seproject3:debug classname="${debug.class}"/>
   1.513 +    </target>
   1.514 +    <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
   1.515 +    <target depends="init" name="-pre-debug-fix">
   1.516 +        <fail unless="fix.includes">Must set fix.includes</fail>
   1.517 +        <property name="javac.includes" value="${fix.includes}.java"/>
   1.518 +    </target>
   1.519 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   1.520 +        <j2seproject1:nbjpdareload/>
   1.521 +    </target>
   1.522 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   1.523 +    <!--
   1.524 +                ===============
   1.525 +                JAVADOC SECTION
   1.526 +                ===============
   1.527 +            -->
   1.528 +    <target depends="init" name="-javadoc-build">
   1.529 +        <mkdir dir="${dist.javadoc.dir}"/>
   1.530 +        <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" executable="${platform.javadoc}" 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}">
   1.531 +            <classpath>
   1.532 +                <path path="${javac.classpath}"/>
   1.533 +            </classpath>
   1.534 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   1.535 +                <filename name="**/*.java"/>
   1.536 +            </fileset>
   1.537 +        </javadoc>
   1.538 +    </target>
   1.539 +    <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
   1.540 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   1.541 +    </target>
   1.542 +    <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
   1.543 +    <!--
   1.544 +                =========================
   1.545 +                JUNIT COMPILATION SECTION
   1.546 +                =========================
   1.547 +            -->
   1.548 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   1.549 +        <mkdir dir="${build.test.classes.dir}"/>
   1.550 +    </target>
   1.551 +    <target name="-pre-compile-test">
   1.552 +        <!-- Empty placeholder for easier customization. -->
   1.553 +        <!-- You can override this target in the ../build.xml file. -->
   1.554 +    </target>
   1.555 +    <target if="do.depend.true" name="-compile-test-depend">
   1.556 +        <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   1.557 +    </target>
   1.558 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
   1.559 +        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   1.560 +        <copy todir="${build.test.classes.dir}">
   1.561 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   1.562 +        </copy>
   1.563 +    </target>
   1.564 +    <target name="-post-compile-test">
   1.565 +        <!-- Empty placeholder for easier customization. -->
   1.566 +        <!-- You can override this target in the ../build.xml file. -->
   1.567 +    </target>
   1.568 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   1.569 +    <target name="-pre-compile-test-single">
   1.570 +        <!-- Empty placeholder for easier customization. -->
   1.571 +        <!-- You can override this target in the ../build.xml file. -->
   1.572 +    </target>
   1.573 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   1.574 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   1.575 +        <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
   1.576 +        <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}"/>
   1.577 +        <copy todir="${build.test.classes.dir}">
   1.578 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   1.579 +        </copy>
   1.580 +    </target>
   1.581 +    <target name="-post-compile-test-single">
   1.582 +        <!-- Empty placeholder for easier customization. -->
   1.583 +        <!-- You can override this target in the ../build.xml file. -->
   1.584 +    </target>
   1.585 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   1.586 +    <!--
   1.587 +                =======================
   1.588 +                JUNIT EXECUTION SECTION
   1.589 +                =======================
   1.590 +            -->
   1.591 +    <target depends="init" if="have.tests" name="-pre-test-run">
   1.592 +        <mkdir dir="${build.test.results.dir}"/>
   1.593 +    </target>
   1.594 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   1.595 +        <j2seproject3:junit testincludes="**/*Test.java"/>
   1.596 +    </target>
   1.597 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   1.598 +        <fail if="tests.failed">Some tests failed; see details above.</fail>
   1.599 +    </target>
   1.600 +    <target depends="init" if="have.tests" name="test-report"/>
   1.601 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   1.602 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   1.603 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
   1.604 +        <mkdir dir="${build.test.results.dir}"/>
   1.605 +    </target>
   1.606 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   1.607 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   1.608 +        <j2seproject3:junit excludes="" includes="${test.includes}"/>
   1.609 +    </target>
   1.610 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   1.611 +        <fail if="tests.failed">Some tests failed; see details above.</fail>
   1.612 +    </target>
   1.613 +    <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
   1.614 +    <!--
   1.615 +                =======================
   1.616 +                JUNIT DEBUGGING SECTION
   1.617 +                =======================
   1.618 +            -->
   1.619 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   1.620 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   1.621 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   1.622 +        <delete file="${test.report.file}"/>
   1.623 +        <mkdir dir="${build.test.results.dir}"/>
   1.624 +        <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}">
   1.625 +            <customize>
   1.626 +                <syspropertyset>
   1.627 +                    <propertyref prefix="test-sys-prop."/>
   1.628 +                    <mapper from="test-sys-prop.*" to="*" type="glob"/>
   1.629 +                </syspropertyset>
   1.630 +                <arg value="${test.class}"/>
   1.631 +                <arg value="showoutput=true"/>
   1.632 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   1.633 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   1.634 +            </customize>
   1.635 +        </j2seproject3:debug>
   1.636 +    </target>
   1.637 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   1.638 +        <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   1.639 +    </target>
   1.640 +    <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   1.641 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   1.642 +        <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   1.643 +    </target>
   1.644 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   1.645 +    <!--
   1.646 +                =========================
   1.647 +                APPLET EXECUTION SECTION
   1.648 +                =========================
   1.649 +            -->
   1.650 +    <target depends="init,compile-single" name="run-applet">
   1.651 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
   1.652 +        <j2seproject1:java classname="sun.applet.AppletViewer">
   1.653 +            <customize>
   1.654 +                <arg value="${applet.url}"/>
   1.655 +            </customize>
   1.656 +        </j2seproject1:java>
   1.657 +    </target>
   1.658 +    <!--
   1.659 +                =========================
   1.660 +                APPLET DEBUGGING  SECTION
   1.661 +                =========================
   1.662 +            -->
   1.663 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
   1.664 +        <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
   1.665 +        <j2seproject3:debug classname="sun.applet.AppletViewer">
   1.666 +            <customize>
   1.667 +                <arg value="${applet.url}"/>
   1.668 +            </customize>
   1.669 +        </j2seproject3:debug>
   1.670 +    </target>
   1.671 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
   1.672 +    <!--
   1.673 +                ===============
   1.674 +                CLEANUP SECTION
   1.675 +                ===============
   1.676 +            -->
   1.677 +    <target depends="init" name="deps-clean" unless="no.deps"/>
   1.678 +    <target depends="init" name="-do-clean">
   1.679 +        <delete dir="${build.dir}"/>
   1.680 +        <delete dir="${dist.dir}"/>
   1.681 +    </target>
   1.682 +    <target name="-post-clean">
   1.683 +        <!-- Empty placeholder for easier customization. -->
   1.684 +        <!-- You can override this target in the ../build.xml file. -->
   1.685 +    </target>
   1.686 +    <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
   1.687 +</project>