java/nekurak.net-ear/nbproject/build-impl.xml
changeset 59 4330f48457bb
child 75 18ed62105526
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/nekurak.net-ear/nbproject/build-impl.xml	Tue Mar 09 20:26:41 2010 +0100
     1.3 @@ -0,0 +1,476 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!--
     1.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
     1.7 +***         EDIT ../build.xml INSTEAD         ***
     1.8 +
     1.9 +For the purpose of easier reading the script
    1.10 +is divided into following sections:
    1.11 +
    1.12 +  - initialization
    1.13 +  - compilation
    1.14 +  - dist
    1.15 +  - execution
    1.16 +  - debugging
    1.17 +  - cleanup
    1.18 +
    1.19 +-->
    1.20 +<project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="nekurak.net-ear-impl">
    1.21 +    <import file="ant-deploy.xml"/>
    1.22 +    <fail message="Please build using Ant 1.7.1 or higher.">
    1.23 +        <condition>
    1.24 +            <not>
    1.25 +                <antversion atleast="1.7.1"/>
    1.26 +            </not>
    1.27 +        </condition>
    1.28 +    </fail>
    1.29 +    <target depends="dist" description="Build whole project." name="default"/>
    1.30 +    <!-- 
    1.31 +    INITIALIZATION SECTION 
    1.32 +    -->
    1.33 +    <target name="pre-init">
    1.34 +        <!-- Empty placeholder for easier customization. -->
    1.35 +        <!-- You can override this target in the ../build.xml file. -->
    1.36 +    </target>
    1.37 +    <target depends="pre-init" name="init-private">
    1.38 +        <property file="nbproject/private/private.properties"/>
    1.39 +    </target>
    1.40 +    <target depends="pre-init,init-private" name="init-userdir">
    1.41 +        <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    1.42 +    </target>
    1.43 +    <target depends="pre-init,init-private,init-userdir" name="init-user">
    1.44 +        <property file="${user.properties.file}"/>
    1.45 +    </target>
    1.46 +    <target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
    1.47 +        <property file="nbproject/project.properties"/>
    1.48 +    </target>
    1.49 +    <target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
    1.50 +        <!-- The two properties below are usually overridden -->
    1.51 +        <!-- by the active platform. Just a fallback. -->
    1.52 +        <property name="default.javac.source" value="1.4"/>
    1.53 +        <property name="default.javac.target" value="1.4"/>
    1.54 +        <condition property="do.compile.jsps">
    1.55 +            <istrue value="${compile.jsps}"/>
    1.56 +        </condition>
    1.57 +        <condition property="do.display.browser">
    1.58 +            <and>
    1.59 +                <istrue value="${display.browser}"/>
    1.60 +                <isset property="client.module.uri"/>
    1.61 +                <not>
    1.62 +                    <isset property="app.client"/>
    1.63 +                </not>
    1.64 +            </and>
    1.65 +        </condition>
    1.66 +        <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
    1.67 +        <!--
    1.68 +                    Variables needed to support directory deployment.
    1.69 +                -->
    1.70 +        <condition property="do.package.with.custom.manifest.not.directory.deploy">
    1.71 +            <and>
    1.72 +                <isset property="has.custom.manifest"/>
    1.73 +                <isfalse value="${directory.deployment.supported}"/>
    1.74 +            </and>
    1.75 +        </condition>
    1.76 +        <condition property="do.package.without.custom.manifest.not.directory.deploy">
    1.77 +            <and>
    1.78 +                <not>
    1.79 +                    <isset property="has.custom.manifest"/>
    1.80 +                </not>
    1.81 +                <isfalse value="${directory.deployment.supported}"/>
    1.82 +            </and>
    1.83 +        </condition>
    1.84 +        <condition property="do.package.not.directory.deploy">
    1.85 +            <isfalse value="${directory.deployment.supported}"/>
    1.86 +        </condition>
    1.87 +        <!--End Variables needed to support directory deployment.-->
    1.88 +        <condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
    1.89 +            <and>
    1.90 +                <isset property="main.class"/>
    1.91 +                <not>
    1.92 +                    <equals arg1="${main.class}" arg2="" trim="true"/>
    1.93 +                </not>
    1.94 +            </and>
    1.95 +        </condition>
    1.96 +        <condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
    1.97 +            <and>
    1.98 +                <isset property="j2ee.appclient.jvmoptions"/>
    1.99 +                <not>
   1.100 +                    <equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
   1.101 +                </not>
   1.102 +            </and>
   1.103 +        </condition>
   1.104 +        <condition else="" property="application.args.param" value="${application.args}">
   1.105 +            <and>
   1.106 +                <isset property="application.args"/>
   1.107 +                <not>
   1.108 +                    <equals arg1="${application.args}" arg2="" trim="true"/>
   1.109 +                </not>
   1.110 +            </and>
   1.111 +        </condition>
   1.112 +        <condition property="can.debug.appclient">
   1.113 +            <and>
   1.114 +                <isset property="netbeans.home"/>
   1.115 +                <isset property="app.client"/>
   1.116 +            </and>
   1.117 +        </condition>
   1.118 +        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   1.119 +        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   1.120 +            <length length="0" string="${endorsed.classpath}" when="greater"/>
   1.121 +        </condition>
   1.122 +    </target>
   1.123 +    <target depends="init" name="-init-cos">
   1.124 +        <condition else="false" property="build.deploy.on.save">
   1.125 +            <istrue value="${j2ee.deploy.on.save}"/>
   1.126 +        </condition>
   1.127 +    </target>
   1.128 +    <target name="post-init">
   1.129 +        <!-- Empty placeholder for easier customization. -->
   1.130 +        <!-- You can override this target in the ../build.xml file. -->
   1.131 +    </target>
   1.132 +    <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
   1.133 +        <fail unless="build.dir">Must set build.dir</fail>
   1.134 +        <fail unless="build.generated.dir">Must set build.generated.dir</fail>
   1.135 +        <fail unless="dist.dir">Must set dist.dir</fail>
   1.136 +        <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   1.137 +        <fail unless="dist.jar">Must set dist.jar</fail>
   1.138 +    </target>
   1.139 +    <target name="-init-taskdefs">
   1.140 +        <fail unless="libs.CopyLibs.classpath">
   1.141 +The libs.CopyLibs.classpath property is not set up.
   1.142 +This property must point to 
   1.143 +org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   1.144 +of NetBeans IDE installation and is usually located at 
   1.145 +&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   1.146 +Either open the project in the IDE and make sure CopyLibs library
   1.147 +exists or setup the property manually. For example like this:
   1.148 + ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   1.149 +                </fail>
   1.150 +        <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   1.151 +    </target>
   1.152 +    <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
   1.153 +    <!--
   1.154 +    COMPILATION SECTION
   1.155 +    -->
   1.156 +    <target depends="init" name="deps-jar" unless="no.deps"/>
   1.157 +    <target depends="init" name="deps-j2ee-archive" unless="no.deps">
   1.158 +        <condition property="build.deploy.on.save" value="false">
   1.159 +            <not>
   1.160 +                <isset property="build.deploy.on.save"/>
   1.161 +            </not>
   1.162 +        </condition>
   1.163 +        <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="dist-ear">
   1.164 +            <property location="${build.dir}" name="dist.ear.dir"/>
   1.165 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.166 +        </ant>
   1.167 +        <condition property="build.deploy.on.save" value="false">
   1.168 +            <not>
   1.169 +                <isset property="build.deploy.on.save"/>
   1.170 +            </not>
   1.171 +        </condition>
   1.172 +        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="dist-ear">
   1.173 +            <property location="${build.dir}" name="dist.ear.dir"/>
   1.174 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.175 +        </ant>
   1.176 +    </target>
   1.177 +    <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
   1.178 +    <target name="pre-compile">
   1.179 +        <!-- Empty placeholder for easier customization. -->
   1.180 +        <!-- You can override this target in the ../build.xml file. -->
   1.181 +    </target>
   1.182 +    <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
   1.183 +        <copy todir="${build.dir}/META-INF">
   1.184 +            <fileset dir="${meta.inf}"/>
   1.185 +        </copy>
   1.186 +    </target>
   1.187 +    <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
   1.188 +        <copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
   1.189 +        <copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
   1.190 +    </target>
   1.191 +    <target name="post-compile">
   1.192 +        <!-- Empty placeholder for easier customization. -->
   1.193 +        <!-- You can override this target in the ../build.xml file. -->
   1.194 +    </target>
   1.195 +    <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
   1.196 +    <!--
   1.197 +                DIST BUILDING SECTION
   1.198 +            -->
   1.199 +    <target name="pre-dist">
   1.200 +        <!-- Empty placeholder for easier customization. -->
   1.201 +        <!-- You can override this target in the ../build.xml file. -->
   1.202 +    </target>
   1.203 +    <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
   1.204 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.205 +        <mkdir dir="${dist.jar.dir}"/>
   1.206 +        <jar compress="${jar.compress}" jarfile="${dist.jar}">
   1.207 +            <fileset dir="${build.dir}"/>
   1.208 +        </jar>
   1.209 +    </target>
   1.210 +    <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
   1.211 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.212 +        <mkdir dir="${dist.jar.dir}"/>
   1.213 +        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
   1.214 +            <fileset dir="${build.dir}"/>
   1.215 +        </jar>
   1.216 +    </target>
   1.217 +    <!--
   1.218 +                TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   1.219 +            -->
   1.220 +    <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
   1.221 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.222 +        <mkdir dir="${dist.jar.dir}"/>
   1.223 +        <jar compress="${jar.compress}" jarfile="${dist.jar}">
   1.224 +            <fileset dir="${build.dir}"/>
   1.225 +        </jar>
   1.226 +    </target>
   1.227 +    <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
   1.228 +        <dirname file="${dist.jar}" property="dist.jar.dir"/>
   1.229 +        <mkdir dir="${dist.jar.dir}"/>
   1.230 +        <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
   1.231 +            <fileset dir="${build.dir}"/>
   1.232 +        </jar>
   1.233 +    </target>
   1.234 +    <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
   1.235 +    <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"/>
   1.236 +    <!--
   1.237 +                END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   1.238 +            -->
   1.239 +    <target name="post-dist">
   1.240 +        <!-- Empty placeholder for easier customization. -->
   1.241 +        <!-- You can override this target in the ../build.xml file. -->
   1.242 +    </target>
   1.243 +    <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
   1.244 +    <!--
   1.245 +    EXECUTION SECTION
   1.246 +    -->
   1.247 +    <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
   1.248 +    <target name="pre-run-deploy">
   1.249 +        <!-- Empty placeholder for easier customization. -->
   1.250 +        <!-- You can override this target in the ../build.xml file. -->
   1.251 +    </target>
   1.252 +    <target name="post-run-deploy">
   1.253 +        <!-- Empty placeholder for easier customization. -->
   1.254 +        <!-- You can override this target in the ../build.xml file. -->
   1.255 +    </target>
   1.256 +    <target name="-pre-nbmodule-run-deploy">
   1.257 +        <!-- Empty placeholder for easier customization. -->
   1.258 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   1.259 +    </target>
   1.260 +    <target name="-post-nbmodule-run-deploy">
   1.261 +        <!-- Empty placeholder for easier customization. -->
   1.262 +        <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   1.263 +    </target>
   1.264 +    <target name="-run-deploy-am" unless="no.deps">
   1.265 +        <!-- Task to deploy to the Access Manager runtime. -->
   1.266 +        <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
   1.267 +        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
   1.268 +    </target>
   1.269 +    <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"/>
   1.270 +    <target if="netbeans.home" name="-run-deploy-nb">
   1.271 +        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
   1.272 +    </target>
   1.273 +    <target name="-init-deploy-ant" unless="netbeans.home">
   1.274 +        <property name="deploy.ant.archive" value="${dist.jar}"/>
   1.275 +        <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   1.276 +        <property name="deploy.ant.enabled" value="true"/>
   1.277 +    </target>
   1.278 +    <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   1.279 +    <target if="netbeans.home" name="-run-undeploy-nb">
   1.280 +        <fail message="Undeploy is not supported from within the IDE"/>
   1.281 +    </target>
   1.282 +    <target depends="dist" name="verify">
   1.283 +        <nbverify file="${dist.jar}"/>
   1.284 +    </target>
   1.285 +    <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
   1.286 +    <target if="do.display.browser" name="-init-display-browser">
   1.287 +        <condition property="do.display.browser.nb">
   1.288 +            <isset property="netbeans.home"/>
   1.289 +        </condition>
   1.290 +        <condition property="do.display.browser.cl">
   1.291 +            <and>
   1.292 +                <isset property="deploy.ant.enabled"/>
   1.293 +                <isset property="deploy.ant.client.url"/>
   1.294 +            </and>
   1.295 +        </condition>
   1.296 +    </target>
   1.297 +    <target if="do.display.browser.nb" name="-display-browser-nb">
   1.298 +        <nbbrowse url="${client.url}"/>
   1.299 +    </target>
   1.300 +    <target if="do.display.browser.cl" name="-get-browser" unless="browser">
   1.301 +        <condition property="browser" value="rundll32">
   1.302 +            <os family="windows"/>
   1.303 +        </condition>
   1.304 +        <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
   1.305 +            <os family="windows"/>
   1.306 +        </condition>
   1.307 +        <condition property="browser" value="/usr/bin/open">
   1.308 +            <os family="mac"/>
   1.309 +        </condition>
   1.310 +        <property environment="env"/>
   1.311 +        <condition property="browser" value="${env.BROWSER}">
   1.312 +            <isset property="env.BROWSER"/>
   1.313 +        </condition>
   1.314 +        <condition property="browser" value="/usr/bin/firefox">
   1.315 +            <available file="/usr/bin/firefox"/>
   1.316 +        </condition>
   1.317 +        <condition property="browser" value="/usr/local/firefox/firefox">
   1.318 +            <available file="/usr/local/firefox/firefox"/>
   1.319 +        </condition>
   1.320 +        <condition property="browser" value="/usr/bin/mozilla">
   1.321 +            <available file="/usr/bin/mozilla"/>
   1.322 +        </condition>
   1.323 +        <condition property="browser" value="/usr/local/mozilla/mozilla">
   1.324 +            <available file="/usr/local/mozilla/mozilla"/>
   1.325 +        </condition>
   1.326 +        <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
   1.327 +            <available file="/usr/sfw/lib/firefox/firefox"/>
   1.328 +        </condition>
   1.329 +        <condition property="browser" value="/opt/csw/bin/firefox">
   1.330 +            <available file="/opt/csw/bin/firefox"/>
   1.331 +        </condition>
   1.332 +        <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
   1.333 +            <available file="/usr/sfw/lib/mozilla/mozilla"/>
   1.334 +        </condition>
   1.335 +        <condition property="browser" value="/opt/csw/bin/mozilla">
   1.336 +            <available file="/opt/csw/bin/mozilla"/>
   1.337 +        </condition>
   1.338 +    </target>
   1.339 +    <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
   1.340 +        <fail unless="browser">
   1.341 +            Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
   1.342 +        </fail>
   1.343 +        <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
   1.344 +        <echo>Launching ${browse.url}</echo>
   1.345 +        <exec executable="${browser}" spawn="true">
   1.346 +            <arg line="${browser.args} ${browse.url}"/>
   1.347 +        </exec>
   1.348 +    </target>
   1.349 +    <target depends="init" if="app.client" name="run-ac">
   1.350 +        <antcall target="run-${app.client}"/>
   1.351 +    </target>
   1.352 +    <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
   1.353 +        <property name="client.jar" value="${dist.dir}/nekurak.net-earClient.jar"/>
   1.354 +        <sleep seconds="3"/>
   1.355 +        <copy failonerror="false" file="${wa.copy.client.jar.from}/nekurak.net-ear/nekurak.net-earClient.jar" todir="${dist.dir}"/>
   1.356 +        <copy failonerror="false" flatten="true" todir="${dist.dir}/">
   1.357 +            <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/nekurak.net-earClient.jar"/>
   1.358 +        </copy>
   1.359 +        <copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
   1.360 +            <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
   1.361 +        </copy>
   1.362 +        <copy failonerror="false" flatten="false" todir="${dist.dir}/nekurak.net-earClient">
   1.363 +            <fileset dir="${dist.dir}/gfdeploy/nekurak.net-ear" includes="**/*.jar"/>
   1.364 +        </copy>
   1.365 +    </target>
   1.366 +    <!--
   1.367 +    DEBUGGING SECTION
   1.368 +    -->
   1.369 +    <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
   1.370 +    <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
   1.371 +        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
   1.372 +        <antcall target="connect-debugger"/>
   1.373 +        <antcall target="debug-display-browser"/>
   1.374 +    </target>
   1.375 +    <target name="connect-debugger" unless="is.debugged">
   1.376 +        <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   1.377 +            <classpath>
   1.378 +                <path path="${debug.classpath}"/>
   1.379 +                <fileset dir="${build.dir}/lib" includes="*.jar"/>
   1.380 +            </classpath>
   1.381 +            <sourcepath>
   1.382 +                <path path="${ear.docbase.dirs}"/>
   1.383 +            </sourcepath>
   1.384 +        </nbjpdaconnect>
   1.385 +    </target>
   1.386 +    <target if="do.display.browser" name="debug-display-browser">
   1.387 +        <nbbrowse url="${client.url}"/>
   1.388 +    </target>
   1.389 +    <target name="-init-debug-args">
   1.390 +        <property name="version-output" value="java version &quot;${ant.java.version}"/>
   1.391 +        <condition property="have-jdk-older-than-1.4">
   1.392 +            <or>
   1.393 +                <contains string="${version-output}" substring="java version &quot;1.0"/>
   1.394 +                <contains string="${version-output}" substring="java version &quot;1.1"/>
   1.395 +                <contains string="${version-output}" substring="java version &quot;1.2"/>
   1.396 +                <contains string="${version-output}" substring="java version &quot;1.3"/>
   1.397 +            </or>
   1.398 +        </condition>
   1.399 +        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   1.400 +            <istrue value="${have-jdk-older-than-1.4}"/>
   1.401 +        </condition>
   1.402 +    </target>
   1.403 +    <target depends="init,-init-debug-args" if="can.debug.appclient" name="run-debug-appclient">
   1.404 +        <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   1.405 +            <attribute name="mainclass"/>
   1.406 +            <attribute default="${debug.classpath}" name="classpath"/>
   1.407 +            <element name="customize" optional="true"/>
   1.408 +            <attribute default="${application.args.param}" name="args"/>
   1.409 +            <sequential>
   1.410 +                <parallel>
   1.411 +                    <java classname="@{mainclass}" fork="true">
   1.412 +                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   1.413 +                        <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
   1.414 +                        <jvmarg line="${debug-args-line}"/>
   1.415 +                        <jvmarg value="-Xrunjdwp:transport=${jpda.transport},server=y,address=${jpda.address},suspend=y"/>
   1.416 +                        <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
   1.417 +                        <arg line="@{args}"/>
   1.418 +                        <classpath>
   1.419 +                            <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
   1.420 +                            <path path="@{classpath}"/>
   1.421 +                        </classpath>
   1.422 +                        <syspropertyset>
   1.423 +                            <propertyref prefix="run-sys-prop."/>
   1.424 +                            <mapper from="run-sys-prop.*" to="*" type="glob"/>
   1.425 +                        </syspropertyset>
   1.426 +                        <customize/>
   1.427 +                    </java>
   1.428 +                    <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
   1.429 +                        <classpath>
   1.430 +                            <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
   1.431 +                            <path path="@{classpath}"/>
   1.432 +                        </classpath>
   1.433 +                        <sourcepath>
   1.434 +                            <path path="${src.dir}"/>
   1.435 +                        </sourcepath>
   1.436 +                    </nbjpdaconnect>
   1.437 +                </parallel>
   1.438 +            </sequential>
   1.439 +        </macrodef>
   1.440 +        <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false"/>
   1.441 +        <antcall target="debug-${app.client}"/>
   1.442 +    </target>
   1.443 +    <!--
   1.444 +    CLEANUP SECTION
   1.445 +    -->
   1.446 +    <target depends="init" name="deps-clean" unless="no.deps">
   1.447 +        <condition property="build.deploy.on.save" value="false">
   1.448 +            <not>
   1.449 +                <isset property="build.deploy.on.save"/>
   1.450 +            </not>
   1.451 +        </condition>
   1.452 +        <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="clean-ear">
   1.453 +            <property location="${build.dir}" name="dist.ear.dir"/>
   1.454 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.455 +        </ant>
   1.456 +        <condition property="build.deploy.on.save" value="false">
   1.457 +            <not>
   1.458 +                <isset property="build.deploy.on.save"/>
   1.459 +            </not>
   1.460 +        </condition>
   1.461 +        <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="clean-ear">
   1.462 +            <property location="${build.dir}" name="dist.ear.dir"/>
   1.463 +            <property name="deploy.on.save" value="${build.deploy.on.save}"/>
   1.464 +        </ant>
   1.465 +    </target>
   1.466 +    <target depends="init" name="do-clean">
   1.467 +        <delete dir="${build.dir}"/>
   1.468 +        <delete dir="${dist.dir}"/>
   1.469 +        <delete dir="${build.dir}"/>
   1.470 +    </target>
   1.471 +    <target depends="init" if="netbeans.home" name="undeploy-clean">
   1.472 +        <nbundeploy failOnError="false" startServer="false"/>
   1.473 +    </target>
   1.474 +    <target name="post-clean">
   1.475 +        <!-- Empty placeholder for easier customization. -->
   1.476 +        <!-- You can override this target in the ../build.xml file. -->
   1.477 +    </target>
   1.478 +    <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
   1.479 +</project>