java/SpringDemo1/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
parent 0 b8ecf1ac63fb
permissions -rw-r--r--
Přechod na EAR, EJB.
franta-hg@0
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@0
     2
<!--
franta-hg@1
     3
*** GENERATED FROM project.xml - DO NOT EDIT  ***
franta-hg@1
     4
***         EDIT ../build.xml INSTEAD         ***
franta-hg@0
     5
franta-hg@1
     6
For the purpose of easier reading the script
franta-hg@1
     7
is divided into following sections:
franta-hg@0
     8
franta-hg@1
     9
  - initialization
franta-hg@1
    10
  - compilation
franta-hg@1
    11
  - dist
franta-hg@1
    12
  - execution
franta-hg@1
    13
  - debugging
franta-hg@1
    14
  - cleanup
franta-hg@1
    15
franta-hg@1
    16
-->
franta-hg@1
    17
<project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="SpringDemo1-impl">
franta-hg@0
    18
    <import file="ant-deploy.xml"/>
franta-hg@0
    19
    <fail message="Please build using Ant 1.7.1 or higher.">
franta-hg@0
    20
        <condition>
franta-hg@0
    21
            <not>
franta-hg@0
    22
                <antversion atleast="1.7.1"/>
franta-hg@0
    23
            </not>
franta-hg@0
    24
        </condition>
franta-hg@0
    25
    </fail>
franta-hg@1
    26
    <target depends="dist" description="Build whole project." name="default"/>
franta-hg@1
    27
    <!-- 
franta-hg@1
    28
    INITIALIZATION SECTION 
franta-hg@1
    29
    -->
franta-hg@1
    30
    <target name="pre-init">
franta-hg@0
    31
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
    32
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
    33
    </target>
franta-hg@1
    34
    <target depends="pre-init" name="init-private">
franta-hg@0
    35
        <property file="nbproject/private/private.properties"/>
franta-hg@0
    36
    </target>
franta-hg@1
    37
    <target depends="pre-init,init-private" name="init-userdir">
franta-hg@1
    38
        <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
franta-hg@1
    39
    </target>
franta-hg@1
    40
    <target depends="pre-init,init-private,init-userdir" name="init-user">
franta-hg@0
    41
        <property file="${user.properties.file}"/>
franta-hg@1
    42
    </target>
franta-hg@1
    43
    <target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
franta-hg@1
    44
        <property file="nbproject/project.properties"/>
franta-hg@1
    45
    </target>
franta-hg@1
    46
    <target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
franta-hg@0
    47
        <!-- The two properties below are usually overridden -->
franta-hg@0
    48
        <!-- by the active platform. Just a fallback. -->
franta-hg@0
    49
        <property name="default.javac.source" value="1.4"/>
franta-hg@0
    50
        <property name="default.javac.target" value="1.4"/>
franta-hg@0
    51
        <condition property="do.compile.jsps">
franta-hg@0
    52
            <istrue value="${compile.jsps}"/>
franta-hg@0
    53
        </condition>
franta-hg@1
    54
        <condition property="do.display.browser">
franta-hg@1
    55
            <and>
franta-hg@1
    56
                <istrue value="${display.browser}"/>
franta-hg@1
    57
                <isset property="client.module.uri"/>
franta-hg@0
    58
                <not>
franta-hg@1
    59
                    <isset property="app.client"/>
franta-hg@0
    60
                </not>
franta-hg@0
    61
            </and>
franta-hg@0
    62
        </condition>
franta-hg@1
    63
        <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
franta-hg@1
    64
        <!--
franta-hg@1
    65
                    Variables needed to support directory deployment.
franta-hg@1
    66
                -->
franta-hg@1
    67
        <condition property="do.package.with.custom.manifest.not.directory.deploy">
franta-hg@0
    68
            <and>
franta-hg@0
    69
                <isset property="has.custom.manifest"/>
franta-hg@1
    70
                <isfalse value="${directory.deployment.supported}"/>
franta-hg@0
    71
            </and>
franta-hg@0
    72
        </condition>
franta-hg@1
    73
        <condition property="do.package.without.custom.manifest.not.directory.deploy">
franta-hg@0
    74
            <and>
franta-hg@0
    75
                <not>
franta-hg@0
    76
                    <isset property="has.custom.manifest"/>
franta-hg@0
    77
                </not>
franta-hg@1
    78
                <isfalse value="${directory.deployment.supported}"/>
franta-hg@0
    79
            </and>
franta-hg@0
    80
        </condition>
franta-hg@1
    81
        <condition property="do.package.not.directory.deploy">
franta-hg@1
    82
            <isfalse value="${directory.deployment.supported}"/>
franta-hg@0
    83
        </condition>
franta-hg@1
    84
        <!--End Variables needed to support directory deployment.-->
franta-hg@1
    85
        <condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
franta-hg@1
    86
            <and>
franta-hg@1
    87
                <isset property="main.class"/>
franta-hg@1
    88
                <not>
franta-hg@1
    89
                    <equals arg1="${main.class}" arg2="" trim="true"/>
franta-hg@1
    90
                </not>
franta-hg@1
    91
            </and>
franta-hg@1
    92
        </condition>
franta-hg@1
    93
        <condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
franta-hg@1
    94
            <and>
franta-hg@1
    95
                <isset property="j2ee.appclient.jvmoptions"/>
franta-hg@1
    96
                <not>
franta-hg@1
    97
                    <equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
franta-hg@1
    98
                </not>
franta-hg@1
    99
            </and>
franta-hg@1
   100
        </condition>
franta-hg@0
   101
        <condition else="" property="application.args.param" value="${application.args}">
franta-hg@0
   102
            <and>
franta-hg@0
   103
                <isset property="application.args"/>
franta-hg@0
   104
                <not>
franta-hg@0
   105
                    <equals arg1="${application.args}" arg2="" trim="true"/>
franta-hg@0
   106
                </not>
franta-hg@0
   107
            </and>
franta-hg@0
   108
        </condition>
franta-hg@1
   109
        <condition property="can.debug.appclient">
franta-hg@0
   110
            <and>
franta-hg@1
   111
                <isset property="netbeans.home"/>
franta-hg@1
   112
                <isset property="app.client"/>
franta-hg@0
   113
            </and>
franta-hg@0
   114
        </condition>
franta-hg@0
   115
        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
franta-hg@0
   116
        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
franta-hg@0
   117
            <length length="0" string="${endorsed.classpath}" when="greater"/>
franta-hg@0
   118
        </condition>
franta-hg@0
   119
    </target>
franta-hg@1
   120
    <target depends="init" name="-init-cos">
franta-hg@1
   121
        <condition else="false" property="build.deploy.on.save">
franta-hg@0
   122
            <istrue value="${j2ee.deploy.on.save}"/>
franta-hg@0
   123
        </condition>
franta-hg@0
   124
    </target>
franta-hg@1
   125
    <target name="post-init">
franta-hg@0
   126
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   127
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   128
    </target>
franta-hg@1
   129
    <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
franta-hg@0
   130
        <fail unless="build.dir">Must set build.dir</fail>
franta-hg@0
   131
        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
franta-hg@0
   132
        <fail unless="dist.dir">Must set dist.dir</fail>
franta-hg@0
   133
        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
franta-hg@1
   134
        <fail unless="dist.jar">Must set dist.jar</fail>
franta-hg@0
   135
    </target>
franta-hg@0
   136
    <target name="-init-taskdefs">
franta-hg@0
   137
        <fail unless="libs.CopyLibs.classpath">
franta-hg@0
   138
The libs.CopyLibs.classpath property is not set up.
franta-hg@0
   139
This property must point to 
franta-hg@0
   140
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
franta-hg@0
   141
of NetBeans IDE installation and is usually located at 
franta-hg@0
   142
&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
franta-hg@0
   143
Either open the project in the IDE and make sure CopyLibs library
franta-hg@0
   144
exists or setup the property manually. For example like this:
franta-hg@0
   145
 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
franta-hg@0
   146
                </fail>
franta-hg@0
   147
        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
franta-hg@0
   148
    </target>
franta-hg@1
   149
    <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
franta-hg@0
   150
    <!--
franta-hg@1
   151
    COMPILATION SECTION
franta-hg@1
   152
    -->
franta-hg@1
   153
    <target depends="init" name="deps-jar" unless="no.deps"/>
franta-hg@1
   154
    <target depends="init" name="deps-j2ee-archive" unless="no.deps">
franta-hg@1
   155
        <condition property="build.deploy.on.save" value="false">
franta-hg@1
   156
            <not>
franta-hg@1
   157
                <isset property="build.deploy.on.save"/>
franta-hg@1
   158
            </not>
franta-hg@1
   159
        </condition>
franta-hg@1
   160
        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="dist-ear">
franta-hg@1
   161
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@1
   162
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@1
   163
        </ant>
franta-hg@1
   164
        <condition property="build.deploy.on.save" value="false">
franta-hg@1
   165
            <not>
franta-hg@1
   166
                <isset property="build.deploy.on.save"/>
franta-hg@1
   167
            </not>
franta-hg@1
   168
        </condition>
franta-hg@1
   169
        <ant antfile="${project.SpringDemo1-war}/build.xml" inheritall="false" target="dist-ear">
franta-hg@1
   170
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@1
   171
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@1
   172
        </ant>
franta-hg@0
   173
    </target>
franta-hg@1
   174
    <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
franta-hg@1
   175
    <target name="pre-compile">
franta-hg@0
   176
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   177
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   178
    </target>
franta-hg@1
   179
    <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
franta-hg@1
   180
        <copy todir="${build.dir}/META-INF">
franta-hg@1
   181
            <fileset dir="${meta.inf}"/>
franta-hg@0
   182
        </copy>
franta-hg@0
   183
    </target>
franta-hg@1
   184
    <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
franta-hg@1
   185
        <copyfiles files="${reference.SpringDemo1-war.dist-ear}" todir="${build.dir}//"/>
franta-hg@1
   186
        <copyfiles files="${reference.SpringDemo1-ejb.dist-ear}" todir="${build.dir}//"/>
franta-hg@0
   187
    </target>
franta-hg@1
   188
    <target name="post-compile">
franta-hg@0
   189
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   190
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   191
    </target>
franta-hg@1
   192
    <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
franta-hg@1
   193
    <!--
franta-hg@1
   194
                DIST BUILDING SECTION
franta-hg@1
   195
            -->
franta-hg@1
   196
    <target name="pre-dist">
franta-hg@0
   197
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   198
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   199
    </target>
franta-hg@1
   200
    <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
franta-hg@1
   201
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@1
   202
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@1
   203
        <jar compress="${jar.compress}" jarfile="${dist.jar}">
franta-hg@1
   204
            <fileset dir="${build.dir}"/>
franta-hg@1
   205
        </jar>
franta-hg@0
   206
    </target>
franta-hg@1
   207
    <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
franta-hg@1
   208
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@1
   209
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@1
   210
        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
franta-hg@1
   211
            <fileset dir="${build.dir}"/>
franta-hg@1
   212
        </jar>
franta-hg@1
   213
    </target>
franta-hg@1
   214
    <!--
franta-hg@1
   215
                TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
franta-hg@1
   216
            -->
franta-hg@1
   217
    <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
franta-hg@1
   218
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@1
   219
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@1
   220
        <jar compress="${jar.compress}" jarfile="${dist.jar}">
franta-hg@1
   221
            <fileset dir="${build.dir}"/>
franta-hg@1
   222
        </jar>
franta-hg@1
   223
    </target>
franta-hg@1
   224
    <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
franta-hg@1
   225
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@1
   226
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@1
   227
        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
franta-hg@1
   228
            <fileset dir="${build.dir}"/>
franta-hg@1
   229
        </jar>
franta-hg@1
   230
    </target>
franta-hg@1
   231
    <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
franta-hg@1
   232
    <target depends="init,compile,pre-dist,-do-dist-directory-deploy,post-dist" description="Build distribution (JAR) - if directory deployment is not supported." name="dist-directory-deploy"/>
franta-hg@1
   233
    <!--
franta-hg@1
   234
                END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
franta-hg@1
   235
            -->
franta-hg@1
   236
    <target name="post-dist">
franta-hg@0
   237
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   238
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   239
    </target>
franta-hg@1
   240
    <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
franta-hg@0
   241
    <!--
franta-hg@1
   242
    EXECUTION SECTION
franta-hg@1
   243
    -->
franta-hg@1
   244
    <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
franta-hg@1
   245
    <target name="pre-run-deploy">
franta-hg@0
   246
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   247
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   248
    </target>
franta-hg@1
   249
    <target name="post-run-deploy">
franta-hg@0
   250
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   251
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   252
    </target>
franta-hg@0
   253
    <target name="-pre-nbmodule-run-deploy">
franta-hg@0
   254
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   255
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
franta-hg@0
   256
    </target>
franta-hg@0
   257
    <target name="-post-nbmodule-run-deploy">
franta-hg@0
   258
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   259
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
franta-hg@0
   260
    </target>
franta-hg@1
   261
    <target name="-run-deploy-am" unless="no.deps">
franta-hg@0
   262
        <!-- Task to deploy to the Access Manager runtime. -->
franta-hg@1
   263
        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
franta-hg@1
   264
        <ant antfile="${project.SpringDemo1-war}/build.xml" inheritall="false" target="-run-deploy-am"/>
franta-hg@0
   265
    </target>
franta-hg@1
   266
    <target depends="-init-cos,dist-directory-deploy,pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,post-run-deploy" name="run-deploy"/>
franta-hg@0
   267
    <target if="netbeans.home" name="-run-deploy-nb">
franta-hg@1
   268
        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
franta-hg@0
   269
    </target>
franta-hg@0
   270
    <target name="-init-deploy-ant" unless="netbeans.home">
franta-hg@1
   271
        <property name="deploy.ant.archive" value="${dist.jar}"/>
franta-hg@0
   272
        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
franta-hg@0
   273
        <property name="deploy.ant.enabled" value="true"/>
franta-hg@0
   274
    </target>
franta-hg@0
   275
    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
franta-hg@0
   276
    <target if="netbeans.home" name="-run-undeploy-nb">
franta-hg@0
   277
        <fail message="Undeploy is not supported from within the IDE"/>
franta-hg@0
   278
    </target>
franta-hg@1
   279
    <target depends="dist" name="verify">
franta-hg@1
   280
        <nbverify file="${dist.jar}"/>
franta-hg@0
   281
    </target>
franta-hg@0
   282
    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
franta-hg@0
   283
    <target if="do.display.browser" name="-init-display-browser">
franta-hg@0
   284
        <condition property="do.display.browser.nb">
franta-hg@0
   285
            <isset property="netbeans.home"/>
franta-hg@0
   286
        </condition>
franta-hg@0
   287
        <condition property="do.display.browser.cl">
franta-hg@1
   288
            <and>
franta-hg@1
   289
                <isset property="deploy.ant.enabled"/>
franta-hg@1
   290
                <isset property="deploy.ant.client.url"/>
franta-hg@1
   291
            </and>
franta-hg@0
   292
        </condition>
franta-hg@0
   293
    </target>
franta-hg@0
   294
    <target if="do.display.browser.nb" name="-display-browser-nb">
franta-hg@0
   295
        <nbbrowse url="${client.url}"/>
franta-hg@0
   296
    </target>
franta-hg@0
   297
    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
franta-hg@0
   298
        <condition property="browser" value="rundll32">
franta-hg@0
   299
            <os family="windows"/>
franta-hg@0
   300
        </condition>
franta-hg@0
   301
        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
franta-hg@0
   302
            <os family="windows"/>
franta-hg@0
   303
        </condition>
franta-hg@0
   304
        <condition property="browser" value="/usr/bin/open">
franta-hg@0
   305
            <os family="mac"/>
franta-hg@0
   306
        </condition>
franta-hg@0
   307
        <property environment="env"/>
franta-hg@0
   308
        <condition property="browser" value="${env.BROWSER}">
franta-hg@0
   309
            <isset property="env.BROWSER"/>
franta-hg@0
   310
        </condition>
franta-hg@0
   311
        <condition property="browser" value="/usr/bin/firefox">
franta-hg@0
   312
            <available file="/usr/bin/firefox"/>
franta-hg@0
   313
        </condition>
franta-hg@0
   314
        <condition property="browser" value="/usr/local/firefox/firefox">
franta-hg@0
   315
            <available file="/usr/local/firefox/firefox"/>
franta-hg@0
   316
        </condition>
franta-hg@0
   317
        <condition property="browser" value="/usr/bin/mozilla">
franta-hg@0
   318
            <available file="/usr/bin/mozilla"/>
franta-hg@0
   319
        </condition>
franta-hg@0
   320
        <condition property="browser" value="/usr/local/mozilla/mozilla">
franta-hg@0
   321
            <available file="/usr/local/mozilla/mozilla"/>
franta-hg@0
   322
        </condition>
franta-hg@0
   323
        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
franta-hg@0
   324
            <available file="/usr/sfw/lib/firefox/firefox"/>
franta-hg@0
   325
        </condition>
franta-hg@0
   326
        <condition property="browser" value="/opt/csw/bin/firefox">
franta-hg@0
   327
            <available file="/opt/csw/bin/firefox"/>
franta-hg@0
   328
        </condition>
franta-hg@0
   329
        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
franta-hg@0
   330
            <available file="/usr/sfw/lib/mozilla/mozilla"/>
franta-hg@0
   331
        </condition>
franta-hg@0
   332
        <condition property="browser" value="/opt/csw/bin/mozilla">
franta-hg@0
   333
            <available file="/opt/csw/bin/mozilla"/>
franta-hg@0
   334
        </condition>
franta-hg@0
   335
    </target>
franta-hg@0
   336
    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
franta-hg@0
   337
        <fail unless="browser">
franta-hg@1
   338
            Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
franta-hg@1
   339
        </fail>
franta-hg@0
   340
        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
franta-hg@0
   341
        <echo>Launching ${browse.url}</echo>
franta-hg@0
   342
        <exec executable="${browser}" spawn="true">
franta-hg@0
   343
            <arg line="${browser.args} ${browse.url}"/>
franta-hg@0
   344
        </exec>
franta-hg@0
   345
    </target>
franta-hg@1
   346
    <target depends="init" if="app.client" name="run-ac">
franta-hg@1
   347
        <antcall target="run-${app.client}"/>
franta-hg@0
   348
    </target>
franta-hg@1
   349
    <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
franta-hg@1
   350
        <property name="client.jar" value="${dist.dir}/SpringDemo1Client.jar"/>
franta-hg@1
   351
        <sleep seconds="3"/>
franta-hg@1
   352
        <copy failonerror="false" file="${wa.copy.client.jar.from}/SpringDemo1/SpringDemo1Client.jar" todir="${dist.dir}"/>
franta-hg@1
   353
        <copy failonerror="false" flatten="true" todir="${dist.dir}/">
franta-hg@1
   354
            <fileset dir="${wa.copy.client.jar.from}/SpringDemo1" includes="**/SpringDemo1Client.jar"/>
franta-hg@1
   355
        </copy>
franta-hg@1
   356
        <copy flatten="true" todir="${dist.dir}/SpringDemo1Client">
franta-hg@1
   357
            <fileset dir="${wa.copy.client.jar.from}/SpringDemo1" includes="**/*.*ar"/>
franta-hg@1
   358
        </copy>
franta-hg@1
   359
        <copy failonerror="false" flatten="false" todir="${dist.dir}/SpringDemo1Client">
franta-hg@1
   360
            <fileset dir="${dist.dir}/gfdeploy/SpringDemo1" includes="**/*.jar"/>
franta-hg@1
   361
        </copy>
franta-hg@0
   362
    </target>
franta-hg@0
   363
    <!--
franta-hg@1
   364
    DEBUGGING SECTION
franta-hg@1
   365
    -->
franta-hg@1
   366
    <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
franta-hg@1
   367
    <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
franta-hg@1
   368
        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
franta-hg@0
   369
        <antcall target="connect-debugger"/>
franta-hg@0
   370
        <antcall target="debug-display-browser"/>
franta-hg@0
   371
    </target>
franta-hg@1
   372
    <target name="connect-debugger" unless="is.debugged">
franta-hg@0
   373
        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
franta-hg@0
   374
            <classpath>
franta-hg@1
   375
                <path path="${debug.classpath}"/>
franta-hg@1
   376
                <fileset dir="${build.dir}/lib" includes="*.jar"/>
franta-hg@0
   377
            </classpath>
franta-hg@0
   378
            <sourcepath>
franta-hg@1
   379
                <path path="${ear.docbase.dirs}"/>
franta-hg@0
   380
            </sourcepath>
franta-hg@0
   381
        </nbjpdaconnect>
franta-hg@0
   382
    </target>
franta-hg@1
   383
    <target if="do.display.browser" name="debug-display-browser">
franta-hg@0
   384
        <nbbrowse url="${client.url}"/>
franta-hg@0
   385
    </target>
franta-hg@1
   386
    <target name="-init-debug-args">
franta-hg@1
   387
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
franta-hg@1
   388
        <condition property="have-jdk-older-than-1.4">
franta-hg@1
   389
            <or>
franta-hg@1
   390
                <contains string="${version-output}" substring="java version &quot;1.0"/>
franta-hg@1
   391
                <contains string="${version-output}" substring="java version &quot;1.1"/>
franta-hg@1
   392
                <contains string="${version-output}" substring="java version &quot;1.2"/>
franta-hg@1
   393
                <contains string="${version-output}" substring="java version &quot;1.3"/>
franta-hg@1
   394
            </or>
franta-hg@1
   395
        </condition>
franta-hg@1
   396
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
franta-hg@1
   397
            <istrue value="${have-jdk-older-than-1.4}"/>
franta-hg@1
   398
        </condition>
franta-hg@0
   399
    </target>
franta-hg@1
   400
    <target depends="init,-init-debug-args" if="can.debug.appclient" name="run-debug-appclient">
franta-hg@1
   401
        <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
franta-hg@1
   402
            <attribute name="mainclass"/>
franta-hg@1
   403
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@1
   404
            <element name="customize" optional="true"/>
franta-hg@1
   405
            <attribute default="${application.args.param}" name="args"/>
franta-hg@1
   406
            <sequential>
franta-hg@1
   407
                <parallel>
franta-hg@1
   408
                    <java classname="@{mainclass}" fork="true">
franta-hg@1
   409
                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@1
   410
                        <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
franta-hg@1
   411
                        <jvmarg line="${debug-args-line}"/>
franta-hg@1
   412
                        <jvmarg value="-Xrunjdwp:transport=${jpda.transport},server=y,address=${jpda.address},suspend=y"/>
franta-hg@1
   413
                        <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
franta-hg@1
   414
                        <arg line="@{args}"/>
franta-hg@1
   415
                        <classpath>
franta-hg@1
   416
                            <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
franta-hg@1
   417
                            <path path="@{classpath}"/>
franta-hg@1
   418
                        </classpath>
franta-hg@1
   419
                        <syspropertyset>
franta-hg@1
   420
                            <propertyref prefix="run-sys-prop."/>
franta-hg@1
   421
                            <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@1
   422
                        </syspropertyset>
franta-hg@1
   423
                        <customize/>
franta-hg@1
   424
                    </java>
franta-hg@1
   425
                    <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
franta-hg@1
   426
                        <classpath>
franta-hg@1
   427
                            <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
franta-hg@1
   428
                            <path path="@{classpath}"/>
franta-hg@1
   429
                        </classpath>
franta-hg@1
   430
                        <sourcepath>
franta-hg@1
   431
                            <path path="${src.dir}"/>
franta-hg@1
   432
                        </sourcepath>
franta-hg@1
   433
                    </nbjpdaconnect>
franta-hg@1
   434
                </parallel>
franta-hg@1
   435
            </sequential>
franta-hg@1
   436
        </macrodef>
franta-hg@1
   437
        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false"/>
franta-hg@1
   438
        <antcall target="debug-${app.client}"/>
franta-hg@0
   439
    </target>
franta-hg@1
   440
    <!--
franta-hg@1
   441
    CLEANUP SECTION
franta-hg@1
   442
    -->
franta-hg@1
   443
    <target depends="init" name="deps-clean" unless="no.deps">
franta-hg@1
   444
        <condition property="build.deploy.on.save" value="false">
franta-hg@1
   445
            <not>
franta-hg@1
   446
                <isset property="build.deploy.on.save"/>
franta-hg@1
   447
            </not>
franta-hg@1
   448
        </condition>
franta-hg@1
   449
        <ant antfile="${project.SpringDemo1-ejb}/build.xml" inheritall="false" target="clean-ear">
franta-hg@1
   450
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@1
   451
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@1
   452
        </ant>
franta-hg@1
   453
        <condition property="build.deploy.on.save" value="false">
franta-hg@1
   454
            <not>
franta-hg@1
   455
                <isset property="build.deploy.on.save"/>
franta-hg@1
   456
            </not>
franta-hg@1
   457
        </condition>
franta-hg@1
   458
        <ant antfile="${project.SpringDemo1-war}/build.xml" inheritall="false" target="clean-ear">
franta-hg@1
   459
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@1
   460
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@1
   461
        </ant>
franta-hg@0
   462
    </target>
franta-hg@0
   463
    <target depends="init" name="do-clean">
franta-hg@0
   464
        <delete dir="${build.dir}"/>
franta-hg@0
   465
        <delete dir="${dist.dir}"/>
franta-hg@1
   466
        <delete dir="${build.dir}"/>
franta-hg@0
   467
    </target>
franta-hg@0
   468
    <target depends="init" if="netbeans.home" name="undeploy-clean">
franta-hg@0
   469
        <nbundeploy failOnError="false" startServer="false"/>
franta-hg@0
   470
    </target>
franta-hg@1
   471
    <target name="post-clean">
franta-hg@0
   472
        <!-- Empty placeholder for easier customization. -->
franta-hg@0
   473
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@0
   474
    </target>
franta-hg@1
   475
    <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
franta-hg@0
   476
</project>