java/nekurak.net-ejb/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Sun Jan 09 23:34:16 2011 +0100 (2011-01-09)
changeset 161 5421bbe5973b
parent 149 8238cdb4113a
child 186 b0f7d9ab4a07
permissions -rw-r--r--
Parametr jsessionid by se nikdy neměl dostat do URL.
     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         <condition property="missing.j2ee.server.home">
   144             <and>
   145                 <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
   146                 <not>
   147                     <isset property="j2ee.server.home"/>
   148                 </not>
   149             </and>
   150         </condition>
   151         <fail if="missing.j2ee.server.home">
   152 The Java EE server classpath is not correctly set up - server home directory is missing.
   153 Either open the project in the IDE and assign the server or setup the server classpath manually.
   154 For example like this:
   155    ant -Dj2ee.server.home=&lt;app_server_installation_directory&gt;
   156                 </fail>
   157         <fail unless="j2ee.platform.classpath">
   158 The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
   159 Either open the project in the IDE and assign the server or setup the server classpath manually.
   160 For example like this:
   161    ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
   162 or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
   163                 </fail>
   164     </target>
   165     <target name="-init-macrodef-property">
   166         <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   167             <attribute name="name"/>
   168             <attribute name="value"/>
   169             <sequential>
   170                 <property name="@{name}" value="${@{value}}"/>
   171             </sequential>
   172         </macrodef>
   173     </target>
   174     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
   175         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   176             <attribute default="${src.dir}" name="srcdir"/>
   177             <attribute default="${build.classes.dir}" name="destdir"/>
   178             <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   179             <attribute default="${javac.processorpath}" name="processorpath"/>
   180             <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   181             <attribute default="${includes}" name="includes"/>
   182             <attribute default="${excludes}" name="excludes"/>
   183             <attribute default="${javac.debug}" name="debug"/>
   184             <attribute default="${empty.dir}" name="gensrcdir"/>
   185             <element name="customize" optional="true"/>
   186             <sequential>
   187                 <property name="javac.compilerargs" value=""/>
   188                 <property location="${build.dir}/empty" name="empty.dir"/>
   189                 <mkdir dir="${empty.dir}"/>
   190                 <mkdir dir="@{apgeneratedsrcdir}"/>
   191                 <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}">
   192                     <src>
   193                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   194                             <include name="*"/>
   195                         </dirset>
   196                     </src>
   197                     <classpath>
   198                         <path path="@{classpath}"/>
   199                     </classpath>
   200                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   201                     <compilerarg line="${javac.compilerargs}"/>
   202                     <compilerarg value="-processorpath"/>
   203                     <compilerarg path="@{processorpath}:${empty.dir}"/>
   204                     <compilerarg line="${ap.processors.internal}"/>
   205                     <compilerarg value="-s"/>
   206                     <compilerarg path="@{apgeneratedsrcdir}"/>
   207                     <compilerarg line="${ap.proc.none.internal}"/>
   208                     <customize/>
   209                 </javac>
   210             </sequential>
   211         </macrodef>
   212     </target>
   213     <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
   214         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   215             <attribute default="${src.dir}" name="srcdir"/>
   216             <attribute default="${build.classes.dir}" name="destdir"/>
   217             <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   218             <attribute default="${javac.processorpath}" name="processorpath"/>
   219             <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
   220             <attribute default="${includes}" name="includes"/>
   221             <attribute default="${excludes}" name="excludes"/>
   222             <attribute default="${javac.debug}" name="debug"/>
   223             <attribute default="${empty.dir}" name="gensrcdir"/>
   224             <element name="customize" optional="true"/>
   225             <sequential>
   226                 <property name="javac.compilerargs" value=""/>
   227                 <property location="${build.dir}/empty" name="empty.dir"/>
   228                 <mkdir dir="${empty.dir}"/>
   229                 <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}">
   230                     <src>
   231                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">
   232                             <include name="*"/>
   233                         </dirset>
   234                     </src>
   235                     <classpath>
   236                         <path path="@{classpath}"/>
   237                     </classpath>
   238                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
   239                     <compilerarg line="${javac.compilerargs}"/>
   240                     <customize/>
   241                 </javac>
   242             </sequential>
   243         </macrodef>
   244     </target>
   245     <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
   246         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   247             <attribute default="${src.dir}" name="srcdir"/>
   248             <attribute default="${build.classes.dir}" name="destdir"/>
   249             <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
   250             <sequential>
   251                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
   252                     <classpath>
   253                         <path path="@{classpath}"/>
   254                     </classpath>
   255                 </depend>
   256             </sequential>
   257         </macrodef>
   258         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   259             <attribute default="${build.classes.dir}" name="destdir"/>
   260             <sequential>
   261                 <fail unless="javac.includes">Must set javac.includes</fail>
   262                 <pathconvert pathsep="," property="javac.includes.binary">
   263                     <path>
   264                         <filelist dir="@{destdir}" files="${javac.includes}"/>
   265                     </path>
   266                     <globmapper from="*.java" to="*.class"/>
   267                 </pathconvert>
   268                 <delete>
   269                     <files includes="${javac.includes.binary}"/>
   270                 </delete>
   271             </sequential>
   272         </macrodef>
   273     </target>
   274     <target name="-init-macrodef-junit">
   275         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
   276             <attribute default="${includes}" name="includes"/>
   277             <attribute default="${excludes}" name="excludes"/>
   278             <attribute default="**" name="testincludes"/>
   279             <sequential>
   280                 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
   281                     <batchtest todir="${build.test.results.dir}">
   282                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
   283                             <filename name="@{testincludes}"/>
   284                         </fileset>
   285                     </batchtest>
   286                     <classpath>
   287                         <path path="${run.test.classpath}"/>
   288                         <path path="${j2ee.platform.classpath}"/>
   289                         <path path="${j2ee.platform.embeddableejb.classpath}"/>
   290                     </classpath>
   291                     <syspropertyset>
   292                         <propertyref prefix="test-sys-prop."/>
   293                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   294                     </syspropertyset>
   295                     <formatter type="brief" usefile="false"/>
   296                     <formatter type="xml"/>
   297                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   298                     <jvmarg line="${runmain.jvmargs}"/>
   299                 </junit>
   300             </sequential>
   301         </macrodef>
   302     </target>
   303     <target name="-init-macrodef-java">
   304         <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
   305             <attribute default="${main.class}" name="classname"/>
   306             <element name="customize" optional="true"/>
   307             <sequential>
   308                 <java classname="@{classname}" fork="true">
   309                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   310                     <jvmarg line="${runmain.jvmargs}"/>
   311                     <classpath>
   312                         <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
   313                     </classpath>
   314                     <syspropertyset>
   315                         <propertyref prefix="run-sys-prop."/>
   316                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   317                     </syspropertyset>
   318                     <customize/>
   319                 </java>
   320             </sequential>
   321         </macrodef>
   322     </target>
   323     <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
   324         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   325             <attribute default="${main.class}" name="name"/>
   326             <attribute default="${debug.classpath}" name="classpath"/>
   327             <sequential>
   328                 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
   329                     <classpath>
   330                         <path path="@{classpath}"/>
   331                     </classpath>
   332                 </nbjpdastart>
   333             </sequential>
   334         </macrodef>
   335         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   336             <attribute default="${build.classes.dir}" name="dir"/>
   337             <sequential>
   338                 <nbjpdareload>
   339                     <fileset dir="@{dir}" includes="${fix.classes}">
   340                         <include name="${fix.includes}*.class"/>
   341                     </fileset>
   342                 </nbjpdareload>
   343             </sequential>
   344         </macrodef>
   345         <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
   346             <sequential>
   347                 <nbjpdaappreloaded/>
   348             </sequential>
   349         </macrodef>
   350     </target>
   351     <target name="-init-debug-args">
   352         <property name="version-output" value="java version &quot;${ant.java.version}"/>
   353         <condition property="have-jdk-older-than-1.4">
   354             <or>
   355                 <contains string="${version-output}" substring="java version &quot;1.0"/>
   356                 <contains string="${version-output}" substring="java version &quot;1.1"/>
   357                 <contains string="${version-output}" substring="java version &quot;1.2"/>
   358                 <contains string="${version-output}" substring="java version &quot;1.3"/>
   359             </or>
   360         </condition>
   361         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   362             <istrue value="${have-jdk-older-than-1.4}"/>
   363         </condition>
   364         <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   365             <os family="windows"/>
   366         </condition>
   367         <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
   368             <isset property="debug.transport"/>
   369         </condition>
   370     </target>
   371     <target depends="-init-debug-args" name="-init-macrodef-debug">
   372         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
   373             <attribute default="${main.class}" name="classname"/>
   374             <attribute default="${debug.classpath}" name="classpath"/>
   375             <attribute default="${application.args}" name="args"/>
   376             <element name="customize" optional="true"/>
   377             <sequential>
   378                 <java classname="@{classname}" fork="true">
   379                     <jvmarg line="${debug-args-line}"/>
   380                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
   381                     <jvmarg line="${runmain.jvmargs}"/>
   382                     <classpath>
   383                         <path path="@{classpath}"/>
   384                     </classpath>
   385                     <arg line="@{args}"/>
   386                     <customize/>
   387                 </java>
   388             </sequential>
   389         </macrodef>
   390     </target>
   391     <target name="-init-taskdefs">
   392         <fail unless="libs.CopyLibs.classpath">
   393 The libs.CopyLibs.classpath property is not set up.
   394 This property must point to 
   395 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   396 of NetBeans IDE installation and is usually located at 
   397 &lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   398 Either open the project in the IDE and make sure CopyLibs library
   399 exists or setup the property manually. For example like this:
   400  ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   401                 </fail>
   402         <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   403     </target>
   404     <target name="-init-ap-cmdline-properties">
   405         <property name="annotation.processing.enabled" value="true"/>
   406         <property name="annotation.processing.processors.list" value=""/>
   407         <property name="annotation.processing.run.all.processors" value="true"/>
   408         <property name="javac.processorpath" value="${javac.classpath}"/>
   409         <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
   410         <condition property="ap.supported.internal" value="true">
   411             <not>
   412                 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
   413             </not>
   414         </condition>
   415     </target>
   416     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
   417         <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
   418             <isfalse value="${annotation.processing.run.all.processors}"/>
   419         </condition>
   420         <condition else="" property="ap.proc.none.internal" value="-proc:none">
   421             <isfalse value="${annotation.processing.enabled}"/>
   422         </condition>
   423     </target>
   424     <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
   425         <property name="ap.cmd.line.internal" value=""/>
   426     </target>
   427     <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,-init-ap-cmdline" name="init"/>
   428     <!--
   429                 COMPILATION SECTION
   430             -->
   431     <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
   432         <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
   433             <property name="deploy.on.save" value="false"/>
   434         </ant>
   435         <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
   436             <property name="deploy.on.save" value="false"/>
   437         </ant>
   438     </target>
   439     <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
   440         <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
   441             <property name="deploy.on.save" value="false"/>
   442         </ant>
   443         <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
   444             <property name="deploy.on.save" value="false"/>
   445         </ant>
   446     </target>
   447     <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
   448     <target depends="init,deps-jar" name="-pre-pre-compile">
   449         <mkdir dir="${build.classes.dir}"/>
   450         <mkdir dir="${build.ear.classes.dir}"/>
   451     </target>
   452     <target name="-pre-compile">
   453         <!-- Empty placeholder for easier customization. -->
   454         <!-- You can override this target in the ../build.xml file. -->
   455     </target>
   456     <target depends="compile" name="library-inclusion-in-archive">
   457         <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.classes.dir}"/>
   458         <copyfiles files="${reference.SuperDAO.jar}" todir="${build.classes.dir}"/>
   459         <copyfiles files="${libs.Smack-XMPP.classpath}" todir="${build.classes.dir}"/>
   460     </target>
   461     <target depends="compile" name="library-inclusion-in-manifest">
   462         <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
   463         <copyfiles files="${reference.SuperDAO.jar}" todir="${dist.ear.dir}/lib"/>
   464         <copyfiles files="${libs.Smack-XMPP.classpath}" todir="${dist.ear.dir}/lib"/>
   465         <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
   466     </target>
   467     <target name="-copy-meta-inf">
   468         <copy todir="${classes.dir}">
   469             <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
   470         </copy>
   471         <copy todir="${classes.dir}/META-INF">
   472             <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
   473         </copy>
   474     </target>
   475     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
   476         <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
   477         <copy todir="${classes.dir}">
   478             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   479         </copy>
   480     </target>
   481     <target name="-post-compile">
   482         <!-- Empty placeholder for easier customization. -->
   483         <!-- You can override this target in the ../build.xml file. -->
   484     </target>
   485     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   486     <target name="-pre-compile-single">
   487         <!-- Empty placeholder for easier customization. -->
   488         <!-- You can override this target in the ../build.xml file. -->
   489     </target>
   490     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   491         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   492         <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
   493     </target>
   494     <target name="-post-compile-single">
   495         <!-- Empty placeholder for easier customization. -->
   496         <!-- You can override this target in the ../build.xml file. -->
   497     </target>
   498     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   499     <!--
   500                 DIST BUILDING SECTION
   501             -->
   502     <target name="-pre-dist">
   503         <!-- Empty placeholder for easier customization. -->
   504         <!-- You can override this target in the ../build.xml file. -->
   505     </target>
   506     <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
   507         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   508         <mkdir dir="${dist.jar.dir}"/>
   509         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   510             <fileset dir="${build.classes.dir}"/>
   511         </jar>
   512     </target>
   513     <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
   514         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   515         <mkdir dir="${dist.jar.dir}"/>
   516         <jar compress="${jar.compress}" jarfile="${dist.jar}">
   517             <fileset dir="${build.classes.dir}"/>
   518         </jar>
   519     </target>
   520     <!--
   521                 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   522             -->
   523     <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">
   524         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   525         <mkdir dir="${dist.jar.dir}"/>
   526         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   527             <fileset dir="${build.classes.dir}"/>
   528         </jar>
   529     </target>
   530     <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">
   531         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   532         <mkdir dir="${dist.jar.dir}"/>
   533         <jar compress="${jar.compress}" jarfile="${dist.jar}">
   534             <fileset dir="${build.classes.dir}"/>
   535         </jar>
   536     </target>
   537     <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"/>
   538     <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"/>
   539     <!--
   540                 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   541             -->
   542     <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
   543     <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
   544         <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
   545         <mkdir dir="${dist.jar.dir}"/>
   546         <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
   547             <fileset dir="${build.ear.classes.dir}"/>
   548         </jar>
   549     </target>
   550     <target name="-post-dist">
   551         <!-- Empty placeholder for easier customization. -->
   552         <!-- You can override this target in the ../build.xml file. -->
   553     </target>
   554     <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
   555     <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"/>
   556     <!--
   557                 EXECUTION SECTION
   558             -->
   559     <target depends="run-deploy" description="Deploy to server." name="run"/>
   560     <target name="-init-deploy">
   561         <property name="include.jar.manifest" value=""/>
   562     </target>
   563     <target name="pre-run-deploy">
   564         <!-- Empty placeholder for easier customization. -->
   565         <!-- You can override this target in the ../build.xml file. -->
   566     </target>
   567     <target name="post-run-deploy">
   568         <!-- Empty placeholder for easier customization. -->
   569         <!-- You can override this target in the ../build.xml file. -->
   570     </target>
   571     <target name="-pre-nbmodule-run-deploy">
   572         <!-- Empty placeholder for easier customization. -->
   573         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   574     </target>
   575     <target name="-post-nbmodule-run-deploy">
   576         <!-- Empty placeholder for easier customization. -->
   577         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   578     </target>
   579     <target name="-run-deploy-am">
   580         <!-- Task to deploy to the Access Manager runtime. -->
   581     </target>
   582     <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">
   583         <nbjpdaappreloaded/>
   584     </target>
   585     <target if="netbeans.home" name="-run-deploy-nb">
   586         <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
   587     </target>
   588     <target name="-init-deploy-ant" unless="netbeans.home">
   589         <property name="deploy.ant.archive" value="${dist.jar}"/>
   590         <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   591         <property name="deploy.ant.enabled" value="true"/>
   592     </target>
   593     <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   594     <target if="netbeans.home" name="-run-undeploy-nb">
   595         <fail message="Undeploy is not supported from within the IDE"/>
   596     </target>
   597     <target depends="dist" name="verify">
   598         <nbverify file="${dist.jar}"/>
   599     </target>
   600     <target depends="init,compile-single" name="run-main">
   601         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   602         <ejbjarproject3:java classname="${run.class}"/>
   603     </target>
   604     <!--
   605                 DEBUGGING SECTION
   606             -->
   607     <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
   608         <nbdeploy debugmode="true"/>
   609         <antcall target="connect-debugger"/>
   610     </target>
   611     <target name="connect-debugger" unless="is.debugged">
   612         <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   613             <classpath>
   614                 <path path="${debug.classpath}"/>
   615             </classpath>
   616             <sourcepath>
   617                 <path path="${web.docbase.dir}"/>
   618             </sourcepath>
   619         </nbjpdaconnect>
   620     </target>
   621     <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   622         <ejbjarproject1:nbjpdastart/>
   623     </target>
   624     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   625         <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
   626         <ejbjarproject1:debug/>
   627     </target>
   628     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
   629     <target depends="init" name="-pre-debug-fix">
   630         <fail unless="fix.includes">Must set fix.includes</fail>
   631         <property name="javac.includes" value="${fix.includes}.java"/>
   632     </target>
   633     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   634         <ejbjarproject1:nbjpdareload/>
   635     </target>
   636     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   637     <!--
   638                 JAVADOC SECTION
   639             -->
   640     <target depends="init" if="have.sources" name="javadoc-build">
   641         <mkdir dir="${dist.javadoc.dir}"/>
   642         <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}">
   643             <classpath>
   644                 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
   645             </classpath>
   646             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   647                 <filename name="**/*.java"/>
   648             </fileset>
   649             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   650                 <include name="**/*.java"/>
   651             </fileset>
   652         </javadoc>
   653         <copy todir="${dist.javadoc.dir}">
   654             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   655                 <filename name="**/doc-files/**"/>
   656             </fileset>
   657             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   658                 <include name="**/doc-files/**"/>
   659             </fileset>
   660         </copy>
   661     </target>
   662     <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
   663         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   664     </target>
   665     <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
   666     <!--
   667                 JUNIT COMPILATION SECTION
   668             -->
   669     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   670         <mkdir dir="${build.test.classes.dir}"/>
   671         <property name="j2ee.platform.embeddableejb.classpath" value=""/>
   672     </target>
   673     <target name="-pre-compile-test">
   674         <!-- Empty placeholder for easier customization. -->
   675         <!-- You can override this target in the ../build.xml file. -->
   676     </target>
   677     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
   678         <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   679         <copy todir="${build.test.classes.dir}">
   680             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   681         </copy>
   682     </target>
   683     <target name="-post-compile-test">
   684         <!-- Empty placeholder for easier customization. -->
   685         <!-- You can override this target in the ../build.xml file. -->
   686     </target>
   687     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
   688     <target name="-pre-compile-test-single">
   689         <!-- Empty placeholder for easier customization. -->
   690         <!-- You can override this target in the ../build.xml file. -->
   691     </target>
   692     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   693         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   694         <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}"/>
   695     </target>
   696     <target name="-post-compile-test-single">
   697         <!-- Empty placeholder for easier customization. -->
   698         <!-- You can override this target in the ../build.xml file. -->
   699     </target>
   700     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   701     <!--
   702                 JUNIT EXECUTION SECTION
   703             -->
   704     <target depends="init" if="have.tests" name="-pre-test-run">
   705         <mkdir dir="${build.test.results.dir}"/>
   706     </target>
   707     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   708         <ejbjarproject2:junit testincludes="**/*Test.java"/>
   709     </target>
   710     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   711         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   712     </target>
   713     <target depends="init" if="have.tests" name="test-report"/>
   714     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   715     <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   716     <target depends="init" if="have.tests" name="-pre-test-run-single">
   717         <mkdir dir="${build.test.results.dir}"/>
   718     </target>
   719     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   720         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   721         <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
   722     </target>
   723     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   724         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   725     </target>
   726     <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"/>
   727     <!--
   728                 JUNIT DEBUGGING SECTION
   729             -->
   730     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   731         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   732         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   733         <delete file="${test.report.file}"/>
   734         <!-- the directory must exist, otherwise the XML formatter would fail -->
   735         <mkdir dir="${build.test.results.dir}"/>
   736         <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}">
   737             <customize>
   738                 <arg value="showoutput=true"/>
   739                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   740                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   741             </customize>
   742         </ejbjarproject1:debug>
   743     </target>
   744     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   745         <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   746     </target>
   747     <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   748     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   749         <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   750     </target>
   751     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   752     <!--
   753                 CLEANUP SECTION
   754             -->
   755     <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
   756         <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="clean"/>
   757         <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
   758     </target>
   759     <target depends="init" name="-do-clean">
   760         <delete dir="${build.dir}"/>
   761         <delete dir="${dist.dir}"/>
   762     </target>
   763     <target name="-post-clean">
   764         <!-- Empty placeholder for easier customization. -->
   765         <!-- You can override this target in the ../build.xml file. -->
   766     </target>
   767     <target depends="init" if="netbeans.home" name="undeploy-clean">
   768         <nbundeploy failOnError="false" startServer="false"/>
   769     </target>
   770     <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
   771     <target depends="clean" name="clean-ear"/>
   772 </project>