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