java/SpringDemo1/SpringDemo1-ejb/nbproject/build-impl.xml
changeset 1 9a3fced9634d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/SpringDemo1/SpringDemo1-ejb/nbproject/build-impl.xml	Wed Feb 10 20:55:08 2010 +0100
     1.3 @@ -0,0 +1,647 @@
     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 +
    1.12 +  - initialization
    1.13 +  - compilation
    1.14 +  - dist
    1.15 +  - execution
    1.16 +  - debugging
    1.17 +  - javadoc
    1.18 +  - cleanup
    1.19 +
    1.20 +        -->
    1.21 +<project xmlns:ejbjarproject1="http://www.netbeans.org/ns/j2ee-ejbjarproject/1" xmlns:ejbjarproject2="http://www.netbeans.org/ns/j2ee-ejbjarproject/2" xmlns:ejbjarproject3="http://www.netbeans.org/ns/j2ee-ejbjarproject/3" basedir=".." default="default" name="SpringDemo1-ejb-impl">
    1.22 +    <import file="ant-deploy.xml"/>
    1.23 +    <fail message="Please build using Ant 1.7.1 or higher.">
    1.24 +        <condition>
    1.25 +            <not>
    1.26 +                <antversion atleast="1.7.1"/>
    1.27 +            </not>
    1.28 +        </condition>
    1.29 +    </fail>
    1.30 +    <target depends="dist,javadoc" description="Build whole project." name="default"/>
    1.31 +    <!-- 
    1.32 +                INITIALIZATION SECTION 
    1.33 +            -->
    1.34 +    <target name="-pre-init">
    1.35 +        <!-- Empty placeholder for easier customization. -->
    1.36 +        <!-- You can override this target in the ../build.xml file. -->
    1.37 +    </target>
    1.38 +    <target depends="-pre-init" name="-init-private">
    1.39 +        <property file="nbproject/private/private.properties"/>
    1.40 +    </target>
    1.41 +    <target depends="-pre-init,-init-private" name="-init-userdir">
    1.42 +        <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    1.43 +    </target>
    1.44 +    <target depends="-pre-init,-init-private,-init-userdir" 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-userdir,-init-user" name="-init-project">
    1.52 +        <property file="nbproject/project.properties"/>
    1.53 +    </target>
    1.54 +    <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    1.55 +        <!-- Ensure configuration directory exists. -->
    1.56 +        <mkdir dir="${meta.inf}"/>
    1.57 +        <property name="runmain.jvmargs" value=""/>
    1.58 +        <condition property="have.tests">
    1.59 +            <or>
    1.60 +                <available file="${test.src.dir}"/>
    1.61 +            </or>
    1.62 +        </condition>
    1.63 +        <condition property="have.sources">
    1.64 +            <or>
    1.65 +                <available file="${src.dir}"/>
    1.66 +            </or>
    1.67 +        </condition>
    1.68 +        <condition property="netbeans.home+have.tests">
    1.69 +            <and>
    1.70 +                <isset property="netbeans.home"/>
    1.71 +                <isset property="have.tests"/>
    1.72 +            </and>
    1.73 +        </condition>
    1.74 +        <condition property="no.javadoc.preview">
    1.75 +            <isfalse value="${javadoc.preview}"/>
    1.76 +        </condition>
    1.77 +        <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
    1.78 +        <!--
    1.79 +                    Variables needed to support directory deployment.
    1.80 +                -->
    1.81 +        <condition property="do.package.with.custom.manifest.not.directory.deploy">
    1.82 +            <and>
    1.83 +                <isset property="has.custom.manifest"/>
    1.84 +                <isfalse value="${directory.deployment.supported}"/>
    1.85 +            </and>
    1.86 +        </condition>
    1.87 +        <condition property="do.package.without.custom.manifest.not.directory.deploy">
    1.88 +            <and>
    1.89 +                <not>
    1.90 +                    <isset property="has.custom.manifest"/>
    1.91 +                </not>
    1.92 +                <isfalse value="${directory.deployment.supported}"/>
    1.93 +            </and>
    1.94 +        </condition>
    1.95 +        <!--End Variables needed to support directory deployment.-->
    1.96 +        <condition property="classes.dir" value="${build.ear.classes.dir}">
    1.97 +            <isset property="dist.ear.dir"/>
    1.98 +        </condition>
    1.99 +        <property name="classes.dir" value="${build.classes.dir}"/>
   1.100 +        <condition property="no.deps">
   1.101 +            <and>
   1.102 +                <istrue value="${no.dependencies}"/>
   1.103 +            </and>
   1.104 +        </condition>
   1.105 +        <condition property="no.dist.ear.dir">
   1.106 +            <not>
   1.107 +                <isset property="dist.ear.dir"/>
   1.108 +            </not>
   1.109 +        </condition>
   1.110 +        <property name="source.encoding" value="${file.encoding}"/>
   1.111 +        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   1.112 +            <and>
   1.113 +                <isset property="javadoc.encoding"/>
   1.114 +                <not>
   1.115 +                    <equals arg1="${javadoc.encoding}" arg2=""/>
   1.116 +                </not>
   1.117 +            </and>
   1.118 +        </condition>
   1.119 +        <property name="javadoc.encoding.used" value="${source.encoding}"/>
   1.120 +        <property name="includes" value="**"/>
   1.121 +        <property name="excludes" value=""/>
   1.122 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   1.123 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   1.124 +            <length length="0" string="${endorsed.classpath}" when="greater"/>
   1.125 +        </condition>
   1.126 +    </target>
   1.127 +    <target depends="init" name="-init-cos" unless="deploy.on.save">
   1.128 +        <condition property="deploy.on.save" value="true">
   1.129 +            <istrue value="${j2ee.deploy.on.save}"/>
   1.130 +        </condition>
   1.131 +    </target>
   1.132 +    <target name="-post-init">
   1.133 +        <!-- Empty placeholder for easier customization. -->
   1.134 +        <!-- You can override this target in the ../build.xml file. -->
   1.135 +    </target>
   1.136 +    <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
   1.137 +        <fail unless="src.dir">Must set src.dir</fail>
   1.138 +        <fail unless="test.src.dir">Must set test.src.dir</fail>
   1.139 +        <fail unless="build.dir">Must set build.dir</fail>
   1.140 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   1.141 +        <fail unless="dist.dir">Must set dist.dir</fail>
   1.142 +        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   1.143 +        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   1.144 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   1.145 +        <fail unless="dist.jar">Must set dist.jar</fail>
   1.146 +        <fail unless="j2ee.platform.classpath">
   1.147 +The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
   1.148 +Either open the project in the IDE and assign the server or setup the server classpath manually.
   1.149 +For example like this:
   1.150 +   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
   1.151 +or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
   1.152 +                </fail>
   1.153 +    </target>
   1.154 +    <target name="-init-macrodef-property">
   1.155 +        <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   1.156 +            <attribute name="name"/>
   1.157 +            <attribute name="value"/>
   1.158 +            <sequential>
   1.159 +                <property name="@{name}" value="${@{value}}"/>
   1.160 +            </sequential>
   1.161 +        </macrodef>
   1.162 +    </target>
   1.163 +    <target name="-init-macrodef-javac">
   1.164 +        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   1.165 +            <attribute default="${src.dir}" name="srcdir"/>
   1.166 +            <attribute default="${build.classes.dir}" name="destdir"/>
   1.167 +            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   1.168 +            <attribute default="${includes}" name="includes"/>
   1.169 +            <attribute default="${excludes}" name="excludes"/>
   1.170 +            <attribute default="${javac.debug}" name="debug"/>
   1.171 +            <attribute default="${empty.dir}" name="gensrcdir"/>
   1.172 +            <element name="customize" optional="true"/>
   1.173 +            <sequential>
   1.174 +                <property name="javac.compilerargs" value=""/>
   1.175 +                <property location="${build.dir}/empty" name="empty.dir"/>
   1.176 +                <mkdir dir="${empty.dir}"/>
   1.177 +                <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.178 +                    <src>
   1.179 +                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   1.180 +                            <include name="*"/>
   1.181 +                        </dirset>
   1.182 +                    </src>
   1.183 +                    <classpath>
   1.184 +                        <path path="@{classpath}"/>
   1.185 +                    </classpath>
   1.186 +                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.187 +                    <compilerarg line="${javac.compilerargs}"/>
   1.188 +                    <customize/>
   1.189 +                </javac>
   1.190 +            </sequential>
   1.191 +        </macrodef>
   1.192 +    </target>
   1.193 +    <target name="-init-macrodef-junit">
   1.194 +        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   1.195 +            <attribute default="${includes}" name="includes"/>
   1.196 +            <attribute default="${excludes}" name="excludes"/>
   1.197 +            <attribute default="**" name="testincludes"/>
   1.198 +            <sequential>
   1.199 +                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
   1.200 +                    <batchtest todir="${build.test.results.dir}">
   1.201 +                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   1.202 +                            <filename name="@{testincludes}"/>
   1.203 +                        </fileset>
   1.204 +                    </batchtest>
   1.205 +                    <classpath>
   1.206 +                        <path path="${run.test.classpath}"/>
   1.207 +                        <path path="${j2ee.platform.classpath}"/>
   1.208 +                        <path path="${j2ee.platform.embeddableejb.classpath}"/>
   1.209 +                    </classpath>
   1.210 +                    <syspropertyset>
   1.211 +                        <propertyref prefix="test-sys-prop."/>
   1.212 +                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
   1.213 +                    </syspropertyset>
   1.214 +                    <formatter type="brief" usefile="false"/>
   1.215 +                    <formatter type="xml"/>
   1.216 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.217 +                    <jvmarg line="${runmain.jvmargs}"/>
   1.218 +                </junit>
   1.219 +            </sequential>
   1.220 +        </macrodef>
   1.221 +    </target>
   1.222 +    <target name="-init-macrodef-java">
   1.223 +        <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
   1.224 +            <attribute default="${main.class}" name="classname"/>
   1.225 +            <element name="customize" optional="true"/>
   1.226 +            <sequential>
   1.227 +                <java classname="@{classname}" fork="true">
   1.228 +                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.229 +                    <jvmarg line="${runmain.jvmargs}"/>
   1.230 +                    <classpath>
   1.231 +                        <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
   1.232 +                    </classpath>
   1.233 +                    <syspropertyset>
   1.234 +                        <propertyref prefix="run-sys-prop."/>
   1.235 +                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
   1.236 +                    </syspropertyset>
   1.237 +                    <customize/>
   1.238 +                </java>
   1.239 +            </sequential>
   1.240 +        </macrodef>
   1.241 +    </target>
   1.242 +    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   1.243 +        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   1.244 +            <attribute default="${main.class}" name="name"/>
   1.245 +            <attribute default="${debug.classpath}" name="classpath"/>
   1.246 +            <sequential>
   1.247 +                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
   1.248 +                    <classpath>
   1.249 +                        <path path="@{classpath}"/>
   1.250 +                    </classpath>
   1.251 +                </nbjpdastart>
   1.252 +            </sequential>
   1.253 +        </macrodef>
   1.254 +        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   1.255 +            <attribute default="${build.classes.dir}" name="dir"/>
   1.256 +            <sequential>
   1.257 +                <nbjpdareload>
   1.258 +                    <fileset dir="@{dir}" includes="${fix.classes}">
   1.259 +                        <include name="${fix.includes}*.class"/>
   1.260 +                    </fileset>
   1.261 +                </nbjpdareload>
   1.262 +            </sequential>
   1.263 +        </macrodef>
   1.264 +        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
   1.265 +            <sequential>
   1.266 +                <nbjpdaappreloaded/>
   1.267 +            </sequential>
   1.268 +        </macrodef>
   1.269 +    </target>
   1.270 +    <target name="-init-debug-args">
   1.271 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   1.272 +        <condition property="have-jdk-older-than-1.4">
   1.273 +            <or>
   1.274 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   1.275 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   1.276 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   1.277 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   1.278 +            </or>
   1.279 +        </condition>
   1.280 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   1.281 +            <istrue value="${have-jdk-older-than-1.4}"/>
   1.282 +        </condition>
   1.283 +        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   1.284 +            <os family="windows"/>
   1.285 +        </condition>
   1.286 +        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   1.287 +            <isset property="debug.transport"/>
   1.288 +        </condition>
   1.289 +    </target>
   1.290 +    <target depends="-init-debug-args" name="-init-macrodef-debug">
   1.291 +        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   1.292 +            <attribute default="${main.class}" name="classname"/>
   1.293 +            <attribute default="${debug.classpath}" name="classpath"/>
   1.294 +            <attribute default="${application.args}" name="args"/>
   1.295 +            <element name="customize" optional="true"/>
   1.296 +            <sequential>
   1.297 +                <java classname="@{classname}" fork="true">
   1.298 +                    <jvmarg line="${debug-args-line}"/>
   1.299 +                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   1.300 +                    <classpath>
   1.301 +                        <path path="@{classpath}"/>
   1.302 +                    </classpath>
   1.303 +                    <arg line="@{args}"/>
   1.304 +                    <customize/>
   1.305 +                </java>
   1.306 +            </sequential>
   1.307 +        </macrodef>
   1.308 +    </target>
   1.309 +    <target name="-init-taskdefs">
   1.310 +        <fail unless="libs.CopyLibs.classpath">
   1.311 +The libs.CopyLibs.classpath property is not set up.
   1.312 +This property must point to 
   1.313 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   1.314 +of NetBeans IDE installation and is usually located at 
   1.315 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   1.316 +Either open the project in the IDE and make sure CopyLibs library
   1.317 +exists or setup the property manually. For example like this:
   1.318 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   1.319 +                </fail>
   1.320 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   1.321 +    </target>
   1.322 +    <target depends="-pre-init,-init-private,-init-userdir,-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-debug,-init-taskdefs" name="init"/>
   1.323 +    <!--
   1.324 +                COMPILATION SECTION
   1.325 +            -->
   1.326 +    <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
   1.327 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
   1.328 +            <property name="deploy.on.save" value="false"/>
   1.329 +        </ant>
   1.330 +    </target>
   1.331 +    <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
   1.332 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
   1.333 +            <property name="deploy.on.save" value="false"/>
   1.334 +        </ant>
   1.335 +    </target>
   1.336 +    <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
   1.337 +    <target depends="init,deps-jar" name="-pre-pre-compile">
   1.338 +        <mkdir dir="${build.classes.dir}"/>
   1.339 +        <mkdir dir="${build.ear.classes.dir}"/>
   1.340 +    </target>
   1.341 +    <target name="-pre-compile">
   1.342 +        <!-- Empty placeholder for easier customization. -->
   1.343 +        <!-- You can override this target in the ../build.xml file. -->
   1.344 +    </target>
   1.345 +    <target depends="compile" name="library-inclusion-in-archive">
   1.346 +        <copyfiles files="${reference.SpringDemo1-lib.jar}" todir="${build.classes.dir}"/>
   1.347 +        <copyfiles files="${libs.spring-framework.classpath}" todir="${build.classes.dir}"/>
   1.348 +    </target>
   1.349 +    <target depends="compile" name="library-inclusion-in-manifest">
   1.350 +        <copyfiles files="${reference.SpringDemo1-lib.jar}" todir="${dist.ear.dir}/lib"/>
   1.351 +        <copyfiles files="${libs.spring-framework.classpath}" todir="${dist.ear.dir}/lib"/>
   1.352 +        <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
   1.353 +    </target>
   1.354 +    <target name="-copy-meta-inf">
   1.355 +        <copy todir="${classes.dir}">
   1.356 +            <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
   1.357 +        </copy>
   1.358 +        <copy todir="${classes.dir}/META-INF">
   1.359 +            <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
   1.360 +        </copy>
   1.361 +    </target>
   1.362 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
   1.363 +        <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
   1.364 +        <copy todir="${classes.dir}">
   1.365 +            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   1.366 +        </copy>
   1.367 +    </target>
   1.368 +    <target name="-post-compile">
   1.369 +        <!-- Empty placeholder for easier customization. -->
   1.370 +        <!-- You can override this target in the ../build.xml file. -->
   1.371 +    </target>
   1.372 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   1.373 +    <target name="-pre-compile-single">
   1.374 +        <!-- Empty placeholder for easier customization. -->
   1.375 +        <!-- You can override this target in the ../build.xml file. -->
   1.376 +    </target>
   1.377 +    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   1.378 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   1.379 +        <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
   1.380 +    </target>
   1.381 +    <target name="-post-compile-single">
   1.382 +        <!-- Empty placeholder for easier customization. -->
   1.383 +        <!-- You can override this target in the ../build.xml file. -->
   1.384 +    </target>
   1.385 +    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   1.386 +    <!--
   1.387 +                DIST BUILDING SECTION
   1.388 +            -->
   1.389 +    <target name="-pre-dist">
   1.390 +        <!-- Empty placeholder for easier customization. -->
   1.391 +        <!-- You can override this target in the ../build.xml file. -->
   1.392 +    </target>
   1.393 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
   1.394 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.395 +        <mkdir dir="${dist.jar.dir}"/>
   1.396 +        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   1.397 +            <fileset dir="${build.classes.dir}"/>
   1.398 +        </jar>
   1.399 +    </target>
   1.400 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
   1.401 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.402 +        <mkdir dir="${dist.jar.dir}"/>
   1.403 +        <jar compress="${jar.compress}" jarfile="${dist.jar}">
   1.404 +            <fileset dir="${build.classes.dir}"/>
   1.405 +        </jar>
   1.406 +    </target>
   1.407 +    <!--
   1.408 +                TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   1.409 +            -->
   1.410 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
   1.411 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.412 +        <mkdir dir="${dist.jar.dir}"/>
   1.413 +        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   1.414 +            <fileset dir="${build.classes.dir}"/>
   1.415 +        </jar>
   1.416 +    </target>
   1.417 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
   1.418 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.419 +        <mkdir dir="${dist.jar.dir}"/>
   1.420 +        <jar compress="${jar.compress}" jarfile="${dist.jar}">
   1.421 +            <fileset dir="${build.classes.dir}"/>
   1.422 +        </jar>
   1.423 +    </target>
   1.424 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-tmp-dist-without-manifest, -do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
   1.425 +    <target depends="init,compile,-pre-dist,-do-dist-directory-deploy,-post-dist" description="Build distribution (JAR) - if directory deployment is not supported." name="dist-directory-deploy"/>
   1.426 +    <!--
   1.427 +                END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   1.428 +            -->
   1.429 +    <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
   1.430 +    <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
   1.431 +        <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
   1.432 +        <mkdir dir="${dist.jar.dir}"/>
   1.433 +        <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
   1.434 +            <fileset dir="${build.ear.classes.dir}"/>
   1.435 +        </jar>
   1.436 +    </target>
   1.437 +    <target name="-post-dist">
   1.438 +        <!-- Empty placeholder for easier customization. -->
   1.439 +        <!-- You can override this target in the ../build.xml file. -->
   1.440 +    </target>
   1.441 +    <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
   1.442 +    <target depends="init,-init-cos,compile,-pre-dist,-do-ear-dist,-post-dist" description="Build distribution (JAR) to be packaged into an EAR." name="dist-ear"/>
   1.443 +    <!--
   1.444 +                EXECUTION SECTION
   1.445 +            -->
   1.446 +    <target depends="run-deploy" description="Deploy to server." name="run"/>
   1.447 +    <target name="-init-deploy">
   1.448 +        <property name="include.jar.manifest" value=""/>
   1.449 +    </target>
   1.450 +    <target name="pre-run-deploy">
   1.451 +        <!-- Empty placeholder for easier customization. -->
   1.452 +        <!-- You can override this target in the ../build.xml file. -->
   1.453 +    </target>
   1.454 +    <target name="post-run-deploy">
   1.455 +        <!-- Empty placeholder for easier customization. -->
   1.456 +        <!-- You can override this target in the ../build.xml file. -->
   1.457 +    </target>
   1.458 +    <target name="-pre-nbmodule-run-deploy">
   1.459 +        <!-- Empty placeholder for easier customization. -->
   1.460 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   1.461 +    </target>
   1.462 +    <target name="-post-nbmodule-run-deploy">
   1.463 +        <!-- Empty placeholder for easier customization. -->
   1.464 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   1.465 +    </target>
   1.466 +    <target name="-run-deploy-am">
   1.467 +        <!-- Task to deploy to the Access Manager runtime. -->
   1.468 +    </target>
   1.469 +    <target depends="init,-init-cos,-init-deploy,compile,library-inclusion-in-archive,dist-directory-deploy,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.470 +        <nbjpdaappreloaded/>
   1.471 +    </target>
   1.472 +    <target if="netbeans.home" name="-run-deploy-nb">
   1.473 +        <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
   1.474 +    </target>
   1.475 +    <target name="-init-deploy-ant" unless="netbeans.home">
   1.476 +        <property name="deploy.ant.archive" value="${dist.jar}"/>
   1.477 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   1.478 +        <property name="deploy.ant.enabled" value="true"/>
   1.479 +    </target>
   1.480 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   1.481 +    <target if="netbeans.home" name="-run-undeploy-nb">
   1.482 +        <fail message="Undeploy is not supported from within the IDE"/>
   1.483 +    </target>
   1.484 +    <target depends="dist" name="verify">
   1.485 +        <nbverify file="${dist.jar}"/>
   1.486 +    </target>
   1.487 +    <target depends="init,compile-single" name="run-main">
   1.488 +        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   1.489 +        <ejbjarproject3:java classname="${run.class}"/>
   1.490 +    </target>
   1.491 +    <!--
   1.492 +                DEBUGGING SECTION
   1.493 +            -->
   1.494 +    <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
   1.495 +        <nbdeploy debugmode="true"/>
   1.496 +        <antcall target="connect-debugger"/>
   1.497 +    </target>
   1.498 +    <target name="connect-debugger" unless="is.debugged">
   1.499 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   1.500 +            <classpath>
   1.501 +                <path path="${debug.classpath}"/>
   1.502 +            </classpath>
   1.503 +            <sourcepath>
   1.504 +                <path path="${web.docbase.dir}"/>
   1.505 +            </sourcepath>
   1.506 +        </nbjpdaconnect>
   1.507 +    </target>
   1.508 +    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   1.509 +        <ejbjarproject1:nbjpdastart/>
   1.510 +    </target>
   1.511 +    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   1.512 +        <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
   1.513 +        <ejbjarproject1:debug/>
   1.514 +    </target>
   1.515 +    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
   1.516 +    <target depends="init" name="-pre-debug-fix">
   1.517 +        <fail unless="fix.includes">Must set fix.includes</fail>
   1.518 +        <property name="javac.includes" value="${fix.includes}.java"/>
   1.519 +    </target>
   1.520 +    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   1.521 +        <ejbjarproject1:nbjpdareload/>
   1.522 +    </target>
   1.523 +    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   1.524 +    <!--
   1.525 +                JAVADOC SECTION
   1.526 +            -->
   1.527 +    <target depends="init" name="javadoc-build">
   1.528 +        <mkdir dir="${dist.javadoc.dir}"/>
   1.529 +        <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.530 +            <classpath>
   1.531 +                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
   1.532 +            </classpath>
   1.533 +            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   1.534 +                <filename name="**/*.java"/>
   1.535 +            </fileset>
   1.536 +            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   1.537 +                <include name="**/*.java"/>
   1.538 +            </fileset>
   1.539 +        </javadoc>
   1.540 +    </target>
   1.541 +    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
   1.542 +        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   1.543 +    </target>
   1.544 +    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
   1.545 +    <!--
   1.546 +                JUNIT COMPILATION SECTION
   1.547 +            -->
   1.548 +    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   1.549 +        <mkdir dir="${build.test.classes.dir}"/>
   1.550 +        <property name="j2ee.platform.embeddableejb.classpath" value=""/>
   1.551 +    </target>
   1.552 +    <target name="-pre-compile-test">
   1.553 +        <!-- Empty placeholder for easier customization. -->
   1.554 +        <!-- You can override this target in the ../build.xml file. -->
   1.555 +    </target>
   1.556 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
   1.557 +        <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   1.558 +        <copy todir="${build.test.classes.dir}">
   1.559 +            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   1.560 +        </copy>
   1.561 +    </target>
   1.562 +    <target name="-post-compile-test">
   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 depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   1.567 +    <target name="-pre-compile-test-single">
   1.568 +        <!-- Empty placeholder for easier customization. -->
   1.569 +        <!-- You can override this target in the ../build.xml file. -->
   1.570 +    </target>
   1.571 +    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   1.572 +        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   1.573 +        <ejbjarproject2: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.574 +    </target>
   1.575 +    <target name="-post-compile-test-single">
   1.576 +        <!-- Empty placeholder for easier customization. -->
   1.577 +        <!-- You can override this target in the ../build.xml file. -->
   1.578 +    </target>
   1.579 +    <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.580 +    <!--
   1.581 +                JUNIT EXECUTION SECTION
   1.582 +            -->
   1.583 +    <target depends="init" if="have.tests" name="-pre-test-run">
   1.584 +        <mkdir dir="${build.test.results.dir}"/>
   1.585 +    </target>
   1.586 +    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   1.587 +        <ejbjarproject2:junit testincludes="**/*Test.java"/>
   1.588 +    </target>
   1.589 +    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   1.590 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   1.591 +    </target>
   1.592 +    <target depends="init" if="have.tests" name="test-report"/>
   1.593 +    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   1.594 +    <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.595 +    <target depends="init" if="have.tests" name="-pre-test-run-single">
   1.596 +        <mkdir dir="${build.test.results.dir}"/>
   1.597 +    </target>
   1.598 +    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   1.599 +        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   1.600 +        <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
   1.601 +    </target>
   1.602 +    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   1.603 +        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   1.604 +    </target>
   1.605 +    <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.606 +    <!--
   1.607 +                JUNIT DEBUGGING SECTION
   1.608 +            -->
   1.609 +    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   1.610 +        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   1.611 +        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   1.612 +        <delete file="${test.report.file}"/>
   1.613 +        <!-- the directory must exist, otherwise the XML formatter would fail -->
   1.614 +        <mkdir dir="${build.test.results.dir}"/>
   1.615 +        <ejbjarproject1: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.616 +            <customize>
   1.617 +                <arg value="showoutput=true"/>
   1.618 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   1.619 +                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   1.620 +            </customize>
   1.621 +        </ejbjarproject1:debug>
   1.622 +    </target>
   1.623 +    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   1.624 +        <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   1.625 +    </target>
   1.626 +    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   1.627 +    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   1.628 +        <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   1.629 +    </target>
   1.630 +    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   1.631 +    <!--
   1.632 +                CLEANUP SECTION
   1.633 +            -->
   1.634 +    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
   1.635 +        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="clean"/>
   1.636 +    </target>
   1.637 +    <target depends="init" name="-do-clean">
   1.638 +        <delete dir="${build.dir}"/>
   1.639 +        <delete dir="${dist.dir}"/>
   1.640 +    </target>
   1.641 +    <target name="-post-clean">
   1.642 +        <!-- Empty placeholder for easier customization. -->
   1.643 +        <!-- You can override this target in the ../build.xml file. -->
   1.644 +    </target>
   1.645 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
   1.646 +        <nbundeploy failOnError="false" startServer="false"/>
   1.647 +    </target>
   1.648 +    <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
   1.649 +    <target depends="clean" name="clean-ear"/>
   1.650 +</project>