java/SpringDemo1/SpringDemo1-war/nbproject/build-impl.xml
changeset 1 9a3fced9634d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/SpringDemo1/SpringDemo1-war/nbproject/build-impl.xml	Wed Feb 10 20:55:08 2010 +0100
     1.3 @@ -0,0 +1,875 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!--
     1.6 +        *** GENERATED FROM project.xml - DO NOT EDIT  ***
     1.7 +        ***         EDIT ../build.xml INSTEAD         ***
     1.8 +
     1.9 +        For the purpose of easier reading the script
    1.10 +        is divided into following sections:
    1.11 +        - initialization
    1.12 +        - compilation
    1.13 +        - dist
    1.14 +        - execution
    1.15 +        - debugging
    1.16 +        - javadoc
    1.17 +        - junit compilation
    1.18 +        - junit execution
    1.19 +        - junit debugging
    1.20 +        - cleanup
    1.21 +
    1.22 +        -->
    1.23 +<project xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" basedir=".." default="default" name="SpringDemo1-war-impl">
    1.24 +    <import file="ant-deploy.xml"/>
    1.25 +    <fail message="Please build using Ant 1.7.1 or higher.">
    1.26 +        <condition>
    1.27 +            <not>
    1.28 +                <antversion atleast="1.7.1"/>
    1.29 +            </not>
    1.30 +        </condition>
    1.31 +    </fail>
    1.32 +    <target depends="dist,javadoc" description="Build whole project." name="default"/>
    1.33 +    <!--
    1.34 +                INITIALIZATION SECTION
    1.35 +            -->
    1.36 +    <target name="-pre-init">
    1.37 +        <!-- Empty placeholder for easier customization. -->
    1.38 +        <!-- You can override this target in the ../build.xml file. -->
    1.39 +    </target>
    1.40 +    <target depends="-pre-init" name="-init-private">
    1.41 +        <property file="nbproject/private/private.properties"/>
    1.42 +    </target>
    1.43 +    <target depends="-pre-init,-init-private" name="-init-user">
    1.44 +        <property file="${user.properties.file}"/>
    1.45 +        <!-- The two properties below are usually overridden -->
    1.46 +        <!-- by the active platform. Just a fallback. -->
    1.47 +        <property name="default.javac.source" value="1.4"/>
    1.48 +        <property name="default.javac.target" value="1.4"/>
    1.49 +    </target>
    1.50 +    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
    1.51 +        <property file="nbproject/project.properties"/>
    1.52 +    </target>
    1.53 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
    1.54 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    1.55 +        <condition property="have.tests">
    1.56 +            <or>
    1.57 +                <available file="${test.src.dir}"/>
    1.58 +            </or>
    1.59 +        </condition>
    1.60 +        <condition property="have.sources">
    1.61 +            <or>
    1.62 +                <available file="${src.dir}"/>
    1.63 +            </or>
    1.64 +        </condition>
    1.65 +        <condition property="netbeans.home+have.tests">
    1.66 +            <and>
    1.67 +                <isset property="netbeans.home"/>
    1.68 +                <isset property="have.tests"/>
    1.69 +            </and>
    1.70 +        </condition>
    1.71 +        <condition property="no.javadoc.preview">
    1.72 +            <isfalse value="${javadoc.preview}"/>
    1.73 +        </condition>
    1.74 +        <property name="javac.compilerargs" value=""/>
    1.75 +        <condition property="no.deps">
    1.76 +            <and>
    1.77 +                <istrue value="${no.dependencies}"/>
    1.78 +            </and>
    1.79 +        </condition>
    1.80 +        <condition property="no.dist.ear.dir">
    1.81 +            <not>
    1.82 +                <isset property="dist.ear.dir"/>
    1.83 +            </not>
    1.84 +        </condition>
    1.85 +        <property name="build.web.excludes" value="${build.classes.excludes}"/>
    1.86 +        <condition property="do.compile.jsps">
    1.87 +            <istrue value="${compile.jsps}"/>
    1.88 +        </condition>
    1.89 +        <condition property="do.debug.server">
    1.90 +            <or>
    1.91 +                <not>
    1.92 +                    <isset property="debug.server"/>
    1.93 +                </not>
    1.94 +                <istrue value="${debug.server}"/>
    1.95 +                <and>
    1.96 +                    <not>
    1.97 +                        <istrue value="${debug.server}"/>
    1.98 +                    </not>
    1.99 +                    <not>
   1.100 +                        <istrue value="${debug.client}"/>
   1.101 +                    </not>
   1.102 +                </and>
   1.103 +            </or>
   1.104 +        </condition>
   1.105 +        <condition property="do.debug.client">
   1.106 +            <istrue value="${debug.client}"/>
   1.107 +        </condition>
   1.108 +        <condition property="do.display.browser">
   1.109 +            <istrue value="${display.browser}"/>
   1.110 +        </condition>
   1.111 +        <condition property="do.display.browser.debug">
   1.112 +            <and>
   1.113 +                <isset property="do.display.browser"/>
   1.114 +                <not>
   1.115 +                    <isset property="do.debug.client"/>
   1.116 +                </not>
   1.117 +            </and>
   1.118 +        </condition>
   1.119 +        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
   1.120 +        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
   1.121 +        <condition property="do.war.package.with.custom.manifest">
   1.122 +            <isset property="has.custom.manifest"/>
   1.123 +        </condition>
   1.124 +        <condition property="do.war.package.without.custom.manifest">
   1.125 +            <not>
   1.126 +                <isset property="has.custom.manifest"/>
   1.127 +            </not>
   1.128 +        </condition>
   1.129 +        <condition property="do.tmp.war.package.with.custom.manifest">
   1.130 +            <and>
   1.131 +                <isset property="has.custom.manifest"/>
   1.132 +                <or>
   1.133 +                    <isfalse value="${directory.deployment.supported}"/>
   1.134 +                    <isset property="dist.ear.dir"/>
   1.135 +                </or>
   1.136 +            </and>
   1.137 +        </condition>
   1.138 +        <condition property="do.tmp.war.package.without.custom.manifest">
   1.139 +            <and>
   1.140 +                <not>
   1.141 +                    <isset property="has.custom.manifest"/>
   1.142 +                </not>
   1.143 +                <or>
   1.144 +                    <isfalse value="${directory.deployment.supported}"/>
   1.145 +                    <isset property="dist.ear.dir"/>
   1.146 +                </or>
   1.147 +            </and>
   1.148 +        </condition>
   1.149 +        <condition property="do.tmp.war.package">
   1.150 +            <or>
   1.151 +                <isfalse value="${directory.deployment.supported}"/>
   1.152 +                <isset property="dist.ear.dir"/>
   1.153 +            </or>
   1.154 +        </condition>
   1.155 +        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
   1.156 +        <condition else="" property="application.args.param" value="${application.args}">
   1.157 +            <and>
   1.158 +                <isset property="application.args"/>
   1.159 +                <not>
   1.160 +                    <equals arg1="${application.args}" arg2="" trim="true"/>
   1.161 +                </not>
   1.162 +            </and>
   1.163 +        </condition>
   1.164 +        <property name="source.encoding" value="${file.encoding}"/>
   1.165 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   1.166 +            <and>
   1.167 +                <isset property="javadoc.encoding"/>
   1.168 +                <not>
   1.169 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
   1.170 +                </not>
   1.171 +            </and>
   1.172 +        </condition>
   1.173 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   1.174 +        <property name="includes" value="**"/>
   1.175 +        <property name="excludes" value=""/>
   1.176 +        <property name="runmain.jvmargs" value=""/>
   1.177 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   1.178 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   1.179 +            <length length="0" string="${endorsed.classpath}" when="greater"/>
   1.180 +        </condition>
   1.181 +    </target>
   1.182 +    <target depends="init" name="-init-cos" unless="deploy.on.save">
   1.183 +        <condition property="deploy.on.save" value="true">
   1.184 +            <istrue value="${j2ee.deploy.on.save}"/>
   1.185 +        </condition>
   1.186 +    </target>
   1.187 +    <target name="-post-init">
   1.188 +        <!-- Empty placeholder for easier customization. -->
   1.189 +        <!-- You can override this target in the ../build.xml file. -->
   1.190 +    </target>
   1.191 +    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
   1.192 +        <fail unless="src.dir">Must set src.dir</fail>
   1.193 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
   1.194 +        <fail unless="build.dir">Must set build.dir</fail>
   1.195 +        <fail unless="build.web.dir">Must set build.web.dir</fail>
   1.196 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   1.197 +        <fail unless="dist.dir">Must set dist.dir</fail>
   1.198 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   1.199 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   1.200 +        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
   1.201 +        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
   1.202 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   1.203 +        <fail unless="dist.war">Must set dist.war</fail>
   1.204 +        <fail unless="j2ee.platform.classpath">
   1.205 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
   1.206 +Either open the project in the IDE and assign the server or setup the server classpath manually.
   1.207 +For example like this:
   1.208 +   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
   1.209 +or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
   1.210 +                </fail>
   1.211 +    </target>
   1.212 +    <target name="-init-macrodef-property">
   1.213 +        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
   1.214 +            <attribute name="name"/>
   1.215 +            <attribute name="value"/>
   1.216 +            <sequential>
   1.217 +                <property name="@{name}" value="${@{value}}"/>
   1.218 +            </sequential>
   1.219 +        </macrodef>
   1.220 +    </target>
   1.221 +    <target name="-init-macrodef-javac">
   1.222 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
   1.223 +            <attribute default="${src.dir}" name="srcdir"/>
   1.224 +            <attribute default="${build.classes.dir}" name="destdir"/>
   1.225 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   1.226 +            <attribute default="${includes}" name="includes"/>
   1.227 +            <attribute default="${excludes}" name="excludes"/>
   1.228 +            <attribute default="${javac.debug}" name="debug"/>
   1.229 +            <attribute default="${empty.dir}" name="gensrcdir"/>
   1.230 +            <element name="customize" optional="true"/>
   1.231 +            <sequential>
   1.232 +                <property location="${build.dir}/empty" name="empty.dir"/>
   1.233 +                <mkdir dir="${empty.dir}"/>
   1.234 +                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
   1.235 +                    <src>
   1.236 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   1.237 +                            <include name="*"/>
   1.238 +                        </dirset>
   1.239 +                    </src>
   1.240 +                    <classpath>
   1.241 +                        <path path="@{classpath}"/>
   1.242 +                    </classpath>
   1.243 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.244 +                    <compilerarg line="${javac.compilerargs}"/>
   1.245 +                    <customize/>
   1.246 +                </javac>
   1.247 +            </sequential>
   1.248 +        </macrodef>
   1.249 +    </target>
   1.250 +    <target name="-init-macrodef-junit">
   1.251 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
   1.252 +            <attribute default="${includes}" name="includes"/>
   1.253 +            <attribute default="${excludes}" name="excludes"/>
   1.254 +            <attribute default="**" name="testincludes"/>
   1.255 +            <sequential>
   1.256 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
   1.257 +                    <batchtest todir="${build.test.results.dir}">
   1.258 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   1.259 +                            <filename name="@{testincludes}"/>
   1.260 +                        </fileset>
   1.261 +                    </batchtest>
   1.262 +                    <classpath>
   1.263 +                        <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
   1.264 +                    </classpath>
   1.265 +                    <syspropertyset>
   1.266 +                        <propertyref prefix="test-sys-prop."/>
   1.267 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   1.268 +                    </syspropertyset>
   1.269 +                    <formatter type="brief" usefile="false"/>
   1.270 +                    <formatter type="xml"/>
   1.271 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.272 +                    <jvmarg line="${runmain.jvmargs}"/>
   1.273 +                </junit>
   1.274 +            </sequential>
   1.275 +        </macrodef>
   1.276 +    </target>
   1.277 +    <target name="-init-macrodef-java">
   1.278 +        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
   1.279 +            <attribute default="${main.class}" name="classname"/>
   1.280 +            <attribute default="${debug.classpath}" name="classpath"/>
   1.281 +            <element name="customize" optional="true"/>
   1.282 +            <sequential>
   1.283 +                <java classname="@{classname}" fork="true">
   1.284 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.285 +                    <jvmarg line="${runmain.jvmargs}"/>
   1.286 +                    <classpath>
   1.287 +                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
   1.288 +                    </classpath>
   1.289 +                    <syspropertyset>
   1.290 +                        <propertyref prefix="run-sys-prop."/>
   1.291 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   1.292 +                    </syspropertyset>
   1.293 +                    <customize/>
   1.294 +                </java>
   1.295 +            </sequential>
   1.296 +        </macrodef>
   1.297 +    </target>
   1.298 +    <target name="-init-macrodef-nbjsdebug">
   1.299 +        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
   1.300 +            <attribute default="${client.url}" name="webUrl"/>
   1.301 +            <sequential>
   1.302 +                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
   1.303 +            </sequential>
   1.304 +        </macrodef>
   1.305 +    </target>
   1.306 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   1.307 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
   1.308 +            <attribute default="${main.class}" name="name"/>
   1.309 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   1.310 +            <sequential>
   1.311 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
   1.312 +                    <classpath>
   1.313 +                        <path path="@{classpath}"/>
   1.314 +                    </classpath>
   1.315 +                </nbjpdastart>
   1.316 +            </sequential>
   1.317 +        </macrodef>
   1.318 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
   1.319 +            <attribute default="${build.classes.dir}" name="dir"/>
   1.320 +            <sequential>
   1.321 +                <nbjpdareload>
   1.322 +                    <fileset dir="@{dir}" includes="${fix.classes}">
   1.323 +                        <include name="${fix.includes}*.class"/>
   1.324 +                    </fileset>
   1.325 +                </nbjpdareload>
   1.326 +            </sequential>
   1.327 +        </macrodef>
   1.328 +        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
   1.329 +            <sequential>
   1.330 +                <nbjpdaappreloaded/>
   1.331 +            </sequential>
   1.332 +        </macrodef>
   1.333 +    </target>
   1.334 +    <target name="-init-debug-args">
   1.335 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   1.336 +        <condition property="have-jdk-older-than-1.4">
   1.337 +            <or>
   1.338 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   1.339 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   1.340 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   1.341 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   1.342 +            </or>
   1.343 +        </condition>
   1.344 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   1.345 +            <istrue value="${have-jdk-older-than-1.4}"/>
   1.346 +        </condition>
   1.347 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   1.348 +            <os family="windows"/>
   1.349 +        </condition>
   1.350 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   1.351 +            <isset property="debug.transport"/>
   1.352 +        </condition>
   1.353 +    </target>
   1.354 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
   1.355 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
   1.356 +            <attribute default="${main.class}" name="classname"/>
   1.357 +            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   1.358 +            <attribute default="${application.args.param}" name="args"/>
   1.359 +            <element name="customize" optional="true"/>
   1.360 +            <sequential>
   1.361 +                <java classname="@{classname}" fork="true">
   1.362 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.363 +                    <jvmarg line="${debug-args-line}"/>
   1.364 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   1.365 +                    <jvmarg line="${runmain.jvmargs}"/>
   1.366 +                    <classpath>
   1.367 +                        <path path="@{classpath}"/>
   1.368 +                    </classpath>
   1.369 +                    <syspropertyset>
   1.370 +                        <propertyref prefix="run-sys-prop."/>
   1.371 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   1.372 +                    </syspropertyset>
   1.373 +                    <arg line="@{args}"/>
   1.374 +                    <customize/>
   1.375 +                </java>
   1.376 +            </sequential>
   1.377 +        </macrodef>
   1.378 +    </target>
   1.379 +    <target name="-init-taskdefs">
   1.380 +        <fail unless="libs.CopyLibs.classpath">
   1.381 +The libs.CopyLibs.classpath property is not set up.
   1.382 +This property must point to 
   1.383 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   1.384 +of NetBeans IDE installation and is usually located at 
   1.385 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   1.386 +Either open the project in the IDE and make sure CopyLibs library
   1.387 +exists or setup the property manually. For example like this:
   1.388 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   1.389 +                </fail>
   1.390 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   1.391 +    </target>
   1.392 +    <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-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs" name="init"/>
   1.393 +    <!--
   1.394 +                COMPILATION SECTION
   1.395 +            -->
   1.396 +    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
   1.397 +        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="dist"/>
   1.398 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
   1.399 +            <property name="deploy.on.save" value="false"/>
   1.400 +        </ant>
   1.401 +    </target>
   1.402 +    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
   1.403 +        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="dist-ear">
   1.404 +            <property location="${build.dir}" name="dist.ear.dir"/>
   1.405 +        </ant>
   1.406 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
   1.407 +            <property name="deploy.on.save" value="false"/>
   1.408 +        </ant>
   1.409 +    </target>
   1.410 +    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
   1.411 +    <target depends="init,deps-jar" name="-pre-pre-compile">
   1.412 +        <mkdir dir="${build.classes.dir}"/>
   1.413 +    </target>
   1.414 +    <target name="-pre-compile">
   1.415 +        <!-- Empty placeholder for easier customization. -->
   1.416 +        <!-- You can override this target in the ../build.xml file. -->
   1.417 +    </target>
   1.418 +    <target name="-copy-webdir">
   1.419 +        <copy todir="${build.web.dir}">
   1.420 +            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
   1.421 +        </copy>
   1.422 +        <copy todir="${build.web.dir}/WEB-INF">
   1.423 +            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
   1.424 +        </copy>
   1.425 +    </target>
   1.426 +    <target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest" if="have.sources" name="-do-compile">
   1.427 +        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
   1.428 +        <copy todir="${build.classes.dir}">
   1.429 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   1.430 +        </copy>
   1.431 +    </target>
   1.432 +    <target if="has.custom.manifest" name="-copy-manifest">
   1.433 +        <mkdir dir="${build.meta.inf.dir}"/>
   1.434 +        <copy todir="${build.meta.inf.dir}">
   1.435 +            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
   1.436 +        </copy>
   1.437 +    </target>
   1.438 +    <target if="has.persistence.xml" name="-copy-persistence-xml">
   1.439 +        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
   1.440 +        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
   1.441 +            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
   1.442 +        </copy>
   1.443 +    </target>
   1.444 +    <target name="-post-compile">
   1.445 +        <!-- Empty placeholder for easier customization. -->
   1.446 +        <!-- You can override this target in the ../build.xml file. -->
   1.447 +    </target>
   1.448 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   1.449 +    <target name="-pre-compile-single">
   1.450 +        <!-- Empty placeholder for easier customization. -->
   1.451 +        <!-- You can override this target in the ../build.xml file. -->
   1.452 +    </target>
   1.453 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   1.454 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   1.455 +        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
   1.456 +        <copy todir="${build.classes.dir}">
   1.457 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   1.458 +        </copy>
   1.459 +    </target>
   1.460 +    <target name="-post-compile-single">
   1.461 +        <!-- Empty placeholder for easier customization. -->
   1.462 +        <!-- You can override this target in the ../build.xml file. -->
   1.463 +    </target>
   1.464 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   1.465 +    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
   1.466 +        <mkdir dir="${build.generated.dir}/src"/>
   1.467 +        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
   1.468 +            <arg value="-uriroot"/>
   1.469 +            <arg file="${basedir}/${build.web.dir}"/>
   1.470 +            <arg value="-d"/>
   1.471 +            <arg file="${basedir}/${build.generated.dir}/src"/>
   1.472 +            <arg value="-die1"/>
   1.473 +            <arg value="-compilerSourceVM ${javac.source}"/>
   1.474 +            <arg value="-compilerTargetVM ${javac.target}"/>
   1.475 +            <arg value="-javaEncoding ${source.encoding}"/>
   1.476 +            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
   1.477 +        </java>
   1.478 +        <mkdir dir="${build.generated.dir}/classes"/>
   1.479 +        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
   1.480 +    </target>
   1.481 +    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
   1.482 +        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
   1.483 +        <mkdir dir="${build.generated.dir}/src"/>
   1.484 +        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
   1.485 +            <arg value="-uriroot"/>
   1.486 +            <arg file="${basedir}/${build.web.dir}"/>
   1.487 +            <arg value="-d"/>
   1.488 +            <arg file="${basedir}/${build.generated.dir}/src"/>
   1.489 +            <arg value="-die1"/>
   1.490 +            <arg value="-jspc.files"/>
   1.491 +            <arg path="${jsp.includes}"/>
   1.492 +            <arg value="-compilerSourceVM ${javac.source}"/>
   1.493 +            <arg value="-compilerTargetVM ${javac.target}"/>
   1.494 +            <arg value="-javaEncoding ${source.encoding}"/>
   1.495 +            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
   1.496 +        </java>
   1.497 +        <mkdir dir="${build.generated.dir}/classes"/>
   1.498 +        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
   1.499 +            <customize>
   1.500 +                <patternset includes="${javac.jsp.includes}"/>
   1.501 +            </customize>
   1.502 +        </webproject2:javac>
   1.503 +    </target>
   1.504 +    <target name="compile-single-jsp">
   1.505 +        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
   1.506 +        <antcall target="-do-compile-single-jsp"/>
   1.507 +    </target>
   1.508 +    <!--
   1.509 +                DIST BUILDING SECTION
   1.510 +            -->
   1.511 +    <target name="-pre-dist">
   1.512 +        <!-- Empty placeholder for easier customization. -->
   1.513 +        <!-- You can override this target in the ../build.xml file. -->
   1.514 +    </target>
   1.515 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
   1.516 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   1.517 +        <mkdir dir="${dist.jar.dir}"/>
   1.518 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
   1.519 +            <fileset dir="${build.web.dir}"/>
   1.520 +        </jar>
   1.521 +    </target>
   1.522 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
   1.523 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   1.524 +        <mkdir dir="${dist.jar.dir}"/>
   1.525 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
   1.526 +            <fileset dir="${build.web.dir}"/>
   1.527 +        </jar>
   1.528 +    </target>
   1.529 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
   1.530 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   1.531 +        <mkdir dir="${dist.jar.dir}"/>
   1.532 +        <jar compress="${jar.compress}" jarfile="${dist.war}">
   1.533 +            <fileset dir="${build.web.dir}"/>
   1.534 +        </jar>
   1.535 +    </target>
   1.536 +    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
   1.537 +        <dirname file="${dist.war}" property="dist.jar.dir"/>
   1.538 +        <mkdir dir="${dist.jar.dir}"/>
   1.539 +        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
   1.540 +            <fileset dir="${build.web.dir}"/>
   1.541 +        </jar>
   1.542 +    </target>
   1.543 +    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
   1.544 +    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
   1.545 +        <copyfiles files="${reference.SpringDemo1-ejb.dist}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}"/>
   1.546 +        <copyfiles files="${reference.SpringDemo1-lib.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
   1.547 +        <mkdir dir="${build.web.dir}/META-INF"/>
   1.548 +        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
   1.549 +    </target>
   1.550 +    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
   1.551 +        <copyfiles files="${reference.SpringDemo1-ejb.dist}" todir="${build.web.dir}/WEB-INF/lib"/>
   1.552 +        <copyfiles files="${reference.SpringDemo1-lib.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
   1.553 +    </target>
   1.554 +    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
   1.555 +        <delete dir="${build.web.dir}/WEB-INF/lib"/>
   1.556 +    </target>
   1.557 +    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
   1.558 +        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
   1.559 +        <mkdir dir="${dist.jar.dir}"/>
   1.560 +        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
   1.561 +            <fileset dir="${build.web.dir}"/>
   1.562 +        </jar>
   1.563 +    </target>
   1.564 +    <target name="-post-dist">
   1.565 +        <!-- Empty placeholder for easier customization. -->
   1.566 +        <!-- You can override this target in the ../build.xml file. -->
   1.567 +    </target>
   1.568 +    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
   1.569 +    <target depends="init,-clean-webinf-lib,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
   1.570 +    <!--
   1.571 +                EXECUTION SECTION
   1.572 +            -->
   1.573 +    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
   1.574 +    <target name="-pre-run-deploy">
   1.575 +        <!-- Empty placeholder for easier customization. -->
   1.576 +        <!-- You can override this target in the ../build.xml file. -->
   1.577 +    </target>
   1.578 +    <target name="-post-run-deploy">
   1.579 +        <!-- Empty placeholder for easier customization. -->
   1.580 +        <!-- You can override this target in the ../build.xml file. -->
   1.581 +    </target>
   1.582 +    <target name="-pre-nbmodule-run-deploy">
   1.583 +        <!-- Empty placeholder for easier customization. -->
   1.584 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   1.585 +    </target>
   1.586 +    <target name="-post-nbmodule-run-deploy">
   1.587 +        <!-- Empty placeholder for easier customization. -->
   1.588 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   1.589 +    </target>
   1.590 +    <target name="-run-deploy-am">
   1.591 +        <!-- Task to deploy to the Access Manager runtime. -->
   1.592 +    </target>
   1.593 +    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy" name="run-deploy">
   1.594 +        <nbjpdaappreloaded/>
   1.595 +    </target>
   1.596 +    <target if="netbeans.home" name="-run-deploy-nb">
   1.597 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
   1.598 +    </target>
   1.599 +    <target name="-init-deploy-ant" unless="netbeans.home">
   1.600 +        <property name="deploy.ant.archive" value="${dist.war}"/>
   1.601 +        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
   1.602 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   1.603 +        <property name="deploy.ant.enabled" value="true"/>
   1.604 +    </target>
   1.605 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   1.606 +    <target if="netbeans.home" name="-run-undeploy-nb">
   1.607 +        <fail message="Undeploy is not supported from within the IDE"/>
   1.608 +    </target>
   1.609 +    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
   1.610 +        <nbverify file="${dist.war}"/>
   1.611 +    </target>
   1.612 +    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
   1.613 +    <target if="do.display.browser" name="-init-display-browser">
   1.614 +        <condition property="do.display.browser.nb">
   1.615 +            <isset property="netbeans.home"/>
   1.616 +        </condition>
   1.617 +        <condition property="do.display.browser.cl">
   1.618 +            <isset property="deploy.ant.enabled"/>
   1.619 +        </condition>
   1.620 +    </target>
   1.621 +    <target if="do.display.browser.nb" name="-display-browser-nb">
   1.622 +        <nbbrowse url="${client.url}"/>
   1.623 +    </target>
   1.624 +    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
   1.625 +        <condition property="browser" value="rundll32">
   1.626 +            <os family="windows"/>
   1.627 +        </condition>
   1.628 +        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
   1.629 +            <os family="windows"/>
   1.630 +        </condition>
   1.631 +        <condition property="browser" value="/usr/bin/open">
   1.632 +            <os family="mac"/>
   1.633 +        </condition>
   1.634 +        <property environment="env"/>
   1.635 +        <condition property="browser" value="${env.BROWSER}">
   1.636 +            <isset property="env.BROWSER"/>
   1.637 +        </condition>
   1.638 +        <condition property="browser" value="/usr/bin/firefox">
   1.639 +            <available file="/usr/bin/firefox"/>
   1.640 +        </condition>
   1.641 +        <condition property="browser" value="/usr/local/firefox/firefox">
   1.642 +            <available file="/usr/local/firefox/firefox"/>
   1.643 +        </condition>
   1.644 +        <condition property="browser" value="/usr/bin/mozilla">
   1.645 +            <available file="/usr/bin/mozilla"/>
   1.646 +        </condition>
   1.647 +        <condition property="browser" value="/usr/local/mozilla/mozilla">
   1.648 +            <available file="/usr/local/mozilla/mozilla"/>
   1.649 +        </condition>
   1.650 +        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
   1.651 +            <available file="/usr/sfw/lib/firefox/firefox"/>
   1.652 +        </condition>
   1.653 +        <condition property="browser" value="/opt/csw/bin/firefox">
   1.654 +            <available file="/opt/csw/bin/firefox"/>
   1.655 +        </condition>
   1.656 +        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
   1.657 +            <available file="/usr/sfw/lib/mozilla/mozilla"/>
   1.658 +        </condition>
   1.659 +        <condition property="browser" value="/opt/csw/bin/mozilla">
   1.660 +            <available file="/opt/csw/bin/mozilla"/>
   1.661 +        </condition>
   1.662 +    </target>
   1.663 +    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
   1.664 +        <fail unless="browser">
   1.665 +                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
   1.666 +                </fail>
   1.667 +        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
   1.668 +        <echo>Launching ${browse.url}</echo>
   1.669 +        <exec executable="${browser}" spawn="true">
   1.670 +            <arg line="${browser.args} ${browse.url}"/>
   1.671 +        </exec>
   1.672 +    </target>
   1.673 +    <target depends="init,-init-cos,compile-single" name="run-main">
   1.674 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   1.675 +        <webproject1:java classname="${run.class}"/>
   1.676 +    </target>
   1.677 +    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
   1.678 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   1.679 +        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
   1.680 +    </target>
   1.681 +    <!--
   1.682 +                DEBUGGING SECTION
   1.683 +            -->
   1.684 +    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
   1.685 +        <nbstartserver debugmode="true"/>
   1.686 +        <antcall target="connect-debugger"/>
   1.687 +        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
   1.688 +        <antcall target="debug-display-browser"/>
   1.689 +        <antcall target="connect-client-debugger"/>
   1.690 +    </target>
   1.691 +    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
   1.692 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   1.693 +            <classpath>
   1.694 +                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
   1.695 +            </classpath>
   1.696 +            <sourcepath>
   1.697 +                <path path="${web.docbase.dir}"/>
   1.698 +            </sourcepath>
   1.699 +        </nbjpdaconnect>
   1.700 +    </target>
   1.701 +    <target if="do.display.browser.debug" name="debug-display-browser">
   1.702 +        <nbbrowse url="${client.url}"/>
   1.703 +    </target>
   1.704 +    <target if="do.debug.client" name="connect-client-debugger">
   1.705 +        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
   1.706 +    </target>
   1.707 +    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
   1.708 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
   1.709 +        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
   1.710 +    </target>
   1.711 +    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
   1.712 +    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
   1.713 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
   1.714 +        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
   1.715 +    </target>
   1.716 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   1.717 +        <webproject1:nbjpdastart name="${debug.class}"/>
   1.718 +    </target>
   1.719 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   1.720 +        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
   1.721 +        <webproject1:debug classname="${debug.class}"/>
   1.722 +    </target>
   1.723 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
   1.724 +    <target depends="init" name="-pre-debug-fix">
   1.725 +        <fail unless="fix.includes">Must set fix.includes</fail>
   1.726 +        <property name="javac.includes" value="${fix.includes}.java"/>
   1.727 +    </target>
   1.728 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   1.729 +        <webproject1:nbjpdareload/>
   1.730 +    </target>
   1.731 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   1.732 +    <!--
   1.733 +                JAVADOC SECTION
   1.734 +            -->
   1.735 +    <target depends="init" name="javadoc-build">
   1.736 +        <mkdir dir="${dist.javadoc.dir}"/>
   1.737 +        <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}">
   1.738 +            <classpath>
   1.739 +                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
   1.740 +            </classpath>
   1.741 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   1.742 +                <filename name="**/*.java"/>
   1.743 +            </fileset>
   1.744 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   1.745 +                <include name="**/*.java"/>
   1.746 +            </fileset>
   1.747 +        </javadoc>
   1.748 +    </target>
   1.749 +    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
   1.750 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   1.751 +    </target>
   1.752 +    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
   1.753 +    <!--
   1.754 +                
   1.755 +                JUNIT COMPILATION SECTION
   1.756 +            -->
   1.757 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   1.758 +        <mkdir dir="${build.test.classes.dir}"/>
   1.759 +        <property name="j2ee.platform.embeddableejb.classpath" value=""/>
   1.760 +    </target>
   1.761 +    <target name="-pre-compile-test">
   1.762 +        <!-- Empty placeholder for easier customization. -->
   1.763 +        <!-- You can override this target in the ../build.xml file. -->
   1.764 +    </target>
   1.765 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
   1.766 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   1.767 +        <copy todir="${build.test.classes.dir}">
   1.768 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   1.769 +        </copy>
   1.770 +    </target>
   1.771 +    <target name="-post-compile-test">
   1.772 +        <!-- Empty placeholder for easier customization. -->
   1.773 +        <!-- You can override this target in the ../build.xml file. -->
   1.774 +    </target>
   1.775 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   1.776 +    <target name="-pre-compile-test-single">
   1.777 +        <!-- Empty placeholder for easier customization. -->
   1.778 +        <!-- You can override this target in the ../build.xml file. -->
   1.779 +    </target>
   1.780 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   1.781 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   1.782 +        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
   1.783 +        <copy todir="${build.test.classes.dir}">
   1.784 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   1.785 +        </copy>
   1.786 +    </target>
   1.787 +    <target name="-post-compile-test-single">
   1.788 +        <!-- Empty placeholder for easier customization. -->
   1.789 +        <!-- You can override this target in the ../build.xml file. -->
   1.790 +    </target>
   1.791 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   1.792 +    <!--
   1.793 +                
   1.794 +                JUNIT EXECUTION SECTION
   1.795 +            -->
   1.796 +    <target depends="init" if="have.tests" name="-pre-test-run">
   1.797 +        <mkdir dir="${build.test.results.dir}"/>
   1.798 +    </target>
   1.799 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   1.800 +        <webproject2:junit testincludes="**/*Test.java"/>
   1.801 +    </target>
   1.802 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   1.803 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   1.804 +    </target>
   1.805 +    <target depends="init" if="have.tests" name="test-report"/>
   1.806 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   1.807 +    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   1.808 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
   1.809 +        <mkdir dir="${build.test.results.dir}"/>
   1.810 +    </target>
   1.811 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   1.812 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   1.813 +        <webproject2:junit excludes="" includes="${test.includes}"/>
   1.814 +    </target>
   1.815 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   1.816 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   1.817 +    </target>
   1.818 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
   1.819 +    <!--
   1.820 +                
   1.821 +                JUNIT DEBUGGING SECTION
   1.822 +            -->
   1.823 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   1.824 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   1.825 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   1.826 +        <delete file="${test.report.file}"/>
   1.827 +        <!-- must exist, otherwise the XML formatter would fail -->
   1.828 +        <mkdir dir="${build.test.results.dir}"/>
   1.829 +        <webproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
   1.830 +            <customize>
   1.831 +                <arg value="showoutput=true"/>
   1.832 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   1.833 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   1.834 +            </customize>
   1.835 +        </webproject1:debug>
   1.836 +    </target>
   1.837 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   1.838 +        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   1.839 +    </target>
   1.840 +    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   1.841 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   1.842 +        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   1.843 +    </target>
   1.844 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   1.845 +    <!--
   1.846 +                
   1.847 +                CLEANUP SECTION
   1.848 +            -->
   1.849 +    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
   1.850 +        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="clean"/>
   1.851 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="clean"/>
   1.852 +    </target>
   1.853 +    <target depends="init" name="do-clean">
   1.854 +        <condition property="build.dir.to.clean" value="${build.web.dir}">
   1.855 +            <isset property="dist.ear.dir"/>
   1.856 +        </condition>
   1.857 +        <property name="build.dir.to.clean" value="${build.web.dir}"/>
   1.858 +        <delete includeEmptyDirs="true" quiet="true">
   1.859 +            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
   1.860 +        </delete>
   1.861 +        <delete dir="${build.dir}"/>
   1.862 +        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
   1.863 +        <delete dir="${dist.dir}"/>
   1.864 +    </target>
   1.865 +    <target depends="do-clean" if="status.clean-failed" name="check-clean">
   1.866 +        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
   1.867 +        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
   1.868 +    </target>
   1.869 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
   1.870 +        <nbundeploy failOnError="false" startServer="false"/>
   1.871 +    </target>
   1.872 +    <target name="-post-clean">
   1.873 +        <!-- Empty placeholder for easier customization. -->
   1.874 +        <!-- You can override this target in the ../build.xml file. -->
   1.875 +    </target>
   1.876 +    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
   1.877 +    <target depends="clean" description="Clean build products." name="clean-ear"/>
   1.878 +</project>