java/nekurak.net-ejb/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Sat, 19 Jun 2010 11:19:27 +0200
changeset 142 44ef544460ca
parent 108 f74a9fc683da
child 149 8238cdb4113a
permissions -rw-r--r--
AJAX komentáře
     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     </target>
   460     <target depends="compile" name="library-inclusion-in-manifest">
   461         <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
   462         <copyfiles files="${reference.SuperDAO.jar}" todir="${dist.ear.dir}/lib"/>
   463         <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
   464     </target>
   465     <target name="-copy-meta-inf">
   466         <copy todir="${classes.dir}">
   467             <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
   468         </copy>
   469         <copy todir="${classes.dir}/META-INF">
   470             <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
   471         </copy>
   472     </target>
   473     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
   474         <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
   475         <copy todir="${classes.dir}">
   476             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   477         </copy>
   478     </target>
   479     <target name="-post-compile">
   480         <!-- Empty placeholder for easier customization. -->
   481         <!-- You can override this target in the ../build.xml file. -->
   482     </target>
   483     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
   484     <target name="-pre-compile-single">
   485         <!-- Empty placeholder for easier customization. -->
   486         <!-- You can override this target in the ../build.xml file. -->
   487     </target>
   488     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
   489         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   490         <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
   491     </target>
   492     <target name="-post-compile-single">
   493         <!-- Empty placeholder for easier customization. -->
   494         <!-- You can override this target in the ../build.xml file. -->
   495     </target>
   496     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   497     <!--
   498                 DIST BUILDING SECTION
   499             -->
   500     <target name="-pre-dist">
   501         <!-- Empty placeholder for easier customization. -->
   502         <!-- You can override this target in the ../build.xml file. -->
   503     </target>
   504     <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
   505         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   506         <mkdir dir="${dist.jar.dir}"/>
   507         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   508             <fileset dir="${build.classes.dir}"/>
   509         </jar>
   510     </target>
   511     <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
   512         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   513         <mkdir dir="${dist.jar.dir}"/>
   514         <jar compress="${jar.compress}" jarfile="${dist.jar}">
   515             <fileset dir="${build.classes.dir}"/>
   516         </jar>
   517     </target>
   518     <!--
   519                 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   520             -->
   521     <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">
   522         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   523         <mkdir dir="${dist.jar.dir}"/>
   524         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
   525             <fileset dir="${build.classes.dir}"/>
   526         </jar>
   527     </target>
   528     <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">
   529         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   530         <mkdir dir="${dist.jar.dir}"/>
   531         <jar compress="${jar.compress}" jarfile="${dist.jar}">
   532             <fileset dir="${build.classes.dir}"/>
   533         </jar>
   534     </target>
   535     <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"/>
   536     <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"/>
   537     <!--
   538                 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   539             -->
   540     <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
   541     <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
   542         <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
   543         <mkdir dir="${dist.jar.dir}"/>
   544         <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
   545             <fileset dir="${build.ear.classes.dir}"/>
   546         </jar>
   547     </target>
   548     <target name="-post-dist">
   549         <!-- Empty placeholder for easier customization. -->
   550         <!-- You can override this target in the ../build.xml file. -->
   551     </target>
   552     <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
   553     <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"/>
   554     <!--
   555                 EXECUTION SECTION
   556             -->
   557     <target depends="run-deploy" description="Deploy to server." name="run"/>
   558     <target name="-init-deploy">
   559         <property name="include.jar.manifest" value=""/>
   560     </target>
   561     <target name="pre-run-deploy">
   562         <!-- Empty placeholder for easier customization. -->
   563         <!-- You can override this target in the ../build.xml file. -->
   564     </target>
   565     <target name="post-run-deploy">
   566         <!-- Empty placeholder for easier customization. -->
   567         <!-- You can override this target in the ../build.xml file. -->
   568     </target>
   569     <target name="-pre-nbmodule-run-deploy">
   570         <!-- Empty placeholder for easier customization. -->
   571         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   572     </target>
   573     <target name="-post-nbmodule-run-deploy">
   574         <!-- Empty placeholder for easier customization. -->
   575         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   576     </target>
   577     <target name="-run-deploy-am">
   578         <!-- Task to deploy to the Access Manager runtime. -->
   579     </target>
   580     <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">
   581         <nbjpdaappreloaded/>
   582     </target>
   583     <target if="netbeans.home" name="-run-deploy-nb">
   584         <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
   585     </target>
   586     <target name="-init-deploy-ant" unless="netbeans.home">
   587         <property name="deploy.ant.archive" value="${dist.jar}"/>
   588         <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   589         <property name="deploy.ant.enabled" value="true"/>
   590     </target>
   591     <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   592     <target if="netbeans.home" name="-run-undeploy-nb">
   593         <fail message="Undeploy is not supported from within the IDE"/>
   594     </target>
   595     <target depends="dist" name="verify">
   596         <nbverify file="${dist.jar}"/>
   597     </target>
   598     <target depends="init,compile-single" name="run-main">
   599         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
   600         <ejbjarproject3:java classname="${run.class}"/>
   601     </target>
   602     <!--
   603                 DEBUGGING SECTION
   604             -->
   605     <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
   606         <nbdeploy debugmode="true"/>
   607         <antcall target="connect-debugger"/>
   608     </target>
   609     <target name="connect-debugger" unless="is.debugged">
   610         <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   611             <classpath>
   612                 <path path="${debug.classpath}"/>
   613             </classpath>
   614             <sourcepath>
   615                 <path path="${web.docbase.dir}"/>
   616             </sourcepath>
   617         </nbjpdaconnect>
   618     </target>
   619     <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   620         <ejbjarproject1:nbjpdastart/>
   621     </target>
   622     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
   623         <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
   624         <ejbjarproject1:debug/>
   625     </target>
   626     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
   627     <target depends="init" name="-pre-debug-fix">
   628         <fail unless="fix.includes">Must set fix.includes</fail>
   629         <property name="javac.includes" value="${fix.includes}.java"/>
   630     </target>
   631     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   632         <ejbjarproject1:nbjpdareload/>
   633     </target>
   634     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   635     <!--
   636                 JAVADOC SECTION
   637             -->
   638     <target depends="init" if="have.sources" name="javadoc-build">
   639         <mkdir dir="${dist.javadoc.dir}"/>
   640         <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}">
   641             <classpath>
   642                 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
   643             </classpath>
   644             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
   645                 <filename name="**/*.java"/>
   646             </fileset>
   647             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
   648                 <include name="**/*.java"/>
   649             </fileset>
   650         </javadoc>
   651     </target>
   652     <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
   653         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   654     </target>
   655     <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
   656     <!--
   657                 JUNIT COMPILATION SECTION
   658             -->
   659     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   660         <mkdir dir="${build.test.classes.dir}"/>
   661         <property name="j2ee.platform.embeddableejb.classpath" value=""/>
   662     </target>
   663     <target name="-pre-compile-test">
   664         <!-- Empty placeholder for easier customization. -->
   665         <!-- You can override this target in the ../build.xml file. -->
   666     </target>
   667     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
   668         <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
   669         <copy todir="${build.test.classes.dir}">
   670             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
   671         </copy>
   672     </target>
   673     <target name="-post-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,-do-compile-test,-post-compile-test" name="compile-test"/>
   678     <target name="-pre-compile-test-single">
   679         <!-- Empty placeholder for easier customization. -->
   680         <!-- You can override this target in the ../build.xml file. -->
   681     </target>
   682     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
   683         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
   684         <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}"/>
   685     </target>
   686     <target name="-post-compile-test-single">
   687         <!-- Empty placeholder for easier customization. -->
   688         <!-- You can override this target in the ../build.xml file. -->
   689     </target>
   690     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
   691     <!--
   692                 JUNIT EXECUTION SECTION
   693             -->
   694     <target depends="init" if="have.tests" name="-pre-test-run">
   695         <mkdir dir="${build.test.results.dir}"/>
   696     </target>
   697     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   698         <ejbjarproject2:junit testincludes="**/*Test.java"/>
   699     </target>
   700     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
   701         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   702     </target>
   703     <target depends="init" if="have.tests" name="test-report"/>
   704     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
   705     <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
   706     <target depends="init" if="have.tests" name="-pre-test-run-single">
   707         <mkdir dir="${build.test.results.dir}"/>
   708     </target>
   709     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
   710         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
   711         <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
   712     </target>
   713     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
   714         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
   715     </target>
   716     <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"/>
   717     <!--
   718                 JUNIT DEBUGGING SECTION
   719             -->
   720     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
   721         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
   722         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
   723         <delete file="${test.report.file}"/>
   724         <!-- the directory must exist, otherwise the XML formatter would fail -->
   725         <mkdir dir="${build.test.results.dir}"/>
   726         <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}">
   727             <customize>
   728                 <arg value="showoutput=true"/>
   729                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
   730                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
   731             </customize>
   732         </ejbjarproject1:debug>
   733     </target>
   734     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
   735         <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
   736     </target>
   737     <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
   738     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
   739         <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
   740     </target>
   741     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   742     <!--
   743                 CLEANUP SECTION
   744             -->
   745     <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
   746         <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="clean"/>
   747         <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
   748     </target>
   749     <target depends="init" name="-do-clean">
   750         <delete dir="${build.dir}"/>
   751         <delete dir="${dist.dir}"/>
   752     </target>
   753     <target name="-post-clean">
   754         <!-- Empty placeholder for easier customization. -->
   755         <!-- You can override this target in the ../build.xml file. -->
   756     </target>
   757     <target depends="init" if="netbeans.home" name="undeploy-clean">
   758         <nbundeploy failOnError="false" startServer="false"/>
   759     </target>
   760     <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
   761     <target depends="clean" name="clean-ear"/>
   762 </project>