java/nekurak.net-ejb/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Wed Jun 09 15:51:41 2010 +0200 (2010-06-09)
changeset 136 230bd05dcfec
parent 27 88f3012c60a2
child 142 44ef544460ca
permissions -rw-r--r--
PHP služba – Texy, HTTP API
     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="nekurak.net-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.SuperDAO}/build.xml" inheritall="false" target="jar">
   325             <property name="deploy.on.save" value="false"/>
   326         </ant>
   327         <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
   328             <property name="deploy.on.save" value="false"/>
   329         </ant>
   330     </target>
   331     <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
   332         <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
   333             <property name="deploy.on.save" value="false"/>
   334         </ant>
   335         <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
   336             <property name="deploy.on.save" value="false"/>
   337         </ant>
   338     </target>
   339     <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
   340     <target depends="init,deps-jar" name="-pre-pre-compile">
   341         <mkdir dir="${build.classes.dir}"/>
   342         <mkdir dir="${build.ear.classes.dir}"/>
   343     </target>
   344     <target name="-pre-compile">
   345         <!-- Empty placeholder for easier customization. -->
   346         <!-- You can override this target in the ../build.xml file. -->
   347     </target>
   348     <target depends="compile" name="library-inclusion-in-archive">
   349         <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.classes.dir}"/>
   350         <copyfiles files="${reference.SuperDAO.jar}" todir="${build.classes.dir}"/>
   351     </target>
   352     <target depends="compile" name="library-inclusion-in-manifest">
   353         <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
   354         <copyfiles files="${reference.SuperDAO.jar}" todir="${dist.ear.dir}/lib"/>
   355         <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
   356     </target>
   357     <target name="-copy-meta-inf">
   358         <copy todir="${classes.dir}">
   359             <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
   360         </copy>
   361         <copy todir="${classes.dir}/META-INF">
   362             <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
   363         </copy>
   364     </target>
   365     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
   366         <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
   367         <copy todir="${classes.dir}">
   368             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   369         </copy>
   370     </target>
   371     <target name="-post-compile">
   372         <!-- Empty placeholder for easier customization. -->
   373         <!-- You can override this target in the ../build.xml file. -->
   374     </target>
   375     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   376     <target name="-pre-compile-single">
   377         <!-- Empty placeholder for easier customization. -->
   378         <!-- You can override this target in the ../build.xml file. -->
   379     </target>
   380     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   381         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   382         <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
   383     </target>
   384     <target name="-post-compile-single">
   385         <!-- Empty placeholder for easier customization. -->
   386         <!-- You can override this target in the ../build.xml file. -->
   387     </target>
   388     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   389     <!--
   390                 DIST BUILDING SECTION
   391             -->
   392     <target name="-pre-dist">
   393         <!-- Empty placeholder for easier customization. -->
   394         <!-- You can override this target in the ../build.xml file. -->
   395     </target>
   396     <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
   397         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   398         <mkdir dir="${dist.jar.dir}"/>
   399         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   400             <fileset dir="${build.classes.dir}"/>
   401         </jar>
   402     </target>
   403     <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
   404         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   405         <mkdir dir="${dist.jar.dir}"/>
   406         <jar compress="${jar.compress}" jarfile="${dist.jar}">
   407             <fileset dir="${build.classes.dir}"/>
   408         </jar>
   409     </target>
   410     <!--
   411                 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   412             -->
   413     <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">
   414         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   415         <mkdir dir="${dist.jar.dir}"/>
   416         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   417             <fileset dir="${build.classes.dir}"/>
   418         </jar>
   419     </target>
   420     <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">
   421         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   422         <mkdir dir="${dist.jar.dir}"/>
   423         <jar compress="${jar.compress}" jarfile="${dist.jar}">
   424             <fileset dir="${build.classes.dir}"/>
   425         </jar>
   426     </target>
   427     <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"/>
   428     <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"/>
   429     <!--
   430                 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   431             -->
   432     <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
   433     <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
   434         <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
   435         <mkdir dir="${dist.jar.dir}"/>
   436         <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
   437             <fileset dir="${build.ear.classes.dir}"/>
   438         </jar>
   439     </target>
   440     <target name="-post-dist">
   441         <!-- Empty placeholder for easier customization. -->
   442         <!-- You can override this target in the ../build.xml file. -->
   443     </target>
   444     <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
   445     <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"/>
   446     <!--
   447                 EXECUTION SECTION
   448             -->
   449     <target depends="run-deploy" description="Deploy to server." name="run"/>
   450     <target name="-init-deploy">
   451         <property name="include.jar.manifest" value=""/>
   452     </target>
   453     <target name="pre-run-deploy">
   454         <!-- Empty placeholder for easier customization. -->
   455         <!-- You can override this target in the ../build.xml file. -->
   456     </target>
   457     <target name="post-run-deploy">
   458         <!-- Empty placeholder for easier customization. -->
   459         <!-- You can override this target in the ../build.xml file. -->
   460     </target>
   461     <target name="-pre-nbmodule-run-deploy">
   462         <!-- Empty placeholder for easier customization. -->
   463         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   464     </target>
   465     <target name="-post-nbmodule-run-deploy">
   466         <!-- Empty placeholder for easier customization. -->
   467         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   468     </target>
   469     <target name="-run-deploy-am">
   470         <!-- Task to deploy to the Access Manager runtime. -->
   471     </target>
   472     <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">
   473         <nbjpdaappreloaded/>
   474     </target>
   475     <target if="netbeans.home" name="-run-deploy-nb">
   476         <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
   477     </target>
   478     <target name="-init-deploy-ant" unless="netbeans.home">
   479         <property name="deploy.ant.archive" value="${dist.jar}"/>
   480         <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   481         <property name="deploy.ant.enabled" value="true"/>
   482     </target>
   483     <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   484     <target if="netbeans.home" name="-run-undeploy-nb">
   485         <fail message="Undeploy is not supported from within the IDE"/>
   486     </target>
   487     <target depends="dist" name="verify">
   488         <nbverify file="${dist.jar}"/>
   489     </target>
   490     <target depends="init,compile-single" name="run-main">
   491         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   492         <ejbjarproject3:java classname="${run.class}"/>
   493     </target>
   494     <!--
   495                 DEBUGGING SECTION
   496             -->
   497     <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
   498         <nbdeploy debugmode="true"/>
   499         <antcall target="connect-debugger"/>
   500     </target>
   501     <target name="connect-debugger" unless="is.debugged">
   502         <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   503             <classpath>
   504                 <path path="${debug.classpath}"/>
   505             </classpath>
   506             <sourcepath>
   507                 <path path="${web.docbase.dir}"/>
   508             </sourcepath>
   509         </nbjpdaconnect>
   510     </target>
   511     <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   512         <ejbjarproject1:nbjpdastart/>
   513     </target>
   514     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   515         <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
   516         <ejbjarproject1:debug/>
   517     </target>
   518     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
   519     <target depends="init" name="-pre-debug-fix">
   520         <fail unless="fix.includes">Must set fix.includes</fail>
   521         <property name="javac.includes" value="${fix.includes}.java"/>
   522     </target>
   523     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   524         <ejbjarproject1:nbjpdareload/>
   525     </target>
   526     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   527     <!--
   528                 JAVADOC SECTION
   529             -->
   530     <target depends="init" name="javadoc-build">
   531         <mkdir dir="${dist.javadoc.dir}"/>
   532         <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}">
   533             <classpath>
   534                 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
   535             </classpath>
   536             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   537                 <filename name="**/*.java"/>
   538             </fileset>
   539             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   540                 <include name="**/*.java"/>
   541             </fileset>
   542         </javadoc>
   543     </target>
   544     <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
   545         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   546     </target>
   547     <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
   548     <!--
   549                 JUNIT COMPILATION SECTION
   550             -->
   551     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   552         <mkdir dir="${build.test.classes.dir}"/>
   553         <property name="j2ee.platform.embeddableejb.classpath" value=""/>
   554     </target>
   555     <target name="-pre-compile-test">
   556         <!-- Empty placeholder for easier customization. -->
   557         <!-- You can override this target in the ../build.xml file. -->
   558     </target>
   559     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
   560         <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   561         <copy todir="${build.test.classes.dir}">
   562             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   563         </copy>
   564     </target>
   565     <target name="-post-compile-test">
   566         <!-- Empty placeholder for easier customization. -->
   567         <!-- You can override this target in the ../build.xml file. -->
   568     </target>
   569     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   570     <target name="-pre-compile-test-single">
   571         <!-- Empty placeholder for easier customization. -->
   572         <!-- You can override this target in the ../build.xml file. -->
   573     </target>
   574     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   575         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   576         <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}"/>
   577     </target>
   578     <target name="-post-compile-test-single">
   579         <!-- Empty placeholder for easier customization. -->
   580         <!-- You can override this target in the ../build.xml file. -->
   581     </target>
   582     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   583     <!--
   584                 JUNIT EXECUTION SECTION
   585             -->
   586     <target depends="init" if="have.tests" name="-pre-test-run">
   587         <mkdir dir="${build.test.results.dir}"/>
   588     </target>
   589     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   590         <ejbjarproject2:junit testincludes="**/*Test.java"/>
   591     </target>
   592     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   593         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   594     </target>
   595     <target depends="init" if="have.tests" name="test-report"/>
   596     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   597     <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   598     <target depends="init" if="have.tests" name="-pre-test-run-single">
   599         <mkdir dir="${build.test.results.dir}"/>
   600     </target>
   601     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   602         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   603         <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
   604     </target>
   605     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   606         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   607     </target>
   608     <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"/>
   609     <!--
   610                 JUNIT DEBUGGING SECTION
   611             -->
   612     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   613         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   614         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   615         <delete file="${test.report.file}"/>
   616         <!-- the directory must exist, otherwise the XML formatter would fail -->
   617         <mkdir dir="${build.test.results.dir}"/>
   618         <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}">
   619             <customize>
   620                 <arg value="showoutput=true"/>
   621                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   622                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   623             </customize>
   624         </ejbjarproject1:debug>
   625     </target>
   626     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   627         <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   628     </target>
   629     <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   630     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   631         <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   632     </target>
   633     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   634     <!--
   635                 CLEANUP SECTION
   636             -->
   637     <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
   638         <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="clean"/>
   639         <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
   640     </target>
   641     <target depends="init" name="-do-clean">
   642         <delete dir="${build.dir}"/>
   643         <delete dir="${dist.dir}"/>
   644     </target>
   645     <target name="-post-clean">
   646         <!-- Empty placeholder for easier customization. -->
   647         <!-- You can override this target in the ../build.xml file. -->
   648     </target>
   649     <target depends="init" if="netbeans.home" name="undeploy-clean">
   650         <nbundeploy failOnError="false" startServer="false"/>
   651     </target>
   652     <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
   653     <target depends="clean" name="clean-ear"/>
   654 </project>