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