1 <?xml version="1.0" encoding="UTF-8"?>
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
4 *** EDIT ../build.xml INSTEAD ***
6 For the purpose of easier reading the script
7 is divided into following sections:
17 <project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="jjobs-impl">
18 <import file="ant-deploy.xml"/>
19 <fail message="Please build using Ant 1.7.1 or higher.">
22 <antversion atleast="1.7.1"/>
26 <target depends="dist" description="Build whole project." name="default"/>
28 INITIALIZATION SECTION
30 <target name="pre-init">
31 <!-- Empty placeholder for easier customization. -->
32 <!-- You can override this target in the ../build.xml file. -->
34 <target depends="pre-init" name="init-private">
35 <property file="nbproject/private/private.properties"/>
37 <target depends="pre-init,init-private" name="init-userdir">
38 <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
40 <target depends="pre-init,init-private,init-userdir" name="init-user">
41 <property file="${user.properties.file}"/>
43 <target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
44 <property file="nbproject/project.properties"/>
46 <target depends="pre-init,init-private,init-userdir,init-user,init-project" name="do-init">
47 <!-- The two properties below are usually overridden -->
48 <!-- by the active platform. Just a fallback. -->
49 <property name="default.javac.source" value="1.4"/>
50 <property name="default.javac.target" value="1.4"/>
51 <condition property="do.compile.jsps">
52 <istrue value="${compile.jsps}"/>
54 <condition property="do.display.browser.old">
56 <istrue value="${display.browser}"/>
57 <isset property="client.module.uri"/>
59 <isset property="app.client"/>
62 <isset property="browser.context"/>
66 <condition property="do.display.browser">
68 <istrue value="${display.browser}"/>
69 <isset property="client.module.uri"/>
71 <isset property="app.client"/>
73 <isset property="browser.context"/>
76 <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
78 Variables needed to support directory deployment.
80 <condition property="do.package.with.custom.manifest.not.directory.deploy">
82 <isset property="has.custom.manifest"/>
83 <isfalse value="${directory.deployment.supported}"/>
86 <condition property="do.package.without.custom.manifest.not.directory.deploy">
89 <isset property="has.custom.manifest"/>
91 <isfalse value="${directory.deployment.supported}"/>
94 <condition property="do.package.not.directory.deploy">
95 <isfalse value="${directory.deployment.supported}"/>
97 <!--End Variables needed to support directory deployment.-->
98 <condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
100 <isset property="main.class"/>
102 <equals arg1="${main.class}" arg2="" trim="true"/>
106 <condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
108 <isset property="j2ee.appclient.jvmoptions"/>
110 <equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
114 <condition else="" property="application.args.param" value="${application.args}">
116 <isset property="application.args"/>
118 <equals arg1="${application.args}" arg2="" trim="true"/>
122 <condition property="can.debug.appclient">
124 <isset property="netbeans.home"/>
125 <isset property="app.client"/>
128 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
129 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
131 <isset property="endorsed.classpath"/>
132 <length length="0" string="${endorsed.classpath}" when="greater"/>
136 <target depends="init" name="-init-cos">
137 <condition else="false" property="build.deploy.on.save">
139 <istrue value="${j2ee.deploy.on.save}"/>
140 <istrue value="${j2ee.compile.on.save}"/>
144 <target name="post-init">
145 <!-- Empty placeholder for easier customization. -->
146 <!-- You can override this target in the ../build.xml file. -->
148 <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
149 <fail unless="build.dir">Must set build.dir</fail>
150 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
151 <fail unless="dist.dir">Must set dist.dir</fail>
152 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
153 <fail unless="dist.jar">Must set dist.jar</fail>
155 <target name="-init-taskdefs">
156 <fail unless="libs.CopyLibs.classpath">
157 The libs.CopyLibs.classpath property is not set up.
158 This property must point to
159 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
160 of NetBeans IDE installation and is usually located at
161 <netbeans_installation>/java<version>/ant/extra folder.
162 Either open the project in the IDE and make sure CopyLibs library
163 exists or setup the property manually. For example like this:
164 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
166 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
169 pre NB7.2 profiling section; consider it deprecated
171 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
172 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
173 <!-- Empty placeholder for easier customization. -->
174 <!-- You can override this target in the ../build.xml file. -->
176 <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
177 <!-- Empty placeholder for easier customization. -->
178 <!-- You can override this target in the ../build.xml file. -->
180 <target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
181 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
182 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
185 end of pre NB7.2 profiling section
187 <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
191 <target depends="init" name="deps-jar" unless="no.deps">
192 <condition property="build.deploy.on.save" value="false">
194 <isset property="build.deploy.on.save"/>
198 <target depends="init" name="deps-j2ee-archive" unless="no.deps">
199 <condition property="build.deploy.on.save" value="false">
201 <isset property="build.deploy.on.save"/>
204 <ant antfile="${project.addressbook-ejb}/build.xml" inheritall="false" target="dist-ear">
205 <property location="${build.dir}" name="dist.ear.dir"/>
206 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
208 <ant antfile="${project.jcontacts-ejb}/build.xml" inheritall="false" target="dist-ear">
209 <property location="${build.dir}" name="dist.ear.dir"/>
210 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
212 <ant antfile="${project.jcore-logger-ejb}/build.xml" inheritall="false" target="dist-ear">
213 <property location="${build.dir}" name="dist.ear.dir"/>
214 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
216 <ant antfile="${project.jcountry-ejb}/build.xml" inheritall="false" target="dist-ear">
217 <property location="${build.dir}" name="dist.ear.dir"/>
218 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
220 <ant antfile="${project.jjobs-ejb}/build.xml" inheritall="false" target="dist-ear">
221 <property location="${build.dir}" name="dist.ear.dir"/>
222 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
224 <ant antfile="${project.jletter-ejb}/build.xml" inheritall="false" target="dist-ear">
225 <property location="${build.dir}" name="dist.ear.dir"/>
226 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
228 <ant antfile="${project.juser-ejb}/build.xml" inheritall="false" target="dist-ear">
229 <property location="${build.dir}" name="dist.ear.dir"/>
230 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
233 <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
234 <target name="pre-compile">
235 <!-- Empty placeholder for easier customization. -->
236 <!-- You can override this target in the ../build.xml file. -->
238 <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
239 <copy todir="${build.dir}/META-INF">
240 <fileset dir="${meta.inf}"/>
243 <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
244 <copyfiles files="${reference.addressbook-ejb.dist-ear}" todir="${build.dir}//"/>
245 <copyfiles files="${reference.jcontacts-ejb.dist-ear}" todir="${build.dir}//"/>
246 <copyfiles files="${reference.jcore-logger-ejb.dist-ear}" todir="${build.dir}//"/>
247 <copyfiles files="${reference.juser-ejb.dist-ear}" todir="${build.dir}//"/>
248 <copyfiles files="${reference.jletter-ejb.dist-ear}" todir="${build.dir}//"/>
249 <copyfiles files="${reference.jjobs-ejb.dist-ear}" todir="${build.dir}//"/>
250 <copyfiles files="${reference.jcountry-ejb.dist-ear}" todir="${build.dir}//"/>
252 <target name="post-compile">
253 <!-- Empty placeholder for easier customization. -->
254 <!-- You can override this target in the ../build.xml file. -->
256 <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
258 DIST BUILDING SECTION
260 <target name="pre-dist">
261 <!-- Empty placeholder for easier customization. -->
262 <!-- You can override this target in the ../build.xml file. -->
264 <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
265 <dirname file="${dist.jar}" property="dist.jar.dir"/>
266 <mkdir dir="${dist.jar.dir}"/>
267 <jar compress="${jar.compress}" jarfile="${dist.jar}">
268 <fileset dir="${build.dir}"/>
271 <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
272 <dirname file="${dist.jar}" property="dist.jar.dir"/>
273 <mkdir dir="${dist.jar.dir}"/>
274 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
275 <fileset dir="${build.dir}"/>
279 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
281 <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
282 <dirname file="${dist.jar}" property="dist.jar.dir"/>
283 <mkdir dir="${dist.jar.dir}"/>
284 <jar compress="${jar.compress}" jarfile="${dist.jar}">
285 <fileset dir="${build.dir}"/>
288 <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
289 <dirname file="${dist.jar}" property="dist.jar.dir"/>
290 <mkdir dir="${dist.jar.dir}"/>
291 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
292 <fileset dir="${build.dir}"/>
295 <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
296 <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"/>
298 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
300 <target name="post-dist">
301 <!-- Empty placeholder for easier customization. -->
302 <!-- You can override this target in the ../build.xml file. -->
304 <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
308 <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
309 <target name="pre-run-deploy">
310 <!-- Empty placeholder for easier customization. -->
311 <!-- You can override this target in the ../build.xml file. -->
313 <target name="post-run-deploy">
314 <!-- Empty placeholder for easier customization. -->
315 <!-- You can override this target in the ../build.xml file. -->
317 <target name="-pre-nbmodule-run-deploy">
318 <!-- Empty placeholder for easier customization. -->
319 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
321 <target name="-post-nbmodule-run-deploy">
322 <!-- Empty placeholder for easier customization. -->
323 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
325 <target name="-run-deploy-am" unless="no.deps">
326 <!-- Task to deploy to the Access Manager runtime. -->
327 <ant antfile="${project.addressbook-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
328 <ant antfile="${project.jcontacts-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
329 <ant antfile="${project.jcore-logger-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
330 <ant antfile="${project.jcountry-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
331 <ant antfile="${project.jjobs-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
332 <ant antfile="${project.jletter-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
333 <ant antfile="${project.juser-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
335 <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"/>
336 <target if="netbeans.home" name="-run-deploy-nb">
337 <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
339 <target name="-init-deploy-ant" unless="netbeans.home">
340 <property name="deploy.ant.archive" value="${dist.jar}"/>
341 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
342 <property name="deploy.ant.enabled" value="true"/>
344 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
345 <target if="netbeans.home" name="-run-undeploy-nb">
346 <fail message="Undeploy is not supported from within the IDE"/>
348 <target depends="dist" name="verify">
349 <nbverify file="${dist.jar}"/>
351 <target depends="run-deploy,-init-display-browser,-display-browser-nb-old,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
352 <target if="do.display.browser" name="-init-display-browser">
353 <condition property="do.display.browser.nb.old">
355 <isset property="netbeans.home"/>
357 <isset property="browser.context"/>
361 <condition property="do.display.browser.nb">
363 <isset property="netbeans.home"/>
364 <isset property="browser.context"/>
367 <condition property="do.display.browser.cl">
369 <isset property="deploy.ant.enabled"/>
370 <isset property="deploy.ant.client.url"/>
374 <target if="do.display.browser.nb.old" name="-display-browser-nb-old">
375 <nbbrowse url="${client.url}"/>
377 <target if="do.display.browser.nb" name="-display-browser-nb">
378 <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/>
380 <target if="do.display.browser.cl" name="-get-browser" unless="browser">
381 <condition property="browser" value="rundll32">
382 <os family="windows"/>
384 <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
385 <os family="windows"/>
387 <condition property="browser" value="/usr/bin/open">
390 <property environment="env"/>
391 <condition property="browser" value="${env.BROWSER}">
392 <isset property="env.BROWSER"/>
394 <condition property="browser" value="/usr/bin/firefox">
395 <available file="/usr/bin/firefox"/>
397 <condition property="browser" value="/usr/local/firefox/firefox">
398 <available file="/usr/local/firefox/firefox"/>
400 <condition property="browser" value="/usr/bin/mozilla">
401 <available file="/usr/bin/mozilla"/>
403 <condition property="browser" value="/usr/local/mozilla/mozilla">
404 <available file="/usr/local/mozilla/mozilla"/>
406 <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
407 <available file="/usr/sfw/lib/firefox/firefox"/>
409 <condition property="browser" value="/opt/csw/bin/firefox">
410 <available file="/opt/csw/bin/firefox"/>
412 <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
413 <available file="/usr/sfw/lib/mozilla/mozilla"/>
415 <condition property="browser" value="/opt/csw/bin/mozilla">
416 <available file="/opt/csw/bin/mozilla"/>
419 <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
420 <fail unless="browser">
421 Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
423 <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
424 <echo>Launching ${browse.url}</echo>
425 <exec executable="${browser}" spawn="true">
426 <arg line="${browser.args} ${browse.url}"/>
429 <target if="app.client" name="run-ac">
430 <antcall target="-run-ac"/>
432 <target depends="init,-as-retrieve-option-workaround,-init-run-macros,-run-appclient-pregfv3,-run-appclient" name="-run-ac"/>
433 <target if="j2ee.appclient.tool.args" name="-run-appclient-pregfv3">
434 <ear2:run-appclient-pregfv3/>
436 <target name="-run-appclient" unless="j2ee.appclient.tool.args">
437 <ear2:run-appclient subprojectname="${app.client}"/>
439 <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
440 <property name="client.jar" value="${dist.dir}/jjobsClient.jar"/>
442 <copy failonerror="false" file="${wa.copy.client.jar.from}/jjobs/jjobsClient.jar" todir="${dist.dir}"/>
443 <copy failonerror="false" flatten="true" todir="${dist.dir}/">
444 <fileset dir="${wa.copy.client.jar.from}/jjobs" includes="**/jjobsClient.jar"/>
446 <copy flatten="true" todir="${dist.dir}/jjobsClient">
447 <fileset dir="${wa.copy.client.jar.from}/jjobs" includes="**/*.*ar"/>
449 <copy failonerror="false" flatten="false" todir="${dist.dir}/jjobsClient">
450 <fileset dir="${dist.dir}/gfdeploy/jjobs" includes="**/*.jar"/>
453 <target depends="init" name="-init-run-macros">
454 <macrodef name="run-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
455 <attribute name="subprojectname"/>
456 <attribute default="${application.args.param}" name="args"/>
457 <element name="customize" optional="true"/>
459 <java dir="${basedir}" fork="true" jar="${client.jar}">
460 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
461 <jvmarg line="${j2ee.appclient.tool.jvmoptions}${client.jar},arg=-name,arg=@{subprojectname}"/>
462 <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
463 <arg line="@{args}"/>
465 <propertyref prefix="run-sys-prop."/>
466 <mapper from="run-sys-prop.*" to="*" type="glob"/>
472 <macrodef name="run-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
473 <element name="customize" optional="true"/>
475 <java classname="${j2ee.appclient.tool.mainclass}" fork="true">
476 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
477 <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
478 <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
479 <arg line="${j2ee.appclient.tool.args}"/>
480 <arg line="-client ${client.jar}"/>
481 <arg line="${j2ee.appclient.mainclass.tool.param}"/>
482 <arg line="${application.args.param}"/>
484 <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
487 <propertyref prefix="run-sys-prop."/>
488 <mapper from="run-sys-prop.*" to="*" type="glob"/>
498 <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
499 <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
500 <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
501 <antcall target="connect-debugger"/>
502 <antcall target="debug-display-browser-old"/>
503 <antcall target="debug-display-browser"/>
505 <target name="connect-debugger" unless="is.debugged">
506 <condition property="listeningcp" value="sourcepath">
507 <istrue value="${j2ee.compile.on.save}"/>
509 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${jpda.host}:${jpda.address}" transport="${jpda.transport}">
511 <path path="${debug.classpath}"/>
512 <fileset dir="${build.dir}" includes="lib/*.jar"/>
515 <path path="${ear.docbase.dirs}"/>
519 <target if="do.display.browser.old" name="debug-display-browser-old">
520 <nbbrowse url="${client.url}"/>
522 <target if="do.display.browser" name="debug-display-browser">
523 <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/>
525 <target if="can.debug.appclient" name="run-debug-appclient">
526 <antcall target="-run-debug-appclient"/>
528 <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"/>
529 <target name="-init-debug-args">
530 <property name="version-output" value="java version "${ant.java.version}"/>
531 <condition property="have-jdk-older-than-1.4">
533 <contains string="${version-output}" substring="java version "1.0"/>
534 <contains string="${version-output}" substring="java version "1.1"/>
535 <contains string="${version-output}" substring="java version "1.2"/>
536 <contains string="${version-output}" substring="java version "1.3"/>
539 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
540 <istrue value="${have-jdk-older-than-1.4}"/>
543 <target depends="init,-init-debug-args,-as-retrieve-option-workaround,-init-run-macros" name="-init-debug-macros">
544 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
545 <os family="windows"/>
547 <condition else="${debug-transport-by-os}" property="debug-transport-appclient" value="${debug.transport}">
548 <isset property="debug.transport"/>
550 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
551 <attribute default="${main.class}" name="name"/>
552 <attribute default="${debug.classpath}" name="classpath"/>
553 <attribute default="" name="stopclassname"/>
555 <nbjpdastart addressproperty="jpda.address.appclient" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport-appclient}">
557 <path path="@{classpath}"/>
562 <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
563 <attribute name="subprojectname"/>
565 <ear2:run-appclient subprojectname="@{subprojectname}">
567 <jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
568 <jvmarg line="${debug-args-line}"/>
570 </ear2:run-appclient>
573 <macrodef name="debug-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
575 <ear2:run-appclient-pregfv3>
577 <jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
578 <jvmarg line="${debug-args-line}"/>
580 </ear2:run-appclient-pregfv3>
584 <target name="-debug-appclient-deploy">
585 <nbstartserver debugmode="true"/>
586 <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
588 <target name="-debug-appclient-start-nbjpda">
589 <ear2:nbjpdastart classpath="" name="${app.client}"/>
591 <target if="j2ee.appclient.tool.args" name="-debug-appclient-pregfv3">
592 <ear2:debug-appclient-pregfv3/>
594 <target name="-debug-appclient" unless="j2ee.appclient.tool.args">
595 <ear2:debug-appclient subprojectname="${app.client}"/>
603 pre NB7.2 profiling section; consider it deprecated
605 <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
606 <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
607 <isset property="profiler.info.jvmargs.extra"/>
609 <antcall target="${profiler.startserver.target}"/>
610 <antcall target="run"/>
611 <antcall target="-profile-start-loadgen"/>
613 <target name="start-profiled-server">
614 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
615 <jvmarg value="${profiler.info.jvmargs.agent}"/>
616 <jvmarg value="${profiler.j2ee.agentID}"/>
617 </nbstartprofiledserver>
619 <target name="start-profiled-server-extraargs">
620 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
621 <jvmarg value="${profiler.info.jvmargs.extra}"/>
622 <jvmarg value="${profiler.info.jvmargs.agent}"/>
623 <jvmarg value="${profiler.j2ee.agentID}"/>
624 </nbstartprofiledserver>
627 end of pre NB7.2 profiling section
629 <target if="netbeans.home" name="-profile-check">
630 <condition property="profiler.configured">
632 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
633 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
637 <target depends="dist" name="-do-profile">
639 <nbstartserver profilemode="true"/>
640 <nbdeploy clientUrlPart="${client.urlPart}" forceRedeploy="true" profilemode="true"/>
641 <antcall target="-profile-start-loadgen"/>
643 <target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile">
644 <antcall target="-do-profile"/>
646 <target if="profiler.loadgen.path" name="-profile-start-loadgen">
647 <loadgenstart path="${profiler.loadgen.path}"/>
652 <target depends="init" name="deps-clean" unless="no.deps">
653 <condition property="build.deploy.on.save" value="false">
655 <isset property="build.deploy.on.save"/>
658 <ant antfile="${project.addressbook-ejb}/build.xml" inheritall="false" target="clean-ear">
659 <property location="${build.dir}" name="dist.ear.dir"/>
660 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
662 <ant antfile="${project.jcontacts-ejb}/build.xml" inheritall="false" target="clean-ear">
663 <property location="${build.dir}" name="dist.ear.dir"/>
664 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
666 <ant antfile="${project.jcore-logger-ejb}/build.xml" inheritall="false" target="clean-ear">
667 <property location="${build.dir}" name="dist.ear.dir"/>
668 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
670 <ant antfile="${project.jcountry-ejb}/build.xml" inheritall="false" target="clean-ear">
671 <property location="${build.dir}" name="dist.ear.dir"/>
672 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
674 <ant antfile="${project.jjobs-ejb}/build.xml" inheritall="false" target="clean-ear">
675 <property location="${build.dir}" name="dist.ear.dir"/>
676 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
678 <ant antfile="${project.jletter-ejb}/build.xml" inheritall="false" target="clean-ear">
679 <property location="${build.dir}" name="dist.ear.dir"/>
680 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
682 <ant antfile="${project.juser-ejb}/build.xml" inheritall="false" target="clean-ear">
683 <property location="${build.dir}" name="dist.ear.dir"/>
684 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
687 <target depends="init" name="do-clean">
688 <delete dir="${build.dir}"/>
689 <delete dir="${dist.dir}"/>
690 <delete dir="${build.dir}"/>
692 <target depends="init" if="netbeans.home" name="undeploy-clean">
693 <nbundeploy failOnError="false" startServer="false"/>
695 <target name="post-clean">
696 <!-- Empty placeholder for easier customization. -->
697 <!-- You can override this target in the ../build.xml file. -->
699 <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>