java/nekurak.net-ear/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Tue Mar 23 01:12:16 2010 +0100 (2010-03-23)
changeset 77 5378f8dc8fa9
parent 27 88f3012c60a2
child 78 77d86ffbf55b
permissions -rw-r--r--
ClanekREST.java
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@75
   169
        <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="dist-ear">
franta-hg@75
   170
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@75
   171
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@75
   172
        </ant>
franta-hg@75
   173
        <condition property="build.deploy.on.save" value="false">
franta-hg@75
   174
            <not>
franta-hg@75
   175
                <isset property="build.deploy.on.save"/>
franta-hg@75
   176
            </not>
franta-hg@75
   177
        </condition>
franta-hg@27
   178
        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="dist-ear">
franta-hg@27
   179
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@27
   180
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@27
   181
        </ant>
franta-hg@27
   182
    </target>
franta-hg@27
   183
    <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
franta-hg@27
   184
    <target name="pre-compile">
franta-hg@27
   185
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   186
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   187
    </target>
franta-hg@27
   188
    <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
franta-hg@27
   189
        <copy todir="${build.dir}/META-INF">
franta-hg@27
   190
            <fileset dir="${meta.inf}"/>
franta-hg@27
   191
        </copy>
franta-hg@27
   192
    </target>
franta-hg@27
   193
    <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
franta-hg@27
   194
        <copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
franta-hg@27
   195
        <copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
franta-hg@75
   196
        <copyfiles files="${reference.nekurak_net-rest.dist-ear}" todir="${build.dir}//"/>
franta-hg@27
   197
    </target>
franta-hg@27
   198
    <target name="post-compile">
franta-hg@27
   199
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   200
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   201
    </target>
franta-hg@27
   202
    <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
franta-hg@27
   203
    <!--
franta-hg@27
   204
                DIST BUILDING SECTION
franta-hg@27
   205
            -->
franta-hg@27
   206
    <target name="pre-dist">
franta-hg@27
   207
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   208
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   209
    </target>
franta-hg@27
   210
    <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
franta-hg@27
   211
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@27
   212
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@27
   213
        <jar compress="${jar.compress}" jarfile="${dist.jar}">
franta-hg@27
   214
            <fileset dir="${build.dir}"/>
franta-hg@27
   215
        </jar>
franta-hg@27
   216
    </target>
franta-hg@27
   217
    <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-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}" manifest="${meta.inf}/MANIFEST.MF">
franta-hg@27
   221
            <fileset dir="${build.dir}"/>
franta-hg@27
   222
        </jar>
franta-hg@27
   223
    </target>
franta-hg@27
   224
    <!--
franta-hg@27
   225
                TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
franta-hg@27
   226
            -->
franta-hg@27
   227
    <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
franta-hg@27
   228
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@27
   229
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@27
   230
        <jar compress="${jar.compress}" jarfile="${dist.jar}">
franta-hg@27
   231
            <fileset dir="${build.dir}"/>
franta-hg@27
   232
        </jar>
franta-hg@27
   233
    </target>
franta-hg@27
   234
    <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
franta-hg@27
   235
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@27
   236
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@27
   237
        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
franta-hg@27
   238
            <fileset dir="${build.dir}"/>
franta-hg@27
   239
        </jar>
franta-hg@27
   240
    </target>
franta-hg@27
   241
    <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
franta-hg@27
   242
    <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
   243
    <!--
franta-hg@27
   244
                END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
franta-hg@27
   245
            -->
franta-hg@27
   246
    <target name="post-dist">
franta-hg@27
   247
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   248
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   249
    </target>
franta-hg@27
   250
    <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
   251
    <!--
franta-hg@27
   252
    EXECUTION SECTION
franta-hg@27
   253
    -->
franta-hg@27
   254
    <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
franta-hg@27
   255
    <target name="pre-run-deploy">
franta-hg@27
   256
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   257
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   258
    </target>
franta-hg@27
   259
    <target name="post-run-deploy">
franta-hg@27
   260
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   261
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   262
    </target>
franta-hg@27
   263
    <target name="-pre-nbmodule-run-deploy">
franta-hg@27
   264
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   265
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
franta-hg@27
   266
    </target>
franta-hg@27
   267
    <target name="-post-nbmodule-run-deploy">
franta-hg@27
   268
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   269
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
franta-hg@27
   270
    </target>
franta-hg@27
   271
    <target name="-run-deploy-am" unless="no.deps">
franta-hg@27
   272
        <!-- Task to deploy to the Access Manager runtime. -->
franta-hg@27
   273
        <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
franta-hg@75
   274
        <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="-run-deploy-am"/>
franta-hg@27
   275
        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
franta-hg@27
   276
    </target>
franta-hg@27
   277
    <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
   278
    <target if="netbeans.home" name="-run-deploy-nb">
franta-hg@27
   279
        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
franta-hg@27
   280
    </target>
franta-hg@27
   281
    <target name="-init-deploy-ant" unless="netbeans.home">
franta-hg@27
   282
        <property name="deploy.ant.archive" value="${dist.jar}"/>
franta-hg@27
   283
        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
franta-hg@27
   284
        <property name="deploy.ant.enabled" value="true"/>
franta-hg@27
   285
    </target>
franta-hg@27
   286
    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
franta-hg@27
   287
    <target if="netbeans.home" name="-run-undeploy-nb">
franta-hg@27
   288
        <fail message="Undeploy is not supported from within the IDE"/>
franta-hg@27
   289
    </target>
franta-hg@27
   290
    <target depends="dist" name="verify">
franta-hg@27
   291
        <nbverify file="${dist.jar}"/>
franta-hg@27
   292
    </target>
franta-hg@27
   293
    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
franta-hg@27
   294
    <target if="do.display.browser" name="-init-display-browser">
franta-hg@27
   295
        <condition property="do.display.browser.nb">
franta-hg@27
   296
            <isset property="netbeans.home"/>
franta-hg@27
   297
        </condition>
franta-hg@27
   298
        <condition property="do.display.browser.cl">
franta-hg@27
   299
            <and>
franta-hg@27
   300
                <isset property="deploy.ant.enabled"/>
franta-hg@27
   301
                <isset property="deploy.ant.client.url"/>
franta-hg@27
   302
            </and>
franta-hg@27
   303
        </condition>
franta-hg@27
   304
    </target>
franta-hg@27
   305
    <target if="do.display.browser.nb" name="-display-browser-nb">
franta-hg@27
   306
        <nbbrowse url="${client.url}"/>
franta-hg@27
   307
    </target>
franta-hg@27
   308
    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
franta-hg@27
   309
        <condition property="browser" value="rundll32">
franta-hg@27
   310
            <os family="windows"/>
franta-hg@27
   311
        </condition>
franta-hg@27
   312
        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
franta-hg@27
   313
            <os family="windows"/>
franta-hg@27
   314
        </condition>
franta-hg@27
   315
        <condition property="browser" value="/usr/bin/open">
franta-hg@27
   316
            <os family="mac"/>
franta-hg@27
   317
        </condition>
franta-hg@27
   318
        <property environment="env"/>
franta-hg@27
   319
        <condition property="browser" value="${env.BROWSER}">
franta-hg@27
   320
            <isset property="env.BROWSER"/>
franta-hg@27
   321
        </condition>
franta-hg@27
   322
        <condition property="browser" value="/usr/bin/firefox">
franta-hg@27
   323
            <available file="/usr/bin/firefox"/>
franta-hg@27
   324
        </condition>
franta-hg@27
   325
        <condition property="browser" value="/usr/local/firefox/firefox">
franta-hg@27
   326
            <available file="/usr/local/firefox/firefox"/>
franta-hg@27
   327
        </condition>
franta-hg@27
   328
        <condition property="browser" value="/usr/bin/mozilla">
franta-hg@27
   329
            <available file="/usr/bin/mozilla"/>
franta-hg@27
   330
        </condition>
franta-hg@27
   331
        <condition property="browser" value="/usr/local/mozilla/mozilla">
franta-hg@27
   332
            <available file="/usr/local/mozilla/mozilla"/>
franta-hg@27
   333
        </condition>
franta-hg@27
   334
        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
franta-hg@27
   335
            <available file="/usr/sfw/lib/firefox/firefox"/>
franta-hg@27
   336
        </condition>
franta-hg@27
   337
        <condition property="browser" value="/opt/csw/bin/firefox">
franta-hg@27
   338
            <available file="/opt/csw/bin/firefox"/>
franta-hg@27
   339
        </condition>
franta-hg@27
   340
        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
franta-hg@27
   341
            <available file="/usr/sfw/lib/mozilla/mozilla"/>
franta-hg@27
   342
        </condition>
franta-hg@27
   343
        <condition property="browser" value="/opt/csw/bin/mozilla">
franta-hg@27
   344
            <available file="/opt/csw/bin/mozilla"/>
franta-hg@27
   345
        </condition>
franta-hg@27
   346
    </target>
franta-hg@27
   347
    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
franta-hg@27
   348
        <fail unless="browser">
franta-hg@27
   349
            Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
franta-hg@27
   350
        </fail>
franta-hg@27
   351
        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
franta-hg@27
   352
        <echo>Launching ${browse.url}</echo>
franta-hg@27
   353
        <exec executable="${browser}" spawn="true">
franta-hg@27
   354
            <arg line="${browser.args} ${browse.url}"/>
franta-hg@27
   355
        </exec>
franta-hg@27
   356
    </target>
franta-hg@27
   357
    <target depends="init" if="app.client" name="run-ac">
franta-hg@27
   358
        <antcall target="run-${app.client}"/>
franta-hg@27
   359
    </target>
franta-hg@27
   360
    <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
franta-hg@27
   361
        <property name="client.jar" value="${dist.dir}/nekurak.net-earClient.jar"/>
franta-hg@27
   362
        <sleep seconds="3"/>
franta-hg@27
   363
        <copy failonerror="false" file="${wa.copy.client.jar.from}/nekurak.net-ear/nekurak.net-earClient.jar" todir="${dist.dir}"/>
franta-hg@27
   364
        <copy failonerror="false" flatten="true" todir="${dist.dir}/">
franta-hg@27
   365
            <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/nekurak.net-earClient.jar"/>
franta-hg@27
   366
        </copy>
franta-hg@27
   367
        <copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
franta-hg@27
   368
            <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
franta-hg@27
   369
        </copy>
franta-hg@27
   370
        <copy failonerror="false" flatten="false" todir="${dist.dir}/nekurak.net-earClient">
franta-hg@27
   371
            <fileset dir="${dist.dir}/gfdeploy/nekurak.net-ear" includes="**/*.jar"/>
franta-hg@27
   372
        </copy>
franta-hg@27
   373
    </target>
franta-hg@27
   374
    <!--
franta-hg@27
   375
    DEBUGGING SECTION
franta-hg@27
   376
    -->
franta-hg@27
   377
    <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
franta-hg@27
   378
    <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
franta-hg@27
   379
        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
franta-hg@27
   380
        <antcall target="connect-debugger"/>
franta-hg@27
   381
        <antcall target="debug-display-browser"/>
franta-hg@27
   382
    </target>
franta-hg@27
   383
    <target name="connect-debugger" unless="is.debugged">
franta-hg@27
   384
        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
franta-hg@27
   385
            <classpath>
franta-hg@27
   386
                <path path="${debug.classpath}"/>
franta-hg@27
   387
                <fileset dir="${build.dir}/lib" includes="*.jar"/>
franta-hg@27
   388
            </classpath>
franta-hg@27
   389
            <sourcepath>
franta-hg@27
   390
                <path path="${ear.docbase.dirs}"/>
franta-hg@27
   391
            </sourcepath>
franta-hg@27
   392
        </nbjpdaconnect>
franta-hg@27
   393
    </target>
franta-hg@27
   394
    <target if="do.display.browser" name="debug-display-browser">
franta-hg@27
   395
        <nbbrowse url="${client.url}"/>
franta-hg@27
   396
    </target>
franta-hg@27
   397
    <target name="-init-debug-args">
franta-hg@27
   398
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
franta-hg@27
   399
        <condition property="have-jdk-older-than-1.4">
franta-hg@27
   400
            <or>
franta-hg@27
   401
                <contains string="${version-output}" substring="java version &quot;1.0"/>
franta-hg@27
   402
                <contains string="${version-output}" substring="java version &quot;1.1"/>
franta-hg@27
   403
                <contains string="${version-output}" substring="java version &quot;1.2"/>
franta-hg@27
   404
                <contains string="${version-output}" substring="java version &quot;1.3"/>
franta-hg@27
   405
            </or>
franta-hg@27
   406
        </condition>
franta-hg@27
   407
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
franta-hg@27
   408
            <istrue value="${have-jdk-older-than-1.4}"/>
franta-hg@27
   409
        </condition>
franta-hg@27
   410
    </target>
franta-hg@27
   411
    <target depends="init,-init-debug-args" if="can.debug.appclient" name="run-debug-appclient">
franta-hg@27
   412
        <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
franta-hg@27
   413
            <attribute name="mainclass"/>
franta-hg@27
   414
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@27
   415
            <element name="customize" optional="true"/>
franta-hg@27
   416
            <attribute default="${application.args.param}" name="args"/>
franta-hg@27
   417
            <sequential>
franta-hg@27
   418
                <parallel>
franta-hg@27
   419
                    <java classname="@{mainclass}" fork="true">
franta-hg@27
   420
                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@27
   421
                        <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
franta-hg@27
   422
                        <jvmarg line="${debug-args-line}"/>
franta-hg@27
   423
                        <jvmarg value="-Xrunjdwp:transport=${jpda.transport},server=y,address=${jpda.address},suspend=y"/>
franta-hg@27
   424
                        <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
franta-hg@27
   425
                        <arg line="@{args}"/>
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
                        <syspropertyset>
franta-hg@27
   431
                            <propertyref prefix="run-sys-prop."/>
franta-hg@27
   432
                            <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@27
   433
                        </syspropertyset>
franta-hg@27
   434
                        <customize/>
franta-hg@27
   435
                    </java>
franta-hg@27
   436
                    <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
franta-hg@27
   437
                        <classpath>
franta-hg@27
   438
                            <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
franta-hg@27
   439
                            <path path="@{classpath}"/>
franta-hg@27
   440
                        </classpath>
franta-hg@27
   441
                        <sourcepath>
franta-hg@27
   442
                            <path path="${src.dir}"/>
franta-hg@27
   443
                        </sourcepath>
franta-hg@27
   444
                    </nbjpdaconnect>
franta-hg@27
   445
                </parallel>
franta-hg@27
   446
            </sequential>
franta-hg@27
   447
        </macrodef>
franta-hg@27
   448
        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false"/>
franta-hg@27
   449
        <antcall target="debug-${app.client}"/>
franta-hg@27
   450
    </target>
franta-hg@27
   451
    <!--
franta-hg@27
   452
    CLEANUP SECTION
franta-hg@27
   453
    -->
franta-hg@27
   454
    <target depends="init" name="deps-clean" unless="no.deps">
franta-hg@27
   455
        <condition property="build.deploy.on.save" value="false">
franta-hg@27
   456
            <not>
franta-hg@27
   457
                <isset property="build.deploy.on.save"/>
franta-hg@27
   458
            </not>
franta-hg@27
   459
        </condition>
franta-hg@27
   460
        <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="clean-ear">
franta-hg@27
   461
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@27
   462
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@27
   463
        </ant>
franta-hg@27
   464
        <condition property="build.deploy.on.save" value="false">
franta-hg@27
   465
            <not>
franta-hg@27
   466
                <isset property="build.deploy.on.save"/>
franta-hg@27
   467
            </not>
franta-hg@27
   468
        </condition>
franta-hg@75
   469
        <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="clean-ear">
franta-hg@75
   470
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@75
   471
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@75
   472
        </ant>
franta-hg@75
   473
        <condition property="build.deploy.on.save" value="false">
franta-hg@75
   474
            <not>
franta-hg@75
   475
                <isset property="build.deploy.on.save"/>
franta-hg@75
   476
            </not>
franta-hg@75
   477
        </condition>
franta-hg@27
   478
        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="clean-ear">
franta-hg@27
   479
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@27
   480
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@27
   481
        </ant>
franta-hg@27
   482
    </target>
franta-hg@27
   483
    <target depends="init" name="do-clean">
franta-hg@27
   484
        <delete dir="${build.dir}"/>
franta-hg@27
   485
        <delete dir="${dist.dir}"/>
franta-hg@27
   486
        <delete dir="${build.dir}"/>
franta-hg@27
   487
    </target>
franta-hg@27
   488
    <target depends="init" if="netbeans.home" name="undeploy-clean">
franta-hg@27
   489
        <nbundeploy failOnError="false" startServer="false"/>
franta-hg@27
   490
    </target>
franta-hg@27
   491
    <target name="post-clean">
franta-hg@27
   492
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   493
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   494
    </target>
franta-hg@27
   495
    <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
franta-hg@27
   496
</project>