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