java/nekurak.net-ear/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Tue, 25 Jan 2011 22:03:46 +0100
changeset 177 d874e9e3e162
parent 142 44ef544460ca
child 186 b0f7d9ab4a07
permissions -rw-r--r--
Základ servletu pro zobrazování detailu podniku.
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@86
   169
        <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="dist-ear">
franta-hg@86
   170
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@86
   171
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@86
   172
        </ant>
franta-hg@86
   173
        <condition property="build.deploy.on.save" value="false">
franta-hg@86
   174
            <not>
franta-hg@86
   175
                <isset property="build.deploy.on.save"/>
franta-hg@86
   176
            </not>
franta-hg@86
   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@98
   182
        <condition property="build.deploy.on.save" value="false">
franta-hg@98
   183
            <not>
franta-hg@98
   184
                <isset property="build.deploy.on.save"/>
franta-hg@98
   185
            </not>
franta-hg@98
   186
        </condition>
franta-hg@98
   187
        <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="dist-ear">
franta-hg@98
   188
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@98
   189
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@98
   190
        </ant>
franta-hg@27
   191
    </target>
franta-hg@27
   192
    <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
franta-hg@27
   193
    <target name="pre-compile">
franta-hg@27
   194
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   195
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   196
    </target>
franta-hg@27
   197
    <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
franta-hg@27
   198
        <copy todir="${build.dir}/META-INF">
franta-hg@27
   199
            <fileset dir="${meta.inf}"/>
franta-hg@27
   200
        </copy>
franta-hg@27
   201
    </target>
franta-hg@27
   202
    <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
franta-hg@27
   203
        <copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
franta-hg@27
   204
        <copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
franta-hg@86
   205
        <copyfiles files="${reference.nekurak_net-rest.dist-ear}" todir="${build.dir}//"/>
franta-hg@98
   206
        <copyfiles files="${reference.nekurak_net-ws.dist-ear}" todir="${build.dir}//"/>
franta-hg@27
   207
    </target>
franta-hg@27
   208
    <target name="post-compile">
franta-hg@27
   209
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   210
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   211
    </target>
franta-hg@27
   212
    <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
franta-hg@27
   213
    <!--
franta-hg@27
   214
                DIST BUILDING SECTION
franta-hg@27
   215
            -->
franta-hg@27
   216
    <target name="pre-dist">
franta-hg@27
   217
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   218
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   219
    </target>
franta-hg@27
   220
    <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
franta-hg@27
   221
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@27
   222
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@27
   223
        <jar compress="${jar.compress}" jarfile="${dist.jar}">
franta-hg@27
   224
            <fileset dir="${build.dir}"/>
franta-hg@27
   225
        </jar>
franta-hg@27
   226
    </target>
franta-hg@27
   227
    <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-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}" manifest="${meta.inf}/MANIFEST.MF">
franta-hg@27
   231
            <fileset dir="${build.dir}"/>
franta-hg@27
   232
        </jar>
franta-hg@27
   233
    </target>
franta-hg@27
   234
    <!--
franta-hg@27
   235
                TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
franta-hg@27
   236
            -->
franta-hg@27
   237
    <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
franta-hg@27
   238
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@27
   239
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@27
   240
        <jar compress="${jar.compress}" jarfile="${dist.jar}">
franta-hg@27
   241
            <fileset dir="${build.dir}"/>
franta-hg@27
   242
        </jar>
franta-hg@27
   243
    </target>
franta-hg@27
   244
    <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
franta-hg@27
   245
        <dirname file="${dist.jar}" property="dist.jar.dir"/>
franta-hg@27
   246
        <mkdir dir="${dist.jar.dir}"/>
franta-hg@27
   247
        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
franta-hg@27
   248
            <fileset dir="${build.dir}"/>
franta-hg@27
   249
        </jar>
franta-hg@27
   250
    </target>
franta-hg@27
   251
    <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
franta-hg@27
   252
    <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
   253
    <!--
franta-hg@27
   254
                END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
franta-hg@27
   255
            -->
franta-hg@27
   256
    <target name="post-dist">
franta-hg@27
   257
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   258
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   259
    </target>
franta-hg@27
   260
    <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
   261
    <!--
franta-hg@27
   262
    EXECUTION SECTION
franta-hg@27
   263
    -->
franta-hg@27
   264
    <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
franta-hg@27
   265
    <target name="pre-run-deploy">
franta-hg@27
   266
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   267
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   268
    </target>
franta-hg@27
   269
    <target name="post-run-deploy">
franta-hg@27
   270
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   271
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   272
    </target>
franta-hg@27
   273
    <target name="-pre-nbmodule-run-deploy">
franta-hg@27
   274
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   275
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
franta-hg@27
   276
    </target>
franta-hg@27
   277
    <target name="-post-nbmodule-run-deploy">
franta-hg@27
   278
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   279
        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
franta-hg@27
   280
    </target>
franta-hg@27
   281
    <target name="-run-deploy-am" unless="no.deps">
franta-hg@27
   282
        <!-- Task to deploy to the Access Manager runtime. -->
franta-hg@27
   283
        <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
franta-hg@86
   284
        <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="-run-deploy-am"/>
franta-hg@27
   285
        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
franta-hg@98
   286
        <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="-run-deploy-am"/>
franta-hg@27
   287
    </target>
franta-hg@27
   288
    <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
   289
    <target if="netbeans.home" name="-run-deploy-nb">
franta-hg@27
   290
        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
franta-hg@27
   291
    </target>
franta-hg@27
   292
    <target name="-init-deploy-ant" unless="netbeans.home">
franta-hg@27
   293
        <property name="deploy.ant.archive" value="${dist.jar}"/>
franta-hg@27
   294
        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
franta-hg@27
   295
        <property name="deploy.ant.enabled" value="true"/>
franta-hg@27
   296
    </target>
franta-hg@27
   297
    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
franta-hg@27
   298
    <target if="netbeans.home" name="-run-undeploy-nb">
franta-hg@27
   299
        <fail message="Undeploy is not supported from within the IDE"/>
franta-hg@27
   300
    </target>
franta-hg@27
   301
    <target depends="dist" name="verify">
franta-hg@27
   302
        <nbverify file="${dist.jar}"/>
franta-hg@27
   303
    </target>
franta-hg@27
   304
    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
franta-hg@27
   305
    <target if="do.display.browser" name="-init-display-browser">
franta-hg@27
   306
        <condition property="do.display.browser.nb">
franta-hg@27
   307
            <isset property="netbeans.home"/>
franta-hg@27
   308
        </condition>
franta-hg@27
   309
        <condition property="do.display.browser.cl">
franta-hg@27
   310
            <and>
franta-hg@27
   311
                <isset property="deploy.ant.enabled"/>
franta-hg@27
   312
                <isset property="deploy.ant.client.url"/>
franta-hg@27
   313
            </and>
franta-hg@27
   314
        </condition>
franta-hg@27
   315
    </target>
franta-hg@27
   316
    <target if="do.display.browser.nb" name="-display-browser-nb">
franta-hg@27
   317
        <nbbrowse url="${client.url}"/>
franta-hg@27
   318
    </target>
franta-hg@27
   319
    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
franta-hg@27
   320
        <condition property="browser" value="rundll32">
franta-hg@27
   321
            <os family="windows"/>
franta-hg@27
   322
        </condition>
franta-hg@27
   323
        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
franta-hg@27
   324
            <os family="windows"/>
franta-hg@27
   325
        </condition>
franta-hg@27
   326
        <condition property="browser" value="/usr/bin/open">
franta-hg@27
   327
            <os family="mac"/>
franta-hg@27
   328
        </condition>
franta-hg@27
   329
        <property environment="env"/>
franta-hg@27
   330
        <condition property="browser" value="${env.BROWSER}">
franta-hg@27
   331
            <isset property="env.BROWSER"/>
franta-hg@27
   332
        </condition>
franta-hg@27
   333
        <condition property="browser" value="/usr/bin/firefox">
franta-hg@27
   334
            <available file="/usr/bin/firefox"/>
franta-hg@27
   335
        </condition>
franta-hg@27
   336
        <condition property="browser" value="/usr/local/firefox/firefox">
franta-hg@27
   337
            <available file="/usr/local/firefox/firefox"/>
franta-hg@27
   338
        </condition>
franta-hg@27
   339
        <condition property="browser" value="/usr/bin/mozilla">
franta-hg@27
   340
            <available file="/usr/bin/mozilla"/>
franta-hg@27
   341
        </condition>
franta-hg@27
   342
        <condition property="browser" value="/usr/local/mozilla/mozilla">
franta-hg@27
   343
            <available file="/usr/local/mozilla/mozilla"/>
franta-hg@27
   344
        </condition>
franta-hg@27
   345
        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
franta-hg@27
   346
            <available file="/usr/sfw/lib/firefox/firefox"/>
franta-hg@27
   347
        </condition>
franta-hg@27
   348
        <condition property="browser" value="/opt/csw/bin/firefox">
franta-hg@27
   349
            <available file="/opt/csw/bin/firefox"/>
franta-hg@27
   350
        </condition>
franta-hg@27
   351
        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
franta-hg@27
   352
            <available file="/usr/sfw/lib/mozilla/mozilla"/>
franta-hg@27
   353
        </condition>
franta-hg@27
   354
        <condition property="browser" value="/opt/csw/bin/mozilla">
franta-hg@27
   355
            <available file="/opt/csw/bin/mozilla"/>
franta-hg@27
   356
        </condition>
franta-hg@27
   357
    </target>
franta-hg@27
   358
    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
franta-hg@27
   359
        <fail unless="browser">
franta-hg@27
   360
            Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
franta-hg@27
   361
        </fail>
franta-hg@27
   362
        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
franta-hg@27
   363
        <echo>Launching ${browse.url}</echo>
franta-hg@27
   364
        <exec executable="${browser}" spawn="true">
franta-hg@27
   365
            <arg line="${browser.args} ${browse.url}"/>
franta-hg@27
   366
        </exec>
franta-hg@27
   367
    </target>
franta-hg@142
   368
    <target if="app.client" name="run-ac">
franta-hg@142
   369
        <antcall target="-run-ac"/>
franta-hg@142
   370
    </target>
franta-hg@142
   371
    <target depends="init,-as-retrieve-option-workaround,-init-run-macros,-run-appclient-pregfv3,-run-appclient" name="-run-ac"/>
franta-hg@142
   372
    <target if="j2ee.appclient.tool.args" name="-run-appclient-pregfv3">
franta-hg@142
   373
        <ear2:run-appclient-pregfv3/>
franta-hg@142
   374
    </target>
franta-hg@142
   375
    <target name="-run-appclient" unless="j2ee.appclient.tool.args">
franta-hg@142
   376
        <ear2:run-appclient subprojectname="${app.client}"/>
franta-hg@27
   377
    </target>
franta-hg@27
   378
    <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
franta-hg@27
   379
        <property name="client.jar" value="${dist.dir}/nekurak.net-earClient.jar"/>
franta-hg@27
   380
        <sleep seconds="3"/>
franta-hg@27
   381
        <copy failonerror="false" file="${wa.copy.client.jar.from}/nekurak.net-ear/nekurak.net-earClient.jar" todir="${dist.dir}"/>
franta-hg@27
   382
        <copy failonerror="false" flatten="true" todir="${dist.dir}/">
franta-hg@27
   383
            <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/nekurak.net-earClient.jar"/>
franta-hg@27
   384
        </copy>
franta-hg@27
   385
        <copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
franta-hg@27
   386
            <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
franta-hg@27
   387
        </copy>
franta-hg@27
   388
        <copy failonerror="false" flatten="false" todir="${dist.dir}/nekurak.net-earClient">
franta-hg@27
   389
            <fileset dir="${dist.dir}/gfdeploy/nekurak.net-ear" includes="**/*.jar"/>
franta-hg@27
   390
        </copy>
franta-hg@27
   391
    </target>
franta-hg@142
   392
    <target depends="init" name="-init-run-macros">
franta-hg@142
   393
        <macrodef name="run-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
franta-hg@142
   394
            <attribute name="subprojectname"/>
franta-hg@142
   395
            <attribute default="${application.args.param}" name="args"/>
franta-hg@142
   396
            <element name="customize" optional="true"/>
franta-hg@142
   397
            <sequential>
franta-hg@142
   398
                <java dir="${basedir}" fork="true" jar="${client.jar}">
franta-hg@142
   399
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@142
   400
                    <jvmarg line="${j2ee.appclient.tool.jvmoptions}${client.jar},arg=-name,arg=@{subprojectname}"/>
franta-hg@142
   401
                    <arg line="@{args}"/>
franta-hg@142
   402
                    <syspropertyset>
franta-hg@142
   403
                        <propertyref prefix="run-sys-prop."/>
franta-hg@142
   404
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@142
   405
                    </syspropertyset>
franta-hg@142
   406
                    <customize/>
franta-hg@142
   407
                </java>
franta-hg@142
   408
            </sequential>
franta-hg@142
   409
        </macrodef>
franta-hg@142
   410
        <macrodef name="run-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
franta-hg@142
   411
            <element name="customize" optional="true"/>
franta-hg@142
   412
            <sequential>
franta-hg@142
   413
                <java classname="${j2ee.appclient.tool.mainclass}" fork="true">
franta-hg@142
   414
                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
franta-hg@142
   415
                    <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
franta-hg@142
   416
                    <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
franta-hg@142
   417
                    <arg line="${j2ee.appclient.tool.args}"/>
franta-hg@142
   418
                    <arg line="-client ${client.jar}"/>
franta-hg@142
   419
                    <arg line="${j2ee.appclient.mainclass.tool.param}"/>
franta-hg@142
   420
                    <arg line="${application.args.param}"/>
franta-hg@142
   421
                    <classpath>
franta-hg@142
   422
                        <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
franta-hg@142
   423
                    </classpath>
franta-hg@142
   424
                    <syspropertyset>
franta-hg@142
   425
                        <propertyref prefix="run-sys-prop."/>
franta-hg@142
   426
                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
franta-hg@142
   427
                    </syspropertyset>
franta-hg@142
   428
                    <customize/>
franta-hg@142
   429
                </java>
franta-hg@142
   430
            </sequential>
franta-hg@142
   431
        </macrodef>
franta-hg@142
   432
    </target>
franta-hg@27
   433
    <!--
franta-hg@27
   434
    DEBUGGING SECTION
franta-hg@27
   435
    -->
franta-hg@27
   436
    <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
franta-hg@27
   437
    <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
franta-hg@27
   438
        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
franta-hg@27
   439
        <antcall target="connect-debugger"/>
franta-hg@27
   440
        <antcall target="debug-display-browser"/>
franta-hg@27
   441
    </target>
franta-hg@27
   442
    <target name="connect-debugger" unless="is.debugged">
franta-hg@142
   443
        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${jpda.host}:${jpda.address}" transport="${jpda.transport}">
franta-hg@27
   444
            <classpath>
franta-hg@27
   445
                <path path="${debug.classpath}"/>
franta-hg@142
   446
                <fileset dir="${build.dir}" includes="lib/*.jar"/>
franta-hg@27
   447
            </classpath>
franta-hg@27
   448
            <sourcepath>
franta-hg@27
   449
                <path path="${ear.docbase.dirs}"/>
franta-hg@27
   450
            </sourcepath>
franta-hg@27
   451
        </nbjpdaconnect>
franta-hg@27
   452
    </target>
franta-hg@27
   453
    <target if="do.display.browser" name="debug-display-browser">
franta-hg@27
   454
        <nbbrowse url="${client.url}"/>
franta-hg@27
   455
    </target>
franta-hg@142
   456
    <target if="can.debug.appclient" name="run-debug-appclient">
franta-hg@142
   457
        <antcall target="-run-debug-appclient"/>
franta-hg@142
   458
    </target>
franta-hg@142
   459
    <target depends="init,-init-debug-args,-debug-appclient-deploy,-as-retrieve-option-workaround,-init-debug-macros,-debug-appclient-start-nbjpda,-debug-appclient-pregfv3,-debug-appclient,connect-debugger" name="-run-debug-appclient"/>
franta-hg@27
   460
    <target name="-init-debug-args">
franta-hg@27
   461
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
franta-hg@27
   462
        <condition property="have-jdk-older-than-1.4">
franta-hg@27
   463
            <or>
franta-hg@27
   464
                <contains string="${version-output}" substring="java version &quot;1.0"/>
franta-hg@27
   465
                <contains string="${version-output}" substring="java version &quot;1.1"/>
franta-hg@27
   466
                <contains string="${version-output}" substring="java version &quot;1.2"/>
franta-hg@27
   467
                <contains string="${version-output}" substring="java version &quot;1.3"/>
franta-hg@27
   468
            </or>
franta-hg@27
   469
        </condition>
franta-hg@27
   470
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
franta-hg@27
   471
            <istrue value="${have-jdk-older-than-1.4}"/>
franta-hg@27
   472
        </condition>
franta-hg@27
   473
    </target>
franta-hg@142
   474
    <target depends="init,-init-debug-args,-as-retrieve-option-workaround,-init-run-macros" name="-init-debug-macros">
franta-hg@142
   475
        <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
franta-hg@142
   476
            <os family="windows"/>
franta-hg@142
   477
        </condition>
franta-hg@142
   478
        <condition else="${debug-transport-by-os}" property="debug-transport-appclient" value="${debug.transport}">
franta-hg@142
   479
            <isset property="debug.transport"/>
franta-hg@142
   480
        </condition>
franta-hg@142
   481
        <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
franta-hg@142
   482
            <attribute default="${main.class}" name="name"/>
franta-hg@27
   483
            <attribute default="${debug.classpath}" name="classpath"/>
franta-hg@142
   484
            <attribute default="" name="stopclassname"/>
franta-hg@27
   485
            <sequential>
franta-hg@142
   486
                <nbjpdastart addressproperty="jpda.address.appclient" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport-appclient}">
franta-hg@142
   487
                    <classpath>
franta-hg@142
   488
                        <path path="@{classpath}"/>
franta-hg@142
   489
                    </classpath>
franta-hg@142
   490
                </nbjpdastart>
franta-hg@27
   491
            </sequential>
franta-hg@27
   492
        </macrodef>
franta-hg@142
   493
        <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
franta-hg@142
   494
            <attribute name="subprojectname"/>
franta-hg@142
   495
            <sequential>
franta-hg@142
   496
                <ear2:run-appclient subprojectname="@{subprojectname}">
franta-hg@142
   497
                    <customize>
franta-hg@142
   498
                        <jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
franta-hg@142
   499
                        <jvmarg line="${debug-args-line}"/>
franta-hg@142
   500
                    </customize>
franta-hg@142
   501
                </ear2:run-appclient>
franta-hg@142
   502
            </sequential>
franta-hg@142
   503
        </macrodef>
franta-hg@142
   504
        <macrodef name="debug-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
franta-hg@142
   505
            <sequential>
franta-hg@142
   506
                <ear2:run-appclient-pregfv3>
franta-hg@142
   507
                    <customize>
franta-hg@142
   508
                        <jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
franta-hg@142
   509
                        <jvmarg line="${debug-args-line}"/>
franta-hg@142
   510
                    </customize>
franta-hg@142
   511
                </ear2:run-appclient-pregfv3>
franta-hg@142
   512
            </sequential>
franta-hg@142
   513
        </macrodef>
franta-hg@142
   514
    </target>
franta-hg@142
   515
    <target name="-debug-appclient-deploy">
franta-hg@142
   516
        <nbstartserver debugmode="true"/>
franta-hg@142
   517
        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
franta-hg@142
   518
    </target>
franta-hg@142
   519
    <target name="-debug-appclient-start-nbjpda">
franta-hg@142
   520
        <ear2:nbjpdastart classpath="" name="${app.client}"/>
franta-hg@142
   521
    </target>
franta-hg@142
   522
    <target if="j2ee.appclient.tool.args" name="-debug-appclient-pregfv3">
franta-hg@142
   523
        <ear2:debug-appclient-pregfv3/>
franta-hg@142
   524
    </target>
franta-hg@142
   525
    <target name="-debug-appclient" unless="j2ee.appclient.tool.args">
franta-hg@142
   526
        <mkdir dir="${dist.dir}/nekurak.net-earClient"/>
franta-hg@142
   527
        <copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
franta-hg@142
   528
            <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
franta-hg@142
   529
        </copy>
franta-hg@142
   530
        <ear2:debug-appclient subprojectname="${app.client}"/>
franta-hg@27
   531
    </target>
franta-hg@27
   532
    <!--
franta-hg@27
   533
    CLEANUP SECTION
franta-hg@27
   534
    -->
franta-hg@27
   535
    <target depends="init" name="deps-clean" unless="no.deps">
franta-hg@27
   536
        <condition property="build.deploy.on.save" value="false">
franta-hg@27
   537
            <not>
franta-hg@27
   538
                <isset property="build.deploy.on.save"/>
franta-hg@27
   539
            </not>
franta-hg@27
   540
        </condition>
franta-hg@27
   541
        <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="clean-ear">
franta-hg@27
   542
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@27
   543
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@27
   544
        </ant>
franta-hg@27
   545
        <condition property="build.deploy.on.save" value="false">
franta-hg@27
   546
            <not>
franta-hg@27
   547
                <isset property="build.deploy.on.save"/>
franta-hg@27
   548
            </not>
franta-hg@27
   549
        </condition>
franta-hg@86
   550
        <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="clean-ear">
franta-hg@86
   551
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@86
   552
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@86
   553
        </ant>
franta-hg@86
   554
        <condition property="build.deploy.on.save" value="false">
franta-hg@86
   555
            <not>
franta-hg@86
   556
                <isset property="build.deploy.on.save"/>
franta-hg@86
   557
            </not>
franta-hg@86
   558
        </condition>
franta-hg@27
   559
        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="clean-ear">
franta-hg@27
   560
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@27
   561
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@27
   562
        </ant>
franta-hg@98
   563
        <condition property="build.deploy.on.save" value="false">
franta-hg@98
   564
            <not>
franta-hg@98
   565
                <isset property="build.deploy.on.save"/>
franta-hg@98
   566
            </not>
franta-hg@98
   567
        </condition>
franta-hg@98
   568
        <ant antfile="${project.nekurak_net-ws}/build.xml" inheritall="false" target="clean-ear">
franta-hg@98
   569
            <property location="${build.dir}" name="dist.ear.dir"/>
franta-hg@98
   570
            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
franta-hg@98
   571
        </ant>
franta-hg@27
   572
    </target>
franta-hg@27
   573
    <target depends="init" name="do-clean">
franta-hg@27
   574
        <delete dir="${build.dir}"/>
franta-hg@27
   575
        <delete dir="${dist.dir}"/>
franta-hg@27
   576
        <delete dir="${build.dir}"/>
franta-hg@27
   577
    </target>
franta-hg@27
   578
    <target depends="init" if="netbeans.home" name="undeploy-clean">
franta-hg@27
   579
        <nbundeploy failOnError="false" startServer="false"/>
franta-hg@27
   580
    </target>
franta-hg@27
   581
    <target name="post-clean">
franta-hg@27
   582
        <!-- Empty placeholder for easier customization. -->
franta-hg@27
   583
        <!-- You can override this target in the ../build.xml file. -->
franta-hg@27
   584
    </target>
franta-hg@27
   585
    <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
franta-hg@27
   586
</project>