java/SpringDemo1/SpringDemo1-ejb/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Wed Feb 10 20:55:08 2010 +0100 (2010-02-10)
changeset 1 9a3fced9634d
permissions -rw-r--r--
Přechod na EAR, EJB.
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 *** GENERATED FROM project.xml - DO NOT EDIT  ***
     4 ***         EDIT ../build.xml INSTEAD         ***
     5 
     6 For the purpose of easier reading the script
     7 is divided into following sections:
     8 
     9   - initialization
    10   - compilation
    11   - dist
    12   - execution
    13   - debugging
    14   - javadoc
    15   - cleanup
    16 
    17         -->
    18 <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">
    19     <import file="ant-deploy.xml"/>
    20     <fail message="Please build using Ant 1.7.1 or higher.">
    21         <condition>
    22             <not>
    23                 <antversion atleast="1.7.1"/>
    24             </not>
    25         </condition>
    26     </fail>
    27     <target depends="dist,javadoc" description="Build whole project." name="default"/>
    28     <!-- 
    29                 INITIALIZATION SECTION 
    30             -->
    31     <target name="-pre-init">
    32         <!-- Empty placeholder for easier customization. -->
    33         <!-- You can override this target in the ../build.xml file. -->
    34     </target>
    35     <target depends="-pre-init" name="-init-private">
    36         <property file="nbproject/private/private.properties"/>
    37     </target>
    38     <target depends="-pre-init,-init-private" name="-init-userdir">
    39         <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    40     </target>
    41     <target depends="-pre-init,-init-private,-init-userdir" name="-init-user">
    42         <property file="${user.properties.file}"/>
    43         <!-- The two properties below are usually overridden -->
    44         <!-- by the active platform. Just a fallback. -->
    45         <property name="default.javac.source" value="1.4"/>
    46         <property name="default.javac.target" value="1.4"/>
    47     </target>
    48     <target depends="-pre-init,-init-private,-init-userdir,-init-user" name="-init-project">
    49         <property file="nbproject/project.properties"/>
    50     </target>
    51     <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
    52         <!-- Ensure configuration directory exists. -->
    53         <mkdir dir="${meta.inf}"/>
    54         <property name="runmain.jvmargs" value=""/>
    55         <condition property="have.tests">
    56             <or>
    57                 <available file="${test.src.dir}"/>
    58             </or>
    59         </condition>
    60         <condition property="have.sources">
    61             <or>
    62                 <available file="${src.dir}"/>
    63             </or>
    64         </condition>
    65         <condition property="netbeans.home+have.tests">
    66             <and>
    67                 <isset property="netbeans.home"/>
    68                 <isset property="have.tests"/>
    69             </and>
    70         </condition>
    71         <condition property="no.javadoc.preview">
    72             <isfalse value="${javadoc.preview}"/>
    73         </condition>
    74         <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
    75         <!--
    76                     Variables needed to support directory deployment.
    77                 -->
    78         <condition property="do.package.with.custom.manifest.not.directory.deploy">
    79             <and>
    80                 <isset property="has.custom.manifest"/>
    81                 <isfalse value="${directory.deployment.supported}"/>
    82             </and>
    83         </condition>
    84         <condition property="do.package.without.custom.manifest.not.directory.deploy">
    85             <and>
    86                 <not>
    87                     <isset property="has.custom.manifest"/>
    88                 </not>
    89                 <isfalse value="${directory.deployment.supported}"/>
    90             </and>
    91         </condition>
    92         <!--End Variables needed to support directory deployment.-->
    93         <condition property="classes.dir" value="${build.ear.classes.dir}">
    94             <isset property="dist.ear.dir"/>
    95         </condition>
    96         <property name="classes.dir" value="${build.classes.dir}"/>
    97         <condition property="no.deps">
    98             <and>
    99                 <istrue value="${no.dependencies}"/>
   100             </and>
   101         </condition>
   102         <condition property="no.dist.ear.dir">
   103             <not>
   104                 <isset property="dist.ear.dir"/>
   105             </not>
   106         </condition>
   107         <property name="source.encoding" value="${file.encoding}"/>
   108         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
   109             <and>
   110                 <isset property="javadoc.encoding"/>
   111                 <not>
   112                     <equals arg1="${javadoc.encoding}" arg2=""/>
   113                 </not>
   114             </and>
   115         </condition>
   116         <property name="javadoc.encoding.used" value="${source.encoding}"/>
   117         <property name="includes" value="**"/>
   118         <property name="excludes" value=""/>
   119         <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   120         <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   121             <length length="0" string="${endorsed.classpath}" when="greater"/>
   122         </condition>
   123     </target>
   124     <target depends="init" name="-init-cos" unless="deploy.on.save">
   125         <condition property="deploy.on.save" value="true">
   126             <istrue value="${j2ee.deploy.on.save}"/>
   127         </condition>
   128     </target>
   129     <target name="-post-init">
   130         <!-- Empty placeholder for easier customization. -->
   131         <!-- You can override this target in the ../build.xml file. -->
   132     </target>
   133     <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
   134         <fail unless="src.dir">Must set src.dir</fail>
   135         <fail unless="test.src.dir">Must set test.src.dir</fail>
   136         <fail unless="build.dir">Must set build.dir</fail>
   137         <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   138         <fail unless="dist.dir">Must set dist.dir</fail>
   139         <fail unless="build.classes.dir">Must set build.classes.dir</fail>
   140         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
   141         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   142         <fail unless="dist.jar">Must set dist.jar</fail>
   143         <fail unless="j2ee.platform.classpath">
   144 The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
   145 Either open the project in the IDE and assign the server or setup the server classpath manually.
   146 For example like this:
   147    ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
   148 or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
   149                 </fail>
   150     </target>
   151     <target name="-init-macrodef-property">
   152         <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   153             <attribute name="name"/>
   154             <attribute name="value"/>
   155             <sequential>
   156                 <property name="@{name}" value="${@{value}}"/>
   157             </sequential>
   158         </macrodef>
   159     </target>
   160     <target name="-init-macrodef-javac">
   161         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   162             <attribute default="${src.dir}" name="srcdir"/>
   163             <attribute default="${build.classes.dir}" name="destdir"/>
   164             <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   165             <attribute default="${includes}" name="includes"/>
   166             <attribute default="${excludes}" name="excludes"/>
   167             <attribute default="${javac.debug}" name="debug"/>
   168             <attribute default="${empty.dir}" name="gensrcdir"/>
   169             <element name="customize" optional="true"/>
   170             <sequential>
   171                 <property name="javac.compilerargs" value=""/>
   172                 <property location="${build.dir}/empty" name="empty.dir"/>
   173                 <mkdir dir="${empty.dir}"/>
   174                 <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}">
   175                     <src>
   176                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   177                             <include name="*"/>
   178                         </dirset>
   179                     </src>
   180                     <classpath>
   181                         <path path="@{classpath}"/>
   182                     </classpath>
   183                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   184                     <compilerarg line="${javac.compilerargs}"/>
   185                     <customize/>
   186                 </javac>
   187             </sequential>
   188         </macrodef>
   189     </target>
   190     <target name="-init-macrodef-junit">
   191         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   192             <attribute default="${includes}" name="includes"/>
   193             <attribute default="${excludes}" name="excludes"/>
   194             <attribute default="**" name="testincludes"/>
   195             <sequential>
   196                 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
   197                     <batchtest todir="${build.test.results.dir}">
   198                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   199                             <filename name="@{testincludes}"/>
   200                         </fileset>
   201                     </batchtest>
   202                     <classpath>
   203                         <path path="${run.test.classpath}"/>
   204                         <path path="${j2ee.platform.classpath}"/>
   205                         <path path="${j2ee.platform.embeddableejb.classpath}"/>
   206                     </classpath>
   207                     <syspropertyset>
   208                         <propertyref prefix="test-sys-prop."/>
   209                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   210                     </syspropertyset>
   211                     <formatter type="brief" usefile="false"/>
   212                     <formatter type="xml"/>
   213                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   214                     <jvmarg line="${runmain.jvmargs}"/>
   215                 </junit>
   216             </sequential>
   217         </macrodef>
   218     </target>
   219     <target name="-init-macrodef-java">
   220         <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
   221             <attribute default="${main.class}" name="classname"/>
   222             <element name="customize" optional="true"/>
   223             <sequential>
   224                 <java classname="@{classname}" fork="true">
   225                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   226                     <jvmarg line="${runmain.jvmargs}"/>
   227                     <classpath>
   228                         <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
   229                     </classpath>
   230                     <syspropertyset>
   231                         <propertyref prefix="run-sys-prop."/>
   232                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   233                     </syspropertyset>
   234                     <customize/>
   235                 </java>
   236             </sequential>
   237         </macrodef>
   238     </target>
   239     <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   240         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   241             <attribute default="${main.class}" name="name"/>
   242             <attribute default="${debug.classpath}" name="classpath"/>
   243             <sequential>
   244                 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
   245                     <classpath>
   246                         <path path="@{classpath}"/>
   247                     </classpath>
   248                 </nbjpdastart>
   249             </sequential>
   250         </macrodef>
   251         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   252             <attribute default="${build.classes.dir}" name="dir"/>
   253             <sequential>
   254                 <nbjpdareload>
   255                     <fileset dir="@{dir}" includes="${fix.classes}">
   256                         <include name="${fix.includes}*.class"/>
   257                     </fileset>
   258                 </nbjpdareload>
   259             </sequential>
   260         </macrodef>
   261         <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
   262             <sequential>
   263                 <nbjpdaappreloaded/>
   264             </sequential>
   265         </macrodef>
   266     </target>
   267     <target name="-init-debug-args">
   268         <property name="version-output" value="java version &quot;${ant.java.version}"/>
   269         <condition property="have-jdk-older-than-1.4">
   270             <or>
   271                 <contains string="${version-output}" substring="java version &quot;1.0"/>
   272                 <contains string="${version-output}" substring="java version &quot;1.1"/>
   273                 <contains string="${version-output}" substring="java version &quot;1.2"/>
   274                 <contains string="${version-output}" substring="java version &quot;1.3"/>
   275             </or>
   276         </condition>
   277         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   278             <istrue value="${have-jdk-older-than-1.4}"/>
   279         </condition>
   280         <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   281             <os family="windows"/>
   282         </condition>
   283         <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   284             <isset property="debug.transport"/>
   285         </condition>
   286     </target>
   287     <target depends="-init-debug-args" name="-init-macrodef-debug">
   288         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   289             <attribute default="${main.class}" name="classname"/>
   290             <attribute default="${debug.classpath}" name="classpath"/>
   291             <attribute default="${application.args}" name="args"/>
   292             <element name="customize" optional="true"/>
   293             <sequential>
   294                 <java classname="@{classname}" fork="true">
   295                     <jvmarg line="${debug-args-line}"/>
   296                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   297                     <classpath>
   298                         <path path="@{classpath}"/>
   299                     </classpath>
   300                     <arg line="@{args}"/>
   301                     <customize/>
   302                 </java>
   303             </sequential>
   304         </macrodef>
   305     </target>
   306     <target name="-init-taskdefs">
   307         <fail unless="libs.CopyLibs.classpath">
   308 The libs.CopyLibs.classpath property is not set up.
   309 This property must point to 
   310 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   311 of NetBeans IDE installation and is usually located at 
   312 &lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   313 Either open the project in the IDE and make sure CopyLibs library
   314 exists or setup the property manually. For example like this:
   315  ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   316                 </fail>
   317         <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   318     </target>
   319     <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"/>
   320     <!--
   321                 COMPILATION SECTION
   322             -->
   323     <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
   324         <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
   325             <property name="deploy.on.save" value="false"/>
   326         </ant>
   327     </target>
   328     <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
   329         <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
   330             <property name="deploy.on.save" value="false"/>
   331         </ant>
   332     </target>
   333     <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
   334     <target depends="init,deps-jar" name="-pre-pre-compile">
   335         <mkdir dir="${build.classes.dir}"/>
   336         <mkdir dir="${build.ear.classes.dir}"/>
   337     </target>
   338     <target name="-pre-compile">
   339         <!-- Empty placeholder for easier customization. -->
   340         <!-- You can override this target in the ../build.xml file. -->
   341     </target>
   342     <target depends="compile" name="library-inclusion-in-archive">
   343         <copyfiles files="${reference.SpringDemo1-lib.jar}" todir="${build.classes.dir}"/>
   344         <copyfiles files="${libs.spring-framework.classpath}" todir="${build.classes.dir}"/>
   345     </target>
   346     <target depends="compile" name="library-inclusion-in-manifest">
   347         <copyfiles files="${reference.SpringDemo1-lib.jar}" todir="${dist.ear.dir}/lib"/>
   348         <copyfiles files="${libs.spring-framework.classpath}" todir="${dist.ear.dir}/lib"/>
   349         <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
   350     </target>
   351     <target name="-copy-meta-inf">
   352         <copy todir="${classes.dir}">
   353             <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
   354         </copy>
   355         <copy todir="${classes.dir}/META-INF">
   356             <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
   357         </copy>
   358     </target>
   359     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
   360         <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
   361         <copy todir="${classes.dir}">
   362             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   363         </copy>
   364     </target>
   365     <target name="-post-compile">
   366         <!-- Empty placeholder for easier customization. -->
   367         <!-- You can override this target in the ../build.xml file. -->
   368     </target>
   369     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   370     <target name="-pre-compile-single">
   371         <!-- Empty placeholder for easier customization. -->
   372         <!-- You can override this target in the ../build.xml file. -->
   373     </target>
   374     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   375         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   376         <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
   377     </target>
   378     <target name="-post-compile-single">
   379         <!-- Empty placeholder for easier customization. -->
   380         <!-- You can override this target in the ../build.xml file. -->
   381     </target>
   382     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   383     <!--
   384                 DIST BUILDING SECTION
   385             -->
   386     <target name="-pre-dist">
   387         <!-- Empty placeholder for easier customization. -->
   388         <!-- You can override this target in the ../build.xml file. -->
   389     </target>
   390     <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
   391         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   392         <mkdir dir="${dist.jar.dir}"/>
   393         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   394             <fileset dir="${build.classes.dir}"/>
   395         </jar>
   396     </target>
   397     <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
   398         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   399         <mkdir dir="${dist.jar.dir}"/>
   400         <jar compress="${jar.compress}" jarfile="${dist.jar}">
   401             <fileset dir="${build.classes.dir}"/>
   402         </jar>
   403     </target>
   404     <!--
   405                 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   406             -->
   407     <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">
   408         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   409         <mkdir dir="${dist.jar.dir}"/>
   410         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   411             <fileset dir="${build.classes.dir}"/>
   412         </jar>
   413     </target>
   414     <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">
   415         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   416         <mkdir dir="${dist.jar.dir}"/>
   417         <jar compress="${jar.compress}" jarfile="${dist.jar}">
   418             <fileset dir="${build.classes.dir}"/>
   419         </jar>
   420     </target>
   421     <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"/>
   422     <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"/>
   423     <!--
   424                 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   425             -->
   426     <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
   427     <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
   428         <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
   429         <mkdir dir="${dist.jar.dir}"/>
   430         <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
   431             <fileset dir="${build.ear.classes.dir}"/>
   432         </jar>
   433     </target>
   434     <target name="-post-dist">
   435         <!-- Empty placeholder for easier customization. -->
   436         <!-- You can override this target in the ../build.xml file. -->
   437     </target>
   438     <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
   439     <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"/>
   440     <!--
   441                 EXECUTION SECTION
   442             -->
   443     <target depends="run-deploy" description="Deploy to server." name="run"/>
   444     <target name="-init-deploy">
   445         <property name="include.jar.manifest" value=""/>
   446     </target>
   447     <target name="pre-run-deploy">
   448         <!-- Empty placeholder for easier customization. -->
   449         <!-- You can override this target in the ../build.xml file. -->
   450     </target>
   451     <target name="post-run-deploy">
   452         <!-- Empty placeholder for easier customization. -->
   453         <!-- You can override this target in the ../build.xml file. -->
   454     </target>
   455     <target name="-pre-nbmodule-run-deploy">
   456         <!-- Empty placeholder for easier customization. -->
   457         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   458     </target>
   459     <target name="-post-nbmodule-run-deploy">
   460         <!-- Empty placeholder for easier customization. -->
   461         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   462     </target>
   463     <target name="-run-deploy-am">
   464         <!-- Task to deploy to the Access Manager runtime. -->
   465     </target>
   466     <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">
   467         <nbjpdaappreloaded/>
   468     </target>
   469     <target if="netbeans.home" name="-run-deploy-nb">
   470         <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
   471     </target>
   472     <target name="-init-deploy-ant" unless="netbeans.home">
   473         <property name="deploy.ant.archive" value="${dist.jar}"/>
   474         <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   475         <property name="deploy.ant.enabled" value="true"/>
   476     </target>
   477     <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   478     <target if="netbeans.home" name="-run-undeploy-nb">
   479         <fail message="Undeploy is not supported from within the IDE"/>
   480     </target>
   481     <target depends="dist" name="verify">
   482         <nbverify file="${dist.jar}"/>
   483     </target>
   484     <target depends="init,compile-single" name="run-main">
   485         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   486         <ejbjarproject3:java classname="${run.class}"/>
   487     </target>
   488     <!--
   489                 DEBUGGING SECTION
   490             -->
   491     <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
   492         <nbdeploy debugmode="true"/>
   493         <antcall target="connect-debugger"/>
   494     </target>
   495     <target name="connect-debugger" unless="is.debugged">
   496         <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   497             <classpath>
   498                 <path path="${debug.classpath}"/>
   499             </classpath>
   500             <sourcepath>
   501                 <path path="${web.docbase.dir}"/>
   502             </sourcepath>
   503         </nbjpdaconnect>
   504     </target>
   505     <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   506         <ejbjarproject1:nbjpdastart/>
   507     </target>
   508     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   509         <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
   510         <ejbjarproject1:debug/>
   511     </target>
   512     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
   513     <target depends="init" name="-pre-debug-fix">
   514         <fail unless="fix.includes">Must set fix.includes</fail>
   515         <property name="javac.includes" value="${fix.includes}.java"/>
   516     </target>
   517     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   518         <ejbjarproject1:nbjpdareload/>
   519     </target>
   520     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   521     <!--
   522                 JAVADOC SECTION
   523             -->
   524     <target depends="init" name="javadoc-build">
   525         <mkdir dir="${dist.javadoc.dir}"/>
   526         <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}">
   527             <classpath>
   528                 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
   529             </classpath>
   530             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   531                 <filename name="**/*.java"/>
   532             </fileset>
   533             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   534                 <include name="**/*.java"/>
   535             </fileset>
   536         </javadoc>
   537     </target>
   538     <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
   539         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   540     </target>
   541     <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
   542     <!--
   543                 JUNIT COMPILATION SECTION
   544             -->
   545     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   546         <mkdir dir="${build.test.classes.dir}"/>
   547         <property name="j2ee.platform.embeddableejb.classpath" value=""/>
   548     </target>
   549     <target name="-pre-compile-test">
   550         <!-- Empty placeholder for easier customization. -->
   551         <!-- You can override this target in the ../build.xml file. -->
   552     </target>
   553     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
   554         <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   555         <copy todir="${build.test.classes.dir}">
   556             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   557         </copy>
   558     </target>
   559     <target name="-post-compile-test">
   560         <!-- Empty placeholder for easier customization. -->
   561         <!-- You can override this target in the ../build.xml file. -->
   562     </target>
   563     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   564     <target name="-pre-compile-test-single">
   565         <!-- Empty placeholder for easier customization. -->
   566         <!-- You can override this target in the ../build.xml file. -->
   567     </target>
   568     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   569         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   570         <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}"/>
   571     </target>
   572     <target name="-post-compile-test-single">
   573         <!-- Empty placeholder for easier customization. -->
   574         <!-- You can override this target in the ../build.xml file. -->
   575     </target>
   576     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   577     <!--
   578                 JUNIT EXECUTION SECTION
   579             -->
   580     <target depends="init" if="have.tests" name="-pre-test-run">
   581         <mkdir dir="${build.test.results.dir}"/>
   582     </target>
   583     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   584         <ejbjarproject2:junit testincludes="**/*Test.java"/>
   585     </target>
   586     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   587         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   588     </target>
   589     <target depends="init" if="have.tests" name="test-report"/>
   590     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   591     <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   592     <target depends="init" if="have.tests" name="-pre-test-run-single">
   593         <mkdir dir="${build.test.results.dir}"/>
   594     </target>
   595     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   596         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   597         <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
   598     </target>
   599     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   600         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   601     </target>
   602     <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"/>
   603     <!--
   604                 JUNIT DEBUGGING SECTION
   605             -->
   606     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   607         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   608         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   609         <delete file="${test.report.file}"/>
   610         <!-- the directory must exist, otherwise the XML formatter would fail -->
   611         <mkdir dir="${build.test.results.dir}"/>
   612         <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}">
   613             <customize>
   614                 <arg value="showoutput=true"/>
   615                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   616                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   617             </customize>
   618         </ejbjarproject1:debug>
   619     </target>
   620     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   621         <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   622     </target>
   623     <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   624     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   625         <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   626     </target>
   627     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   628     <!--
   629                 CLEANUP SECTION
   630             -->
   631     <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
   632         <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="clean"/>
   633     </target>
   634     <target depends="init" name="-do-clean">
   635         <delete dir="${build.dir}"/>
   636         <delete dir="${dist.dir}"/>
   637     </target>
   638     <target name="-post-clean">
   639         <!-- Empty placeholder for easier customization. -->
   640         <!-- You can override this target in the ../build.xml file. -->
   641     </target>
   642     <target depends="init" if="netbeans.home" name="undeploy-clean">
   643         <nbundeploy failOnError="false" startServer="false"/>
   644     </target>
   645     <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
   646     <target depends="clean" name="clean-ear"/>
   647 </project>