java/HibernateDemo1/HibernateDemo1-ejb/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Sat, 14 Mar 2009 21:58:41 +0100
changeset 0 16a1fc2116d6
permissions -rw-r--r--
Založení projektů (ejb, lib, web)
franta-hg@0
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@0
     2
<!--
franta-hg@0
     3
*** GENERATED FROM project.xml - DO NOT EDIT  ***
franta-hg@0
     4
***         EDIT ../build.xml INSTEAD         ***
franta-hg@0
     5
franta-hg@0
     6
For the purpose of easier reading the script
franta-hg@0
     7
is divided into following sections:
franta-hg@0
     8
franta-hg@0
     9
  - initialization
franta-hg@0
    10
  - compilation
franta-hg@0
    11
  - dist
franta-hg@0
    12
  - execution
franta-hg@0
    13
  - debugging
franta-hg@0
    14
  - javadoc
franta-hg@0
    15
  - cleanup
franta-hg@0
    16
franta-hg@0
    17
        -->
franta-hg@0
    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="HibernateDemo1-ejb-impl">
franta-hg@0
    19
    <import file="ant-deploy.xml"/>
franta-hg@0
    20
    <target depends="dist,javadoc" description="Build whole project." name="default"/>
franta-hg@0
    21
    <!-- 
franta-hg@0
    22
                INITIALIZATION SECTION 
franta-hg@0
    23
            -->
franta-hg@0
    24
    <target name="-pre-init">
franta-hg@0
    25
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
    26
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
    27
    </target>
franta-hg@0
    28
    <target depends="-pre-init" name="-init-private">
franta-hg@0
    29
        <property file="nbproject/private/private.properties"/>
franta-hg@0
    30
    </target>
franta-hg@0
    31
    <target depends="-pre-init,-init-private" name="-init-userdir">
franta-hg@0
    32
        <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
franta-hg@0
    33
    </target>
franta-hg@0
    34
    <target depends="-pre-init,-init-private,-init-userdir" name="-init-user">
franta-hg@0
    35
        <property file="${user.properties.file}"/>
franta-hg@0
    36
        <!-- The two properties below are usually overridden -->
franta-hg@0
    37
        <!-- by the active platform. Just a fallback. -->
franta-hg@0
    38
        <property name="default.javac.source" value="1.4"/>
franta-hg@0
    39
        <property name="default.javac.target" value="1.4"/>
franta-hg@0
    40
    </target>
franta-hg@0
    41
    <target depends="-pre-init,-init-private,-init-userdir,-init-user" name="-init-project">
franta-hg@0
    42
        <property file="nbproject/project.properties"/>
franta-hg@0
    43
    </target>
franta-hg@0
    44
    <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
franta-hg@0
    45
        <!-- Ensure configuration directory exists. -->
franta-hg@0
    46
        <mkdir dir="${meta.inf}"/>
franta-hg@0
    47
        <property name="runmain.jvmargs" value=""/>
franta-hg@0
    48
        <condition property="have.tests">
franta-hg@0
    49
            <or>
franta-hg@0
    50
                <available file="${test.src.dir}"/>
franta-hg@0
    51
            </or>
franta-hg@0
    52
        </condition>
franta-hg@0
    53
        <condition property="have.sources">
franta-hg@0
    54
            <or>
franta-hg@0
    55
                <available file="${src.dir}"/>
franta-hg@0
    56
            </or>
franta-hg@0
    57
        </condition>
franta-hg@0
    58
        <condition property="netbeans.home+have.tests">
franta-hg@0
    59
            <and>
franta-hg@0
    60
                <isset property="netbeans.home"/>
franta-hg@0
    61
                <isset property="have.tests"/>
franta-hg@0
    62
            </and>
franta-hg@0
    63
        </condition>
franta-hg@0
    64
        <condition property="no.javadoc.preview">
franta-hg@0
    65
            <isfalse value="${javadoc.preview}"/>
franta-hg@0
    66
        </condition>
franta-hg@0
    67
        <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
franta-hg@0
    68
        <condition property="classes.dir" value="${build.ear.classes.dir}">
franta-hg@0
    69
            <isset property="dist.ear.dir"/>
franta-hg@0
    70
        </condition>
franta-hg@0
    71
        <property name="classes.dir" value="${build.classes.dir}"/>
franta-hg@0
    72
        <condition property="no.deps">
franta-hg@0
    73
            <and>
franta-hg@0
    74
                <istrue value="${no.dependencies}"/>
franta-hg@0
    75
            </and>
franta-hg@0
    76
        </condition>
franta-hg@0
    77
        <condition property="no.dist.ear.dir">
franta-hg@0
    78
            <not>
franta-hg@0
    79
                <isset property="dist.ear.dir"/>
franta-hg@0
    80
            </not>
franta-hg@0
    81
        </condition>
franta-hg@0
    82
        <property name="source.encoding" value="${file.encoding}"/>
franta-hg@0
    83
        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
franta-hg@0
    84
            <and>
franta-hg@0
    85
                <isset property="javadoc.encoding"/>
franta-hg@0
    86
                <not>
franta-hg@0
    87
                    <equals arg1="${javadoc.encoding}" arg2=""/>
franta-hg@0
    88
                </not>
franta-hg@0
    89
            </and>
franta-hg@0
    90
        </condition>
franta-hg@0
    91
        <property name="javadoc.encoding.used" value="${source.encoding}"/>
franta-hg@0
    92
        <property name="includes" value="**"/>
franta-hg@0
    93
        <property name="excludes" value=""/>
franta-hg@0
    94
        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
franta-hg@0
    95
            <and>
franta-hg@0
    96
                <isset property="jaxws.endorsed.dir"/>
franta-hg@0
    97
                <available file="nbproject/jaxws-build.xml"/>
franta-hg@0
    98
            </and>
franta-hg@0
    99
        </condition>
franta-hg@0
   100
    </target>
franta-hg@0
   101
    <target depends="init" name="-init-cos" unless="deploy.on.save">
franta-hg@0
   102
        <condition property="deploy.on.save" value="true">
franta-hg@0
   103
            <istrue value="${j2ee.deploy.on.save}"/>
franta-hg@0
   104
        </condition>
franta-hg@0
   105
    </target>
franta-hg@0
   106
    <target name="-post-init">
franta-hg@0
   107
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   108
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   109
    </target>
franta-hg@0
   110
    <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
franta-hg@0
   111
        <fail unless="src.dir">Must set src.dir</fail>
franta-hg@0
   112
        <fail unless="test.src.dir">Must set test.src.dir</fail>
franta-hg@0
   113
        <fail unless="build.dir">Must set build.dir</fail>
franta-hg@0
   114
        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
franta-hg@0
   115
        <fail unless="dist.dir">Must set dist.dir</fail>
franta-hg@0
   116
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
franta-hg@0
   117
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
franta-hg@0
   118
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
franta-hg@0
   119
        <fail unless="dist.jar">Must set dist.jar</fail>
franta-hg@0
   120
        <fail unless="j2ee.platform.classpath">
franta-hg@0
   121
The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
franta-hg@0
   122
Either open the project in the IDE and assign the server or setup the server classpath manually.
franta-hg@0
   123
For example like this:
franta-hg@0
   124
   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
franta-hg@0
   125
or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
franta-hg@0
   126
                </fail>
franta-hg@0
   127
    </target>
franta-hg@0
   128
    <target name="-init-macrodef-property">
franta-hg@0
   129
        <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
franta-hg@0
   130
            <attribute name="name"/>
franta-hg@0
   131
            <attribute name="value"/>
franta-hg@0
   132
            <sequential>
franta-hg@0
   133
                <property name="@{name}" value="${@{value}}"/>
franta-hg@0
   134
            </sequential>
franta-hg@0
   135
        </macrodef>
franta-hg@0
   136
    </target>
franta-hg@0
   137
    <target name="-init-macrodef-javac">
franta-hg@0
   138
        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
franta-hg@0
   139
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@0
   140
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@0
   141
            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
franta-hg@0
   142
            <attribute default="${includes}" name="includes"/>
franta-hg@0
   143
            <attribute default="${excludes}" name="excludes"/>
franta-hg@0
   144
            <attribute default="${javac.debug}" name="debug"/>
franta-hg@0
   145
            <element name="customize" optional="true"/>
franta-hg@0
   146
            <sequential>
franta-hg@0
   147
                <property name="javac.compilerargs" value=""/>
franta-hg@0
   148
                <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}">
franta-hg@0
   149
                    <classpath>
franta-hg@0
   150
                        <path path="@{classpath}"/>
franta-hg@0
   151
                    </classpath>
franta-hg@0
   152
                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
franta-hg@0
   153
                    <customize/>
franta-hg@0
   154
                </javac>
franta-hg@0
   155
            </sequential>
franta-hg@0
   156
        </macrodef>
franta-hg@0
   157
    </target>
franta-hg@0
   158
    <target name="-init-macrodef-junit">
franta-hg@0
   159
        <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
franta-hg@0
   160
            <attribute default="${includes}" name="includes"/>
franta-hg@0
   161
            <attribute default="${excludes}" name="excludes"/>
franta-hg@0
   162
            <attribute default="**" name="testincludes"/>
franta-hg@0
   163
            <sequential>
franta-hg@0
   164
                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
franta-hg@0
   165
                    <batchtest todir="${build.test.results.dir}">
franta-hg@0
   166
                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
franta-hg@0
   167
                            <filename name="@{testincludes}"/>
franta-hg@0
   168
                        </fileset>
franta-hg@0
   169
                    </batchtest>
franta-hg@0
   170
                    <classpath>
franta-hg@0
   171
                        <path path="${run.test.classpath}"/>
franta-hg@0
   172
                        <path path="${j2ee.platform.classpath}"/>
franta-hg@0
   173
                    </classpath>
franta-hg@0
   174
                    <syspropertyset>
franta-hg@0
   175
                        <propertyref prefix="test-sys-prop."/>
franta-hg@0
   176
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@0
   177
                    </syspropertyset>
franta-hg@0
   178
                    <formatter type="brief" usefile="false"/>
franta-hg@0
   179
                    <formatter type="xml"/>
franta-hg@0
   180
                    <jvmarg line="${runmain.jvmargs}"/>
franta-hg@0
   181
                </junit>
franta-hg@0
   182
            </sequential>
franta-hg@0
   183
        </macrodef>
franta-hg@0
   184
    </target>
franta-hg@0
   185
    <target name="-init-macrodef-java">
franta-hg@0
   186
        <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
franta-hg@0
   187
            <attribute default="${main.class}" name="classname"/>
franta-hg@0
   188
            <element name="customize" optional="true"/>
franta-hg@0
   189
            <sequential>
franta-hg@0
   190
                <java classname="@{classname}" fork="true">
franta-hg@0
   191
                    <jvmarg line="${runmain.jvmargs}"/>
franta-hg@0
   192
                    <classpath>
franta-hg@0
   193
                        <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
franta-hg@0
   194
                    </classpath>
franta-hg@0
   195
                    <syspropertyset>
franta-hg@0
   196
                        <propertyref prefix="run-sys-prop."/>
franta-hg@0
   197
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@0
   198
                    </syspropertyset>
franta-hg@0
   199
                    <customize/>
franta-hg@0
   200
                </java>
franta-hg@0
   201
            </sequential>
franta-hg@0
   202
        </macrodef>
franta-hg@0
   203
    </target>
franta-hg@0
   204
    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
franta-hg@0
   205
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
franta-hg@0
   206
            <attribute default="${main.class}" name="name"/>
franta-hg@0
   207
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@0
   208
            <sequential>
franta-hg@0
   209
                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
franta-hg@0
   210
                    <classpath>
franta-hg@0
   211
                        <path path="@{classpath}"/>
franta-hg@0
   212
                    </classpath>
franta-hg@0
   213
                </nbjpdastart>
franta-hg@0
   214
            </sequential>
franta-hg@0
   215
        </macrodef>
franta-hg@0
   216
        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
franta-hg@0
   217
            <attribute default="${build.classes.dir}" name="dir"/>
franta-hg@0
   218
            <sequential>
franta-hg@0
   219
                <nbjpdareload>
franta-hg@0
   220
                    <fileset dir="@{dir}" includes="${fix.classes}">
franta-hg@0
   221
                        <include name="${fix.includes}*.class"/>
franta-hg@0
   222
                    </fileset>
franta-hg@0
   223
                </nbjpdareload>
franta-hg@0
   224
            </sequential>
franta-hg@0
   225
        </macrodef>
franta-hg@0
   226
        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@0
   227
            <sequential>
franta-hg@0
   228
                <nbjpdaappreloaded/>
franta-hg@0
   229
            </sequential>
franta-hg@0
   230
        </macrodef>
franta-hg@0
   231
    </target>
franta-hg@0
   232
    <target name="-init-debug-args">
franta-hg@0
   233
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
franta-hg@0
   234
        <condition property="have-jdk-older-than-1.4">
franta-hg@0
   235
            <or>
franta-hg@0
   236
                <contains string="${version-output}" substring="java version &quot;1.0"/>
franta-hg@0
   237
                <contains string="${version-output}" substring="java version &quot;1.1"/>
franta-hg@0
   238
                <contains string="${version-output}" substring="java version &quot;1.2"/>
franta-hg@0
   239
                <contains string="${version-output}" substring="java version &quot;1.3"/>
franta-hg@0
   240
            </or>
franta-hg@0
   241
        </condition>
franta-hg@0
   242
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
franta-hg@0
   243
            <istrue value="${have-jdk-older-than-1.4}"/>
franta-hg@0
   244
        </condition>
franta-hg@0
   245
        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
franta-hg@0
   246
            <os family="windows"/>
franta-hg@0
   247
        </condition>
franta-hg@0
   248
        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
franta-hg@0
   249
            <isset property="debug.transport"/>
franta-hg@0
   250
        </condition>
franta-hg@0
   251
    </target>
franta-hg@0
   252
    <target depends="-init-debug-args" name="-init-macrodef-debug">
franta-hg@0
   253
        <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
franta-hg@0
   254
            <attribute default="${main.class}" name="classname"/>
franta-hg@0
   255
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@0
   256
            <attribute default="${application.args}" name="args"/>
franta-hg@0
   257
            <element name="customize" optional="true"/>
franta-hg@0
   258
            <sequential>
franta-hg@0
   259
                <java classname="@{classname}" fork="true">
franta-hg@0
   260
                    <jvmarg line="${debug-args-line}"/>
franta-hg@0
   261
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
franta-hg@0
   262
                    <classpath>
franta-hg@0
   263
                        <path path="@{classpath}"/>
franta-hg@0
   264
                    </classpath>
franta-hg@0
   265
                    <arg line="@{args}"/>
franta-hg@0
   266
                    <customize/>
franta-hg@0
   267
                </java>
franta-hg@0
   268
            </sequential>
franta-hg@0
   269
        </macrodef>
franta-hg@0
   270
    </target>
franta-hg@0
   271
    <target name="-init-taskdefs">
franta-hg@0
   272
        <fail unless="libs.CopyLibs.classpath">
franta-hg@0
   273
The libs.CopyLibs.classpath property is not set up.
franta-hg@0
   274
This property must point to 
franta-hg@0
   275
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
franta-hg@0
   276
of NetBeans IDE installation and is usually located at 
franta-hg@0
   277
&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
franta-hg@0
   278
Either open the project in the IDE and make sure CopyLibs library
franta-hg@0
   279
exists or setup the property manually. For example like this:
franta-hg@0
   280
 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
franta-hg@0
   281
                </fail>
franta-hg@0
   282
        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
franta-hg@0
   283
    </target>
franta-hg@0
   284
    <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-debug,-init-taskdefs" name="init"/>
franta-hg@0
   285
    <!--
franta-hg@0
   286
                COMPILATION SECTION
franta-hg@0
   287
            -->
franta-hg@0
   288
    <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
franta-hg@0
   289
        <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="jar"/>
franta-hg@0
   290
    </target>
franta-hg@0
   291
    <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
franta-hg@0
   292
        <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="jar"/>
franta-hg@0
   293
    </target>
franta-hg@0
   294
    <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
franta-hg@0
   295
    <target depends="init,deps-jar" name="-pre-pre-compile">
franta-hg@0
   296
        <mkdir dir="${build.classes.dir}"/>
franta-hg@0
   297
        <mkdir dir="${build.ear.classes.dir}"/>
franta-hg@0
   298
    </target>
franta-hg@0
   299
    <target name="-pre-compile">
franta-hg@0
   300
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   301
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   302
    </target>
franta-hg@0
   303
    <target depends="compile" name="library-inclusion-in-archive">
franta-hg@0
   304
        <copyfiles files="${reference.HibernateDemo1-lib.jar}" todir="${build.classes.dir}"/>
franta-hg@0
   305
    </target>
franta-hg@0
   306
    <target depends="compile" name="library-inclusion-in-manifest">
franta-hg@0
   307
        <copyfiles files="${reference.HibernateDemo1-lib.jar}" manifestproperty="manifest.reference.HibernateDemo1-lib.jar" todir="${dist.ear.dir}"/>
franta-hg@0
   308
        <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
franta-hg@0
   309
            <attribute name="Class-Path" value="${manifest.reference.HibernateDemo1-lib.jar} "/>
franta-hg@0
   310
        </manifest>
franta-hg@0
   311
    </target>
franta-hg@0
   312
    <target name="-copy-meta-inf">
franta-hg@0
   313
        <copy todir="${classes.dir}">
franta-hg@0
   314
            <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
franta-hg@0
   315
        </copy>
franta-hg@0
   316
        <copy todir="${classes.dir}/META-INF">
franta-hg@0
   317
            <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
franta-hg@0
   318
        </copy>
franta-hg@0
   319
    </target>
franta-hg@0
   320
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
franta-hg@0
   321
        <ejbjarproject2:javac destdir="${classes.dir}"/>
franta-hg@0
   322
        <copy todir="${classes.dir}">
franta-hg@0
   323
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@0
   324
        </copy>
franta-hg@0
   325
    </target>
franta-hg@0
   326
    <target name="-post-compile">
franta-hg@0
   327
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   328
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   329
    </target>
franta-hg@0
   330
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
franta-hg@0
   331
    <target name="-pre-compile-single">
franta-hg@0
   332
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   333
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   334
    </target>
franta-hg@0
   335
    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
franta-hg@0
   336
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@0
   337
        <ejbjarproject2:javac excludes="" includes="${javac.includes}"/>
franta-hg@0
   338
    </target>
franta-hg@0
   339
    <target name="-post-compile-single">
franta-hg@0
   340
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   341
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   342
    </target>
franta-hg@0
   343
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
franta-hg@0
   344
    <!--
franta-hg@0
   345
                DIST BUILDING SECTION
franta-hg@0
   346
            -->
franta-hg@0
   347
    <target name="-pre-dist">
franta-hg@0
   348
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   349
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   350
    </target>
franta-hg@0
   351
    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
franta-hg@0
   352
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@0
   353
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@0
   354
        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
franta-hg@0
   355
            <fileset dir="${build.classes.dir}"/>
franta-hg@0
   356
        </jar>
franta-hg@0
   357
    </target>
franta-hg@0
   358
    <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
franta-hg@0
   359
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@0
   360
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@0
   361
        <jar compress="${jar.compress}" jarfile="${dist.jar}">
franta-hg@0
   362
            <fileset dir="${build.classes.dir}"/>
franta-hg@0
   363
        </jar>
franta-hg@0
   364
    </target>
franta-hg@0
   365
    <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
franta-hg@0
   366
    <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
franta-hg@0
   367
        <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
franta-hg@0
   368
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@0
   369
        <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
franta-hg@0
   370
            <fileset dir="${build.ear.classes.dir}"/>
franta-hg@0
   371
        </jar>
franta-hg@0
   372
    </target>
franta-hg@0
   373
    <target name="-post-dist">
franta-hg@0
   374
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   375
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   376
    </target>
franta-hg@0
   377
    <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
franta-hg@0
   378
    <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"/>
franta-hg@0
   379
    <!--
franta-hg@0
   380
                EXECUTION SECTION
franta-hg@0
   381
            -->
franta-hg@0
   382
    <target depends="run-deploy" description="Deploy to server." name="run"/>
franta-hg@0
   383
    <target name="-init-deploy">
franta-hg@0
   384
        <property name="include.jar.manifest" value=""/>
franta-hg@0
   385
    </target>
franta-hg@0
   386
    <target name="pre-run-deploy">
franta-hg@0
   387
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   388
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   389
    </target>
franta-hg@0
   390
    <target name="post-run-deploy">
franta-hg@0
   391
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   392
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   393
    </target>
franta-hg@0
   394
    <target name="-pre-nbmodule-run-deploy">
franta-hg@0
   395
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   396
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
franta-hg@0
   397
    </target>
franta-hg@0
   398
    <target name="-post-nbmodule-run-deploy">
franta-hg@0
   399
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   400
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
franta-hg@0
   401
    </target>
franta-hg@0
   402
    <target name="-run-deploy-am">
franta-hg@0
   403
        <!-- Task to deploy to the Access Manager runtime. -->
franta-hg@0
   404
    </target>
franta-hg@0
   405
    <target depends="init,-init-cos,-init-deploy,compile,library-inclusion-in-archive,dist,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">
franta-hg@0
   406
        <nbjpdaappreloaded/>
franta-hg@0
   407
    </target>
franta-hg@0
   408
    <target if="netbeans.home" name="-run-deploy-nb">
franta-hg@0
   409
        <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
franta-hg@0
   410
    </target>
franta-hg@0
   411
    <target name="-init-deploy-ant" unless="netbeans.home">
franta-hg@0
   412
        <property name="deploy.ant.archive" value="${dist.jar}"/>
franta-hg@0
   413
        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
franta-hg@0
   414
        <property name="deploy.ant.enabled" value="true"/>
franta-hg@0
   415
    </target>
franta-hg@0
   416
    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
franta-hg@0
   417
    <target if="netbeans.home" name="-run-undeploy-nb">
franta-hg@0
   418
        <fail message="Undeploy is not supported from within the IDE"/>
franta-hg@0
   419
    </target>
franta-hg@0
   420
    <target depends="dist" name="verify">
franta-hg@0
   421
        <nbverify file="${dist.jar}"/>
franta-hg@0
   422
    </target>
franta-hg@0
   423
    <target depends="init,compile-single" name="run-main">
franta-hg@0
   424
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@0
   425
        <ejbjarproject3:java classname="${run.class}"/>
franta-hg@0
   426
    </target>
franta-hg@0
   427
    <!--
franta-hg@0
   428
                DEBUGGING SECTION
franta-hg@0
   429
            -->
franta-hg@0
   430
    <target depends="init,compile,dist" description="Debug project in IDE." if="netbeans.home" name="debug">
franta-hg@0
   431
        <nbdeploy debugmode="true"/>
franta-hg@0
   432
        <antcall target="connect-debugger"/>
franta-hg@0
   433
    </target>
franta-hg@0
   434
    <target name="connect-debugger" unless="is.debugged">
franta-hg@0
   435
        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
franta-hg@0
   436
            <classpath>
franta-hg@0
   437
                <path path="${debug.classpath}"/>
franta-hg@0
   438
            </classpath>
franta-hg@0
   439
            <sourcepath>
franta-hg@0
   440
                <path path="${web.docbase.dir}"/>
franta-hg@0
   441
            </sourcepath>
franta-hg@0
   442
        </nbjpdaconnect>
franta-hg@0
   443
    </target>
franta-hg@0
   444
    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
franta-hg@0
   445
        <ejbjarproject1:nbjpdastart/>
franta-hg@0
   446
    </target>
franta-hg@0
   447
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
franta-hg@0
   448
        <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
franta-hg@0
   449
        <ejbjarproject1:debug/>
franta-hg@0
   450
    </target>
franta-hg@0
   451
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
franta-hg@0
   452
    <target depends="init" name="-pre-debug-fix">
franta-hg@0
   453
        <fail unless="fix.includes">Must set fix.includes</fail>
franta-hg@0
   454
        <property name="javac.includes" value="${fix.includes}.java"/>
franta-hg@0
   455
    </target>
franta-hg@0
   456
    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
franta-hg@0
   457
        <ejbjarproject1:nbjpdareload/>
franta-hg@0
   458
    </target>
franta-hg@0
   459
    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
franta-hg@0
   460
    <!--
franta-hg@0
   461
                JAVADOC SECTION
franta-hg@0
   462
            -->
franta-hg@0
   463
    <target depends="init" name="javadoc-build">
franta-hg@0
   464
        <mkdir dir="${dist.javadoc.dir}"/>
franta-hg@0
   465
        <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}">
franta-hg@0
   466
            <classpath>
franta-hg@0
   467
                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
franta-hg@0
   468
            </classpath>
franta-hg@0
   469
            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
franta-hg@0
   470
                <filename name="**/*.java"/>
franta-hg@0
   471
            </fileset>
franta-hg@0
   472
        </javadoc>
franta-hg@0
   473
    </target>
franta-hg@0
   474
    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
franta-hg@0
   475
        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
franta-hg@0
   476
    </target>
franta-hg@0
   477
    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
franta-hg@0
   478
    <!--
franta-hg@0
   479
                JUNIT COMPILATION SECTION
franta-hg@0
   480
            -->
franta-hg@0
   481
    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
franta-hg@0
   482
        <mkdir dir="${build.test.classes.dir}"/>
franta-hg@0
   483
    </target>
franta-hg@0
   484
    <target name="-pre-compile-test">
franta-hg@0
   485
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   486
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   487
    </target>
franta-hg@0
   488
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
franta-hg@0
   489
        <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
franta-hg@0
   490
        <copy todir="${build.test.classes.dir}">
franta-hg@0
   491
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@0
   492
        </copy>
franta-hg@0
   493
    </target>
franta-hg@0
   494
    <target name="-post-compile-test">
franta-hg@0
   495
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   496
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   497
    </target>
franta-hg@0
   498
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
franta-hg@0
   499
    <target name="-pre-compile-test-single">
franta-hg@0
   500
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   501
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   502
    </target>
franta-hg@0
   503
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
franta-hg@0
   504
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@0
   505
        <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
franta-hg@0
   506
    </target>
franta-hg@0
   507
    <target name="-post-compile-test-single">
franta-hg@0
   508
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   509
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   510
    </target>
franta-hg@0
   511
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
franta-hg@0
   512
    <!--
franta-hg@0
   513
                JUNIT EXECUTION SECTION
franta-hg@0
   514
            -->
franta-hg@0
   515
    <target depends="init" if="have.tests" name="-pre-test-run">
franta-hg@0
   516
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@0
   517
    </target>
franta-hg@0
   518
    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
franta-hg@0
   519
        <ejbjarproject2:junit testincludes="**/*Test.java"/>
franta-hg@0
   520
    </target>
franta-hg@0
   521
    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
franta-hg@0
   522
        <fail if="tests.failed">Some tests failed; see details above.</fail>
franta-hg@0
   523
    </target>
franta-hg@0
   524
    <target depends="init" if="have.tests" name="test-report"/>
franta-hg@0
   525
    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
franta-hg@0
   526
    <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
franta-hg@0
   527
    <target depends="init" if="have.tests" name="-pre-test-run-single">
franta-hg@0
   528
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@0
   529
    </target>
franta-hg@0
   530
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
franta-hg@0
   531
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
franta-hg@0
   532
        <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
franta-hg@0
   533
    </target>
franta-hg@0
   534
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
franta-hg@0
   535
        <fail if="tests.failed">Some tests failed; see details above.</fail>
franta-hg@0
   536
    </target>
franta-hg@0
   537
    <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"/>
franta-hg@0
   538
    <!--
franta-hg@0
   539
                JUNIT DEBUGGING SECTION
franta-hg@0
   540
            -->
franta-hg@0
   541
    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
franta-hg@0
   542
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
franta-hg@0
   543
        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
franta-hg@0
   544
        <delete file="${test.report.file}"/>
franta-hg@0
   545
        <!-- the directory must exist, otherwise the XML formatter would fail -->
franta-hg@0
   546
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@0
   547
        <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}">
franta-hg@0
   548
            <customize>
franta-hg@0
   549
                <arg value="showoutput=true"/>
franta-hg@0
   550
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
franta-hg@0
   551
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
franta-hg@0
   552
            </customize>
franta-hg@0
   553
        </ejbjarproject1:debug>
franta-hg@0
   554
    </target>
franta-hg@0
   555
    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
franta-hg@0
   556
        <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
franta-hg@0
   557
    </target>
franta-hg@0
   558
    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
franta-hg@0
   559
    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
franta-hg@0
   560
        <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
franta-hg@0
   561
    </target>
franta-hg@0
   562
    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
franta-hg@0
   563
    <!--
franta-hg@0
   564
                CLEANUP SECTION
franta-hg@0
   565
            -->
franta-hg@0
   566
    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
franta-hg@0
   567
        <ant antfile="${project.HibernateDemo1-lib}/build.xml" inheritall="false" target="clean"/>
franta-hg@0
   568
    </target>
franta-hg@0
   569
    <target depends="init" name="-do-clean">
franta-hg@0
   570
        <delete dir="${build.dir}"/>
franta-hg@0
   571
        <delete dir="${dist.dir}"/>
franta-hg@0
   572
    </target>
franta-hg@0
   573
    <target name="-post-clean">
franta-hg@0
   574
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   575
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   576
    </target>
franta-hg@0
   577
    <target depends="init" if="netbeans.home" name="undeploy-clean">
franta-hg@0
   578
        <nbundeploy failOnError="false" startServer="false"/>
franta-hg@0
   579
    </target>
franta-hg@0
   580
    <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
franta-hg@0
   581
    <target depends="clean" name="clean-ear"/>
franta-hg@0
   582
</project>