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