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