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