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