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