java/SpringDemo1/SpringDemo1-war/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Wed Feb 10 20:55:08 2010 +0100 (2010-02-10)
changeset 1 9a3fced9634d
permissions -rw-r--r--
Přechod na EAR, EJB.
franta-hg@1
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@1
     2
<!--
franta-hg@1
     3
        *** GENERATED FROM project.xml - DO NOT EDIT  ***
franta-hg@1
     4
        ***         EDIT ../build.xml INSTEAD         ***
franta-hg@1
     5
franta-hg@1
     6
        For the purpose of easier reading the script
franta-hg@1
     7
        is divided into following sections:
franta-hg@1
     8
        - initialization
franta-hg@1
     9
        - compilation
franta-hg@1
    10
        - dist
franta-hg@1
    11
        - execution
franta-hg@1
    12
        - debugging
franta-hg@1
    13
        - javadoc
franta-hg@1
    14
        - junit compilation
franta-hg@1
    15
        - junit execution
franta-hg@1
    16
        - junit debugging
franta-hg@1
    17
        - cleanup
franta-hg@1
    18
franta-hg@1
    19
        -->
franta-hg@1
    20
<project xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" basedir=".." default="default" name="SpringDemo1-war-impl">
franta-hg@1
    21
    <import file="ant-deploy.xml"/>
franta-hg@1
    22
    <fail message="Please build using Ant 1.7.1 or higher.">
franta-hg@1
    23
        <condition>
franta-hg@1
    24
            <not>
franta-hg@1
    25
                <antversion atleast="1.7.1"/>
franta-hg@1
    26
            </not>
franta-hg@1
    27
        </condition>
franta-hg@1
    28
    </fail>
franta-hg@1
    29
    <target depends="dist,javadoc" description="Build whole project." name="default"/>
franta-hg@1
    30
    <!--
franta-hg@1
    31
                INITIALIZATION SECTION
franta-hg@1
    32
            -->
franta-hg@1
    33
    <target name="-pre-init">
franta-hg@1
    34
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
    35
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
    36
    </target>
franta-hg@1
    37
    <target depends="-pre-init" name="-init-private">
franta-hg@1
    38
        <property file="nbproject/private/private.properties"/>
franta-hg@1
    39
    </target>
franta-hg@1
    40
    <target depends="-pre-init,-init-private" name="-init-user">
franta-hg@1
    41
        <property file="${user.properties.file}"/>
franta-hg@1
    42
        <!-- The two properties below are usually overridden -->
franta-hg@1
    43
        <!-- by the active platform. Just a fallback. -->
franta-hg@1
    44
        <property name="default.javac.source" value="1.4"/>
franta-hg@1
    45
        <property name="default.javac.target" value="1.4"/>
franta-hg@1
    46
    </target>
franta-hg@1
    47
    <target depends="-pre-init,-init-private,-init-user" name="-init-project">
franta-hg@1
    48
        <property file="nbproject/project.properties"/>
franta-hg@1
    49
    </target>
franta-hg@1
    50
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
franta-hg@1
    51
    <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
franta-hg@1
    52
        <condition property="have.tests">
franta-hg@1
    53
            <or>
franta-hg@1
    54
                <available file="${test.src.dir}"/>
franta-hg@1
    55
            </or>
franta-hg@1
    56
        </condition>
franta-hg@1
    57
        <condition property="have.sources">
franta-hg@1
    58
            <or>
franta-hg@1
    59
                <available file="${src.dir}"/>
franta-hg@1
    60
            </or>
franta-hg@1
    61
        </condition>
franta-hg@1
    62
        <condition property="netbeans.home+have.tests">
franta-hg@1
    63
            <and>
franta-hg@1
    64
                <isset property="netbeans.home"/>
franta-hg@1
    65
                <isset property="have.tests"/>
franta-hg@1
    66
            </and>
franta-hg@1
    67
        </condition>
franta-hg@1
    68
        <condition property="no.javadoc.preview">
franta-hg@1
    69
            <isfalse value="${javadoc.preview}"/>
franta-hg@1
    70
        </condition>
franta-hg@1
    71
        <property name="javac.compilerargs" value=""/>
franta-hg@1
    72
        <condition property="no.deps">
franta-hg@1
    73
            <and>
franta-hg@1
    74
                <istrue value="${no.dependencies}"/>
franta-hg@1
    75
            </and>
franta-hg@1
    76
        </condition>
franta-hg@1
    77
        <condition property="no.dist.ear.dir">
franta-hg@1
    78
            <not>
franta-hg@1
    79
                <isset property="dist.ear.dir"/>
franta-hg@1
    80
            </not>
franta-hg@1
    81
        </condition>
franta-hg@1
    82
        <property name="build.web.excludes" value="${build.classes.excludes}"/>
franta-hg@1
    83
        <condition property="do.compile.jsps">
franta-hg@1
    84
            <istrue value="${compile.jsps}"/>
franta-hg@1
    85
        </condition>
franta-hg@1
    86
        <condition property="do.debug.server">
franta-hg@1
    87
            <or>
franta-hg@1
    88
                <not>
franta-hg@1
    89
                    <isset property="debug.server"/>
franta-hg@1
    90
                </not>
franta-hg@1
    91
                <istrue value="${debug.server}"/>
franta-hg@1
    92
                <and>
franta-hg@1
    93
                    <not>
franta-hg@1
    94
                        <istrue value="${debug.server}"/>
franta-hg@1
    95
                    </not>
franta-hg@1
    96
                    <not>
franta-hg@1
    97
                        <istrue value="${debug.client}"/>
franta-hg@1
    98
                    </not>
franta-hg@1
    99
                </and>
franta-hg@1
   100
            </or>
franta-hg@1
   101
        </condition>
franta-hg@1
   102
        <condition property="do.debug.client">
franta-hg@1
   103
            <istrue value="${debug.client}"/>
franta-hg@1
   104
        </condition>
franta-hg@1
   105
        <condition property="do.display.browser">
franta-hg@1
   106
            <istrue value="${display.browser}"/>
franta-hg@1
   107
        </condition>
franta-hg@1
   108
        <condition property="do.display.browser.debug">
franta-hg@1
   109
            <and>
franta-hg@1
   110
                <isset property="do.display.browser"/>
franta-hg@1
   111
                <not>
franta-hg@1
   112
                    <isset property="do.debug.client"/>
franta-hg@1
   113
                </not>
franta-hg@1
   114
            </and>
franta-hg@1
   115
        </condition>
franta-hg@1
   116
        <available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
franta-hg@1
   117
        <available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
franta-hg@1
   118
        <condition property="do.war.package.with.custom.manifest">
franta-hg@1
   119
            <isset property="has.custom.manifest"/>
franta-hg@1
   120
        </condition>
franta-hg@1
   121
        <condition property="do.war.package.without.custom.manifest">
franta-hg@1
   122
            <not>
franta-hg@1
   123
                <isset property="has.custom.manifest"/>
franta-hg@1
   124
            </not>
franta-hg@1
   125
        </condition>
franta-hg@1
   126
        <condition property="do.tmp.war.package.with.custom.manifest">
franta-hg@1
   127
            <and>
franta-hg@1
   128
                <isset property="has.custom.manifest"/>
franta-hg@1
   129
                <or>
franta-hg@1
   130
                    <isfalse value="${directory.deployment.supported}"/>
franta-hg@1
   131
                    <isset property="dist.ear.dir"/>
franta-hg@1
   132
                </or>
franta-hg@1
   133
            </and>
franta-hg@1
   134
        </condition>
franta-hg@1
   135
        <condition property="do.tmp.war.package.without.custom.manifest">
franta-hg@1
   136
            <and>
franta-hg@1
   137
                <not>
franta-hg@1
   138
                    <isset property="has.custom.manifest"/>
franta-hg@1
   139
                </not>
franta-hg@1
   140
                <or>
franta-hg@1
   141
                    <isfalse value="${directory.deployment.supported}"/>
franta-hg@1
   142
                    <isset property="dist.ear.dir"/>
franta-hg@1
   143
                </or>
franta-hg@1
   144
            </and>
franta-hg@1
   145
        </condition>
franta-hg@1
   146
        <condition property="do.tmp.war.package">
franta-hg@1
   147
            <or>
franta-hg@1
   148
                <isfalse value="${directory.deployment.supported}"/>
franta-hg@1
   149
                <isset property="dist.ear.dir"/>
franta-hg@1
   150
            </or>
franta-hg@1
   151
        </condition>
franta-hg@1
   152
        <property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
franta-hg@1
   153
        <condition else="" property="application.args.param" value="${application.args}">
franta-hg@1
   154
            <and>
franta-hg@1
   155
                <isset property="application.args"/>
franta-hg@1
   156
                <not>
franta-hg@1
   157
                    <equals arg1="${application.args}" arg2="" trim="true"/>
franta-hg@1
   158
                </not>
franta-hg@1
   159
            </and>
franta-hg@1
   160
        </condition>
franta-hg@1
   161
        <property name="source.encoding" value="${file.encoding}"/>
franta-hg@1
   162
        <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
franta-hg@1
   163
            <and>
franta-hg@1
   164
                <isset property="javadoc.encoding"/>
franta-hg@1
   165
                <not>
franta-hg@1
   166
                    <equals arg1="${javadoc.encoding}" arg2=""/>
franta-hg@1
   167
                </not>
franta-hg@1
   168
            </and>
franta-hg@1
   169
        </condition>
franta-hg@1
   170
        <property name="javadoc.encoding.used" value="${source.encoding}"/>
franta-hg@1
   171
        <property name="includes" value="**"/>
franta-hg@1
   172
        <property name="excludes" value=""/>
franta-hg@1
   173
        <property name="runmain.jvmargs" value=""/>
franta-hg@1
   174
        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
franta-hg@1
   175
        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
franta-hg@1
   176
            <length length="0" string="${endorsed.classpath}" when="greater"/>
franta-hg@1
   177
        </condition>
franta-hg@1
   178
    </target>
franta-hg@1
   179
    <target depends="init" name="-init-cos" unless="deploy.on.save">
franta-hg@1
   180
        <condition property="deploy.on.save" value="true">
franta-hg@1
   181
            <istrue value="${j2ee.deploy.on.save}"/>
franta-hg@1
   182
        </condition>
franta-hg@1
   183
    </target>
franta-hg@1
   184
    <target name="-post-init">
franta-hg@1
   185
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   186
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   187
    </target>
franta-hg@1
   188
    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
franta-hg@1
   189
        <fail unless="src.dir">Must set src.dir</fail>
franta-hg@1
   190
        <fail unless="test.src.dir">Must set test.src.dir</fail>
franta-hg@1
   191
        <fail unless="build.dir">Must set build.dir</fail>
franta-hg@1
   192
        <fail unless="build.web.dir">Must set build.web.dir</fail>
franta-hg@1
   193
        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
franta-hg@1
   194
        <fail unless="dist.dir">Must set dist.dir</fail>
franta-hg@1
   195
        <fail unless="build.classes.dir">Must set build.classes.dir</fail>
franta-hg@1
   196
        <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
franta-hg@1
   197
        <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
franta-hg@1
   198
        <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
franta-hg@1
   199
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
franta-hg@1
   200
        <fail unless="dist.war">Must set dist.war</fail>
franta-hg@1
   201
        <fail unless="j2ee.platform.classpath">
franta-hg@1
   202
The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
franta-hg@1
   203
Either open the project in the IDE and assign the server or setup the server classpath manually.
franta-hg@1
   204
For example like this:
franta-hg@1
   205
   ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
franta-hg@1
   206
or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
franta-hg@1
   207
                </fail>
franta-hg@1
   208
    </target>
franta-hg@1
   209
    <target name="-init-macrodef-property">
franta-hg@1
   210
        <macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@1
   211
            <attribute name="name"/>
franta-hg@1
   212
            <attribute name="value"/>
franta-hg@1
   213
            <sequential>
franta-hg@1
   214
                <property name="@{name}" value="${@{value}}"/>
franta-hg@1
   215
            </sequential>
franta-hg@1
   216
        </macrodef>
franta-hg@1
   217
    </target>
franta-hg@1
   218
    <target name="-init-macrodef-javac">
franta-hg@1
   219
        <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
franta-hg@1
   220
            <attribute default="${src.dir}" name="srcdir"/>
franta-hg@1
   221
            <attribute default="${build.classes.dir}" name="destdir"/>
franta-hg@1
   222
            <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
franta-hg@1
   223
            <attribute default="${includes}" name="includes"/>
franta-hg@1
   224
            <attribute default="${excludes}" name="excludes"/>
franta-hg@1
   225
            <attribute default="${javac.debug}" name="debug"/>
franta-hg@1
   226
            <attribute default="${empty.dir}" name="gensrcdir"/>
franta-hg@1
   227
            <element name="customize" optional="true"/>
franta-hg@1
   228
            <sequential>
franta-hg@1
   229
                <property location="${build.dir}/empty" name="empty.dir"/>
franta-hg@1
   230
                <mkdir dir="${empty.dir}"/>
franta-hg@1
   231
                <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@1
   232
                    <src>
franta-hg@1
   233
                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
franta-hg@1
   234
                            <include name="*"/>
franta-hg@1
   235
                        </dirset>
franta-hg@1
   236
                    </src>
franta-hg@1
   237
                    <classpath>
franta-hg@1
   238
                        <path path="@{classpath}"/>
franta-hg@1
   239
                    </classpath>
franta-hg@1
   240
                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@1
   241
                    <compilerarg line="${javac.compilerargs}"/>
franta-hg@1
   242
                    <customize/>
franta-hg@1
   243
                </javac>
franta-hg@1
   244
            </sequential>
franta-hg@1
   245
        </macrodef>
franta-hg@1
   246
    </target>
franta-hg@1
   247
    <target name="-init-macrodef-junit">
franta-hg@1
   248
        <macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
franta-hg@1
   249
            <attribute default="${includes}" name="includes"/>
franta-hg@1
   250
            <attribute default="${excludes}" name="excludes"/>
franta-hg@1
   251
            <attribute default="**" name="testincludes"/>
franta-hg@1
   252
            <sequential>
franta-hg@1
   253
                <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
franta-hg@1
   254
                    <batchtest todir="${build.test.results.dir}">
franta-hg@1
   255
                        <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
franta-hg@1
   256
                            <filename name="@{testincludes}"/>
franta-hg@1
   257
                        </fileset>
franta-hg@1
   258
                    </batchtest>
franta-hg@1
   259
                    <classpath>
franta-hg@1
   260
                        <path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
franta-hg@1
   261
                    </classpath>
franta-hg@1
   262
                    <syspropertyset>
franta-hg@1
   263
                        <propertyref prefix="test-sys-prop."/>
franta-hg@1
   264
                        <mapper from="test-sys-prop.*" to="*" type="glob"/>
franta-hg@1
   265
                    </syspropertyset>
franta-hg@1
   266
                    <formatter type="brief" usefile="false"/>
franta-hg@1
   267
                    <formatter type="xml"/>
franta-hg@1
   268
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@1
   269
                    <jvmarg line="${runmain.jvmargs}"/>
franta-hg@1
   270
                </junit>
franta-hg@1
   271
            </sequential>
franta-hg@1
   272
        </macrodef>
franta-hg@1
   273
    </target>
franta-hg@1
   274
    <target name="-init-macrodef-java">
franta-hg@1
   275
        <macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@1
   276
            <attribute default="${main.class}" name="classname"/>
franta-hg@1
   277
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@1
   278
            <element name="customize" optional="true"/>
franta-hg@1
   279
            <sequential>
franta-hg@1
   280
                <java classname="@{classname}" fork="true">
franta-hg@1
   281
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@1
   282
                    <jvmarg line="${runmain.jvmargs}"/>
franta-hg@1
   283
                    <classpath>
franta-hg@1
   284
                        <path path="@{classpath}:${j2ee.platform.classpath}"/>
franta-hg@1
   285
                    </classpath>
franta-hg@1
   286
                    <syspropertyset>
franta-hg@1
   287
                        <propertyref prefix="run-sys-prop."/>
franta-hg@1
   288
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@1
   289
                    </syspropertyset>
franta-hg@1
   290
                    <customize/>
franta-hg@1
   291
                </java>
franta-hg@1
   292
            </sequential>
franta-hg@1
   293
        </macrodef>
franta-hg@1
   294
    </target>
franta-hg@1
   295
    <target name="-init-macrodef-nbjsdebug">
franta-hg@1
   296
        <macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@1
   297
            <attribute default="${client.url}" name="webUrl"/>
franta-hg@1
   298
            <sequential>
franta-hg@1
   299
                <nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
franta-hg@1
   300
            </sequential>
franta-hg@1
   301
        </macrodef>
franta-hg@1
   302
    </target>
franta-hg@1
   303
    <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
franta-hg@1
   304
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@1
   305
            <attribute default="${main.class}" name="name"/>
franta-hg@1
   306
            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
franta-hg@1
   307
            <sequential>
franta-hg@1
   308
                <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
franta-hg@1
   309
                    <classpath>
franta-hg@1
   310
                        <path path="@{classpath}"/>
franta-hg@1
   311
                    </classpath>
franta-hg@1
   312
                </nbjpdastart>
franta-hg@1
   313
            </sequential>
franta-hg@1
   314
        </macrodef>
franta-hg@1
   315
        <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@1
   316
            <attribute default="${build.classes.dir}" name="dir"/>
franta-hg@1
   317
            <sequential>
franta-hg@1
   318
                <nbjpdareload>
franta-hg@1
   319
                    <fileset dir="@{dir}" includes="${fix.classes}">
franta-hg@1
   320
                        <include name="${fix.includes}*.class"/>
franta-hg@1
   321
                    </fileset>
franta-hg@1
   322
                </nbjpdareload>
franta-hg@1
   323
            </sequential>
franta-hg@1
   324
        </macrodef>
franta-hg@1
   325
        <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@1
   326
            <sequential>
franta-hg@1
   327
                <nbjpdaappreloaded/>
franta-hg@1
   328
            </sequential>
franta-hg@1
   329
        </macrodef>
franta-hg@1
   330
    </target>
franta-hg@1
   331
    <target name="-init-debug-args">
franta-hg@1
   332
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
franta-hg@1
   333
        <condition property="have-jdk-older-than-1.4">
franta-hg@1
   334
            <or>
franta-hg@1
   335
                <contains string="${version-output}" substring="java version &quot;1.0"/>
franta-hg@1
   336
                <contains string="${version-output}" substring="java version &quot;1.1"/>
franta-hg@1
   337
                <contains string="${version-output}" substring="java version &quot;1.2"/>
franta-hg@1
   338
                <contains string="${version-output}" substring="java version &quot;1.3"/>
franta-hg@1
   339
            </or>
franta-hg@1
   340
        </condition>
franta-hg@1
   341
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
franta-hg@1
   342
            <istrue value="${have-jdk-older-than-1.4}"/>
franta-hg@1
   343
        </condition>
franta-hg@1
   344
        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
franta-hg@1
   345
            <os family="windows"/>
franta-hg@1
   346
        </condition>
franta-hg@1
   347
        <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
franta-hg@1
   348
            <isset property="debug.transport"/>
franta-hg@1
   349
        </condition>
franta-hg@1
   350
    </target>
franta-hg@1
   351
    <target depends="-init-debug-args" name="-init-macrodef-debug">
franta-hg@1
   352
        <macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
franta-hg@1
   353
            <attribute default="${main.class}" name="classname"/>
franta-hg@1
   354
            <attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
franta-hg@1
   355
            <attribute default="${application.args.param}" name="args"/>
franta-hg@1
   356
            <element name="customize" optional="true"/>
franta-hg@1
   357
            <sequential>
franta-hg@1
   358
                <java classname="@{classname}" fork="true">
franta-hg@1
   359
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@1
   360
                    <jvmarg line="${debug-args-line}"/>
franta-hg@1
   361
                    <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
franta-hg@1
   362
                    <jvmarg line="${runmain.jvmargs}"/>
franta-hg@1
   363
                    <classpath>
franta-hg@1
   364
                        <path path="@{classpath}"/>
franta-hg@1
   365
                    </classpath>
franta-hg@1
   366
                    <syspropertyset>
franta-hg@1
   367
                        <propertyref prefix="run-sys-prop."/>
franta-hg@1
   368
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@1
   369
                    </syspropertyset>
franta-hg@1
   370
                    <arg line="@{args}"/>
franta-hg@1
   371
                    <customize/>
franta-hg@1
   372
                </java>
franta-hg@1
   373
            </sequential>
franta-hg@1
   374
        </macrodef>
franta-hg@1
   375
    </target>
franta-hg@1
   376
    <target name="-init-taskdefs">
franta-hg@1
   377
        <fail unless="libs.CopyLibs.classpath">
franta-hg@1
   378
The libs.CopyLibs.classpath property is not set up.
franta-hg@1
   379
This property must point to 
franta-hg@1
   380
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
franta-hg@1
   381
of NetBeans IDE installation and is usually located at 
franta-hg@1
   382
&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
franta-hg@1
   383
Either open the project in the IDE and make sure CopyLibs library
franta-hg@1
   384
exists or setup the property manually. For example like this:
franta-hg@1
   385
 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
franta-hg@1
   386
                </fail>
franta-hg@1
   387
        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
franta-hg@1
   388
    </target>
franta-hg@1
   389
    <target depends="-pre-init,-init-private,-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-nbjsdebug,-init-macrodef-debug,-init-taskdefs" name="init"/>
franta-hg@1
   390
    <!--
franta-hg@1
   391
                COMPILATION SECTION
franta-hg@1
   392
            -->
franta-hg@1
   393
    <target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps">
franta-hg@1
   394
        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="dist"/>
franta-hg@1
   395
        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
franta-hg@1
   396
            <property name="deploy.on.save" value="false"/>
franta-hg@1
   397
        </ant>
franta-hg@1
   398
    </target>
franta-hg@1
   399
    <target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps">
franta-hg@1
   400
        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="dist-ear">
franta-hg@1
   401
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@1
   402
        </ant>
franta-hg@1
   403
        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="jar">
franta-hg@1
   404
            <property name="deploy.on.save" value="false"/>
franta-hg@1
   405
        </ant>
franta-hg@1
   406
    </target>
franta-hg@1
   407
    <target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
franta-hg@1
   408
    <target depends="init,deps-jar" name="-pre-pre-compile">
franta-hg@1
   409
        <mkdir dir="${build.classes.dir}"/>
franta-hg@1
   410
    </target>
franta-hg@1
   411
    <target name="-pre-compile">
franta-hg@1
   412
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   413
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   414
    </target>
franta-hg@1
   415
    <target name="-copy-webdir">
franta-hg@1
   416
        <copy todir="${build.web.dir}">
franta-hg@1
   417
            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
franta-hg@1
   418
        </copy>
franta-hg@1
   419
        <copy todir="${build.web.dir}/WEB-INF">
franta-hg@1
   420
            <fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
franta-hg@1
   421
        </copy>
franta-hg@1
   422
    </target>
franta-hg@1
   423
    <target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest" if="have.sources" name="-do-compile">
franta-hg@1
   424
        <webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
franta-hg@1
   425
        <copy todir="${build.classes.dir}">
franta-hg@1
   426
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@1
   427
        </copy>
franta-hg@1
   428
    </target>
franta-hg@1
   429
    <target if="has.custom.manifest" name="-copy-manifest">
franta-hg@1
   430
        <mkdir dir="${build.meta.inf.dir}"/>
franta-hg@1
   431
        <copy todir="${build.meta.inf.dir}">
franta-hg@1
   432
            <fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
franta-hg@1
   433
        </copy>
franta-hg@1
   434
    </target>
franta-hg@1
   435
    <target if="has.persistence.xml" name="-copy-persistence-xml">
franta-hg@1
   436
        <mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
franta-hg@1
   437
        <copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
franta-hg@1
   438
            <fileset dir="${persistence.xml.dir}" includes="persistence.xml"/>
franta-hg@1
   439
        </copy>
franta-hg@1
   440
    </target>
franta-hg@1
   441
    <target name="-post-compile">
franta-hg@1
   442
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   443
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   444
    </target>
franta-hg@1
   445
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
franta-hg@1
   446
    <target name="-pre-compile-single">
franta-hg@1
   447
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   448
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   449
    </target>
franta-hg@1
   450
    <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
franta-hg@1
   451
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@1
   452
        <webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
franta-hg@1
   453
        <copy todir="${build.classes.dir}">
franta-hg@1
   454
            <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@1
   455
        </copy>
franta-hg@1
   456
    </target>
franta-hg@1
   457
    <target name="-post-compile-single">
franta-hg@1
   458
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   459
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   460
    </target>
franta-hg@1
   461
    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
franta-hg@1
   462
    <target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
franta-hg@1
   463
        <mkdir dir="${build.generated.dir}/src"/>
franta-hg@1
   464
        <java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
franta-hg@1
   465
            <arg value="-uriroot"/>
franta-hg@1
   466
            <arg file="${basedir}/${build.web.dir}"/>
franta-hg@1
   467
            <arg value="-d"/>
franta-hg@1
   468
            <arg file="${basedir}/${build.generated.dir}/src"/>
franta-hg@1
   469
            <arg value="-die1"/>
franta-hg@1
   470
            <arg value="-compilerSourceVM ${javac.source}"/>
franta-hg@1
   471
            <arg value="-compilerTargetVM ${javac.target}"/>
franta-hg@1
   472
            <arg value="-javaEncoding ${source.encoding}"/>
franta-hg@1
   473
            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
franta-hg@1
   474
        </java>
franta-hg@1
   475
        <mkdir dir="${build.generated.dir}/classes"/>
franta-hg@1
   476
        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
franta-hg@1
   477
    </target>
franta-hg@1
   478
    <target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
franta-hg@1
   479
        <fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
franta-hg@1
   480
        <mkdir dir="${build.generated.dir}/src"/>
franta-hg@1
   481
        <java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
franta-hg@1
   482
            <arg value="-uriroot"/>
franta-hg@1
   483
            <arg file="${basedir}/${build.web.dir}"/>
franta-hg@1
   484
            <arg value="-d"/>
franta-hg@1
   485
            <arg file="${basedir}/${build.generated.dir}/src"/>
franta-hg@1
   486
            <arg value="-die1"/>
franta-hg@1
   487
            <arg value="-jspc.files"/>
franta-hg@1
   488
            <arg path="${jsp.includes}"/>
franta-hg@1
   489
            <arg value="-compilerSourceVM ${javac.source}"/>
franta-hg@1
   490
            <arg value="-compilerTargetVM ${javac.target}"/>
franta-hg@1
   491
            <arg value="-javaEncoding ${source.encoding}"/>
franta-hg@1
   492
            <classpath path="${java.home}/../lib/tools.jar:${jspctask.classpath}:${jspcompilation.classpath}"/>
franta-hg@1
   493
        </java>
franta-hg@1
   494
        <mkdir dir="${build.generated.dir}/classes"/>
franta-hg@1
   495
        <webproject2:javac classpath="${j2ee.platform.classpath}:${build.classes.dir}:${jspcompilation.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
franta-hg@1
   496
            <customize>
franta-hg@1
   497
                <patternset includes="${javac.jsp.includes}"/>
franta-hg@1
   498
            </customize>
franta-hg@1
   499
        </webproject2:javac>
franta-hg@1
   500
    </target>
franta-hg@1
   501
    <target name="compile-single-jsp">
franta-hg@1
   502
        <fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
franta-hg@1
   503
        <antcall target="-do-compile-single-jsp"/>
franta-hg@1
   504
    </target>
franta-hg@1
   505
    <!--
franta-hg@1
   506
                DIST BUILDING SECTION
franta-hg@1
   507
            -->
franta-hg@1
   508
    <target name="-pre-dist">
franta-hg@1
   509
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   510
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   511
    </target>
franta-hg@1
   512
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
franta-hg@1
   513
        <dirname file="${dist.war}" property="dist.jar.dir"/>
franta-hg@1
   514
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@1
   515
        <jar compress="${jar.compress}" jarfile="${dist.war}">
franta-hg@1
   516
            <fileset dir="${build.web.dir}"/>
franta-hg@1
   517
        </jar>
franta-hg@1
   518
    </target>
franta-hg@1
   519
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
franta-hg@1
   520
        <dirname file="${dist.war}" property="dist.jar.dir"/>
franta-hg@1
   521
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@1
   522
        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
franta-hg@1
   523
            <fileset dir="${build.web.dir}"/>
franta-hg@1
   524
        </jar>
franta-hg@1
   525
    </target>
franta-hg@1
   526
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
franta-hg@1
   527
        <dirname file="${dist.war}" property="dist.jar.dir"/>
franta-hg@1
   528
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@1
   529
        <jar compress="${jar.compress}" jarfile="${dist.war}">
franta-hg@1
   530
            <fileset dir="${build.web.dir}"/>
franta-hg@1
   531
        </jar>
franta-hg@1
   532
    </target>
franta-hg@1
   533
    <target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
franta-hg@1
   534
        <dirname file="${dist.war}" property="dist.jar.dir"/>
franta-hg@1
   535
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@1
   536
        <jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
franta-hg@1
   537
            <fileset dir="${build.web.dir}"/>
franta-hg@1
   538
        </jar>
franta-hg@1
   539
    </target>
franta-hg@1
   540
    <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
franta-hg@1
   541
    <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
franta-hg@1
   542
        <copyfiles files="${reference.SpringDemo1-ejb.dist}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}"/>
franta-hg@1
   543
        <copyfiles files="${reference.SpringDemo1-lib.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
franta-hg@1
   544
        <mkdir dir="${build.web.dir}/META-INF"/>
franta-hg@1
   545
        <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
franta-hg@1
   546
    </target>
franta-hg@1
   547
    <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
franta-hg@1
   548
        <copyfiles files="${reference.SpringDemo1-ejb.dist}" todir="${build.web.dir}/WEB-INF/lib"/>
franta-hg@1
   549
        <copyfiles files="${reference.SpringDemo1-lib.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
franta-hg@1
   550
    </target>
franta-hg@1
   551
    <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
franta-hg@1
   552
        <delete dir="${build.web.dir}/WEB-INF/lib"/>
franta-hg@1
   553
    </target>
franta-hg@1
   554
    <target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
franta-hg@1
   555
        <dirname file="${dist.ear.war}" property="dist.jar.dir"/>
franta-hg@1
   556
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@1
   557
        <jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
franta-hg@1
   558
            <fileset dir="${build.web.dir}"/>
franta-hg@1
   559
        </jar>
franta-hg@1
   560
    </target>
franta-hg@1
   561
    <target name="-post-dist">
franta-hg@1
   562
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   563
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   564
    </target>
franta-hg@1
   565
    <target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
franta-hg@1
   566
    <target depends="init,-clean-webinf-lib,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
franta-hg@1
   567
    <!--
franta-hg@1
   568
                EXECUTION SECTION
franta-hg@1
   569
            -->
franta-hg@1
   570
    <target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
franta-hg@1
   571
    <target name="-pre-run-deploy">
franta-hg@1
   572
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   573
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   574
    </target>
franta-hg@1
   575
    <target name="-post-run-deploy">
franta-hg@1
   576
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   577
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   578
    </target>
franta-hg@1
   579
    <target name="-pre-nbmodule-run-deploy">
franta-hg@1
   580
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   581
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
franta-hg@1
   582
    </target>
franta-hg@1
   583
    <target name="-post-nbmodule-run-deploy">
franta-hg@1
   584
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   585
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
franta-hg@1
   586
    </target>
franta-hg@1
   587
    <target name="-run-deploy-am">
franta-hg@1
   588
        <!-- Task to deploy to the Access Manager runtime. -->
franta-hg@1
   589
    </target>
franta-hg@1
   590
    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-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@1
   591
        <nbjpdaappreloaded/>
franta-hg@1
   592
    </target>
franta-hg@1
   593
    <target if="netbeans.home" name="-run-deploy-nb">
franta-hg@1
   594
        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
franta-hg@1
   595
    </target>
franta-hg@1
   596
    <target name="-init-deploy-ant" unless="netbeans.home">
franta-hg@1
   597
        <property name="deploy.ant.archive" value="${dist.war}"/>
franta-hg@1
   598
        <property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
franta-hg@1
   599
        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
franta-hg@1
   600
        <property name="deploy.ant.enabled" value="true"/>
franta-hg@1
   601
    </target>
franta-hg@1
   602
    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
franta-hg@1
   603
    <target if="netbeans.home" name="-run-undeploy-nb">
franta-hg@1
   604
        <fail message="Undeploy is not supported from within the IDE"/>
franta-hg@1
   605
    </target>
franta-hg@1
   606
    <target depends="init,-pre-dist,dist,-post-dist" name="verify">
franta-hg@1
   607
        <nbverify file="${dist.war}"/>
franta-hg@1
   608
    </target>
franta-hg@1
   609
    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
franta-hg@1
   610
    <target if="do.display.browser" name="-init-display-browser">
franta-hg@1
   611
        <condition property="do.display.browser.nb">
franta-hg@1
   612
            <isset property="netbeans.home"/>
franta-hg@1
   613
        </condition>
franta-hg@1
   614
        <condition property="do.display.browser.cl">
franta-hg@1
   615
            <isset property="deploy.ant.enabled"/>
franta-hg@1
   616
        </condition>
franta-hg@1
   617
    </target>
franta-hg@1
   618
    <target if="do.display.browser.nb" name="-display-browser-nb">
franta-hg@1
   619
        <nbbrowse url="${client.url}"/>
franta-hg@1
   620
    </target>
franta-hg@1
   621
    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
franta-hg@1
   622
        <condition property="browser" value="rundll32">
franta-hg@1
   623
            <os family="windows"/>
franta-hg@1
   624
        </condition>
franta-hg@1
   625
        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
franta-hg@1
   626
            <os family="windows"/>
franta-hg@1
   627
        </condition>
franta-hg@1
   628
        <condition property="browser" value="/usr/bin/open">
franta-hg@1
   629
            <os family="mac"/>
franta-hg@1
   630
        </condition>
franta-hg@1
   631
        <property environment="env"/>
franta-hg@1
   632
        <condition property="browser" value="${env.BROWSER}">
franta-hg@1
   633
            <isset property="env.BROWSER"/>
franta-hg@1
   634
        </condition>
franta-hg@1
   635
        <condition property="browser" value="/usr/bin/firefox">
franta-hg@1
   636
            <available file="/usr/bin/firefox"/>
franta-hg@1
   637
        </condition>
franta-hg@1
   638
        <condition property="browser" value="/usr/local/firefox/firefox">
franta-hg@1
   639
            <available file="/usr/local/firefox/firefox"/>
franta-hg@1
   640
        </condition>
franta-hg@1
   641
        <condition property="browser" value="/usr/bin/mozilla">
franta-hg@1
   642
            <available file="/usr/bin/mozilla"/>
franta-hg@1
   643
        </condition>
franta-hg@1
   644
        <condition property="browser" value="/usr/local/mozilla/mozilla">
franta-hg@1
   645
            <available file="/usr/local/mozilla/mozilla"/>
franta-hg@1
   646
        </condition>
franta-hg@1
   647
        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
franta-hg@1
   648
            <available file="/usr/sfw/lib/firefox/firefox"/>
franta-hg@1
   649
        </condition>
franta-hg@1
   650
        <condition property="browser" value="/opt/csw/bin/firefox">
franta-hg@1
   651
            <available file="/opt/csw/bin/firefox"/>
franta-hg@1
   652
        </condition>
franta-hg@1
   653
        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
franta-hg@1
   654
            <available file="/usr/sfw/lib/mozilla/mozilla"/>
franta-hg@1
   655
        </condition>
franta-hg@1
   656
        <condition property="browser" value="/opt/csw/bin/mozilla">
franta-hg@1
   657
            <available file="/opt/csw/bin/mozilla"/>
franta-hg@1
   658
        </condition>
franta-hg@1
   659
    </target>
franta-hg@1
   660
    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
franta-hg@1
   661
        <fail unless="browser">
franta-hg@1
   662
                    Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
franta-hg@1
   663
                </fail>
franta-hg@1
   664
        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
franta-hg@1
   665
        <echo>Launching ${browse.url}</echo>
franta-hg@1
   666
        <exec executable="${browser}" spawn="true">
franta-hg@1
   667
            <arg line="${browser.args} ${browse.url}"/>
franta-hg@1
   668
        </exec>
franta-hg@1
   669
    </target>
franta-hg@1
   670
    <target depends="init,-init-cos,compile-single" name="run-main">
franta-hg@1
   671
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@1
   672
        <webproject1:java classname="${run.class}"/>
franta-hg@1
   673
    </target>
franta-hg@1
   674
    <target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
franta-hg@1
   675
        <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
franta-hg@1
   676
        <webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
franta-hg@1
   677
    </target>
franta-hg@1
   678
    <!--
franta-hg@1
   679
                DEBUGGING SECTION
franta-hg@1
   680
            -->
franta-hg@1
   681
    <target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
franta-hg@1
   682
        <nbstartserver debugmode="true"/>
franta-hg@1
   683
        <antcall target="connect-debugger"/>
franta-hg@1
   684
        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
franta-hg@1
   685
        <antcall target="debug-display-browser"/>
franta-hg@1
   686
        <antcall target="connect-client-debugger"/>
franta-hg@1
   687
    </target>
franta-hg@1
   688
    <target if="do.debug.server" name="connect-debugger" unless="is.debugged">
franta-hg@1
   689
        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
franta-hg@1
   690
            <classpath>
franta-hg@1
   691
                <path path="${debug.classpath}:${j2ee.platform.classpath}"/>
franta-hg@1
   692
            </classpath>
franta-hg@1
   693
            <sourcepath>
franta-hg@1
   694
                <path path="${web.docbase.dir}"/>
franta-hg@1
   695
            </sourcepath>
franta-hg@1
   696
        </nbjpdaconnect>
franta-hg@1
   697
    </target>
franta-hg@1
   698
    <target if="do.display.browser.debug" name="debug-display-browser">
franta-hg@1
   699
        <nbbrowse url="${client.url}"/>
franta-hg@1
   700
    </target>
franta-hg@1
   701
    <target if="do.debug.client" name="connect-client-debugger">
franta-hg@1
   702
        <webproject1:nbjsdebugstart webUrl="${client.url}"/>
franta-hg@1
   703
    </target>
franta-hg@1
   704
    <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
franta-hg@1
   705
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
franta-hg@1
   706
        <webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
franta-hg@1
   707
    </target>
franta-hg@1
   708
    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
franta-hg@1
   709
    <target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
franta-hg@1
   710
    <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
franta-hg@1
   711
        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
franta-hg@1
   712
    </target>
franta-hg@1
   713
    <target depends="init" if="netbeans.home" name="-debug-start-debugger">
franta-hg@1
   714
        <webproject1:nbjpdastart name="${debug.class}"/>
franta-hg@1
   715
    </target>
franta-hg@1
   716
    <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
franta-hg@1
   717
        <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
franta-hg@1
   718
        <webproject1:debug classname="${debug.class}"/>
franta-hg@1
   719
    </target>
franta-hg@1
   720
    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
franta-hg@1
   721
    <target depends="init" name="-pre-debug-fix">
franta-hg@1
   722
        <fail unless="fix.includes">Must set fix.includes</fail>
franta-hg@1
   723
        <property name="javac.includes" value="${fix.includes}.java"/>
franta-hg@1
   724
    </target>
franta-hg@1
   725
    <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
franta-hg@1
   726
        <webproject1:nbjpdareload/>
franta-hg@1
   727
    </target>
franta-hg@1
   728
    <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
franta-hg@1
   729
    <!--
franta-hg@1
   730
                JAVADOC SECTION
franta-hg@1
   731
            -->
franta-hg@1
   732
    <target depends="init" name="javadoc-build">
franta-hg@1
   733
        <mkdir dir="${dist.javadoc.dir}"/>
franta-hg@1
   734
        <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@1
   735
            <classpath>
franta-hg@1
   736
                <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
franta-hg@1
   737
            </classpath>
franta-hg@1
   738
            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
franta-hg@1
   739
                <filename name="**/*.java"/>
franta-hg@1
   740
            </fileset>
franta-hg@1
   741
            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
franta-hg@1
   742
                <include name="**/*.java"/>
franta-hg@1
   743
            </fileset>
franta-hg@1
   744
        </javadoc>
franta-hg@1
   745
    </target>
franta-hg@1
   746
    <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
franta-hg@1
   747
        <nbbrowse file="${dist.javadoc.dir}/index.html"/>
franta-hg@1
   748
    </target>
franta-hg@1
   749
    <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
franta-hg@1
   750
    <!--
franta-hg@1
   751
                
franta-hg@1
   752
                JUNIT COMPILATION SECTION
franta-hg@1
   753
            -->
franta-hg@1
   754
    <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
franta-hg@1
   755
        <mkdir dir="${build.test.classes.dir}"/>
franta-hg@1
   756
        <property name="j2ee.platform.embeddableejb.classpath" value=""/>
franta-hg@1
   757
    </target>
franta-hg@1
   758
    <target name="-pre-compile-test">
franta-hg@1
   759
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   760
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   761
    </target>
franta-hg@1
   762
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
franta-hg@1
   763
        <webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
franta-hg@1
   764
        <copy todir="${build.test.classes.dir}">
franta-hg@1
   765
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@1
   766
        </copy>
franta-hg@1
   767
    </target>
franta-hg@1
   768
    <target name="-post-compile-test">
franta-hg@1
   769
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   770
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   771
    </target>
franta-hg@1
   772
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
franta-hg@1
   773
    <target name="-pre-compile-test-single">
franta-hg@1
   774
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   775
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   776
    </target>
franta-hg@1
   777
    <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
franta-hg@1
   778
        <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
franta-hg@1
   779
        <webproject2: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}"/>
franta-hg@1
   780
        <copy todir="${build.test.classes.dir}">
franta-hg@1
   781
            <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
franta-hg@1
   782
        </copy>
franta-hg@1
   783
    </target>
franta-hg@1
   784
    <target name="-post-compile-test-single">
franta-hg@1
   785
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   786
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   787
    </target>
franta-hg@1
   788
    <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@1
   789
    <!--
franta-hg@1
   790
                
franta-hg@1
   791
                JUNIT EXECUTION SECTION
franta-hg@1
   792
            -->
franta-hg@1
   793
    <target depends="init" if="have.tests" name="-pre-test-run">
franta-hg@1
   794
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@1
   795
    </target>
franta-hg@1
   796
    <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
franta-hg@1
   797
        <webproject2:junit testincludes="**/*Test.java"/>
franta-hg@1
   798
    </target>
franta-hg@1
   799
    <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
franta-hg@1
   800
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@1
   801
    </target>
franta-hg@1
   802
    <target depends="init" if="have.tests" name="test-report"/>
franta-hg@1
   803
    <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
franta-hg@1
   804
    <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@1
   805
    <target depends="init" if="have.tests" name="-pre-test-run-single">
franta-hg@1
   806
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@1
   807
    </target>
franta-hg@1
   808
    <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
franta-hg@1
   809
        <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
franta-hg@1
   810
        <webproject2:junit excludes="" includes="${test.includes}"/>
franta-hg@1
   811
    </target>
franta-hg@1
   812
    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
franta-hg@1
   813
        <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
franta-hg@1
   814
    </target>
franta-hg@1
   815
    <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@1
   816
    <!--
franta-hg@1
   817
                
franta-hg@1
   818
                JUNIT DEBUGGING SECTION
franta-hg@1
   819
            -->
franta-hg@1
   820
    <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
franta-hg@1
   821
        <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
franta-hg@1
   822
        <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
franta-hg@1
   823
        <delete file="${test.report.file}"/>
franta-hg@1
   824
        <!-- must exist, otherwise the XML formatter would fail -->
franta-hg@1
   825
        <mkdir dir="${build.test.results.dir}"/>
franta-hg@1
   826
        <webproject1: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}">
franta-hg@1
   827
            <customize>
franta-hg@1
   828
                <arg value="showoutput=true"/>
franta-hg@1
   829
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
franta-hg@1
   830
                <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
franta-hg@1
   831
            </customize>
franta-hg@1
   832
        </webproject1:debug>
franta-hg@1
   833
    </target>
franta-hg@1
   834
    <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
franta-hg@1
   835
        <webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
franta-hg@1
   836
    </target>
franta-hg@1
   837
    <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
franta-hg@1
   838
    <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
franta-hg@1
   839
        <webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
franta-hg@1
   840
    </target>
franta-hg@1
   841
    <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
franta-hg@1
   842
    <!--
franta-hg@1
   843
                
franta-hg@1
   844
                CLEANUP SECTION
franta-hg@1
   845
            -->
franta-hg@1
   846
    <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
franta-hg@1
   847
        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="clean"/>
franta-hg@1
   848
        <ant antfile="${project.SpringDemo1-lib}/build.xml" inheritall="false" target="clean"/>
franta-hg@1
   849
    </target>
franta-hg@1
   850
    <target depends="init" name="do-clean">
franta-hg@1
   851
        <condition property="build.dir.to.clean" value="${build.web.dir}">
franta-hg@1
   852
            <isset property="dist.ear.dir"/>
franta-hg@1
   853
        </condition>
franta-hg@1
   854
        <property name="build.dir.to.clean" value="${build.web.dir}"/>
franta-hg@1
   855
        <delete includeEmptyDirs="true" quiet="true">
franta-hg@1
   856
            <fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
franta-hg@1
   857
        </delete>
franta-hg@1
   858
        <delete dir="${build.dir}"/>
franta-hg@1
   859
        <available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
franta-hg@1
   860
        <delete dir="${dist.dir}"/>
franta-hg@1
   861
    </target>
franta-hg@1
   862
    <target depends="do-clean" if="status.clean-failed" name="check-clean">
franta-hg@1
   863
        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
franta-hg@1
   864
        <echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
franta-hg@1
   865
    </target>
franta-hg@1
   866
    <target depends="init" if="netbeans.home" name="undeploy-clean">
franta-hg@1
   867
        <nbundeploy failOnError="false" startServer="false"/>
franta-hg@1
   868
    </target>
franta-hg@1
   869
    <target name="-post-clean">
franta-hg@1
   870
        <!-- Empty placeholder for easier customization. -->
franta-hg@1
   871
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@1
   872
    </target>
franta-hg@1
   873
    <target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
franta-hg@1
   874
    <target depends="clean" description="Clean build products." name="clean-ear"/>
franta-hg@1
   875
</project>