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