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="PizzaService-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.PizzaService-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.jcore-ee-logger}/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.jshop-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}"/>
217 <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
218 <target name="pre-compile">
219 <!-- Empty placeholder for easier customization. -->
220 <!-- You can override this target in the ../build.xml file. -->
222 <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
223 <copy todir="${build.dir}/META-INF">
224 <fileset dir="${meta.inf}"/>
227 <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
228 <copyfiles files="${reference.PizzaService-ejb.dist-ear}" todir="${build.dir}//"/>
229 <copyfiles files="${reference.jshop-ejb.dist-ear}" todir="${build.dir}//"/>
230 <copyfiles files="${reference.jcore-ee-logger.dist-ear}" todir="${build.dir}//"/>
232 <target name="post-compile">
233 <!-- Empty placeholder for easier customization. -->
234 <!-- You can override this target in the ../build.xml file. -->
236 <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
238 DIST BUILDING SECTION
240 <target name="pre-dist">
241 <!-- Empty placeholder for easier customization. -->
242 <!-- You can override this target in the ../build.xml file. -->
244 <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
245 <dirname file="${dist.jar}" property="dist.jar.dir"/>
246 <mkdir dir="${dist.jar.dir}"/>
247 <jar compress="${jar.compress}" jarfile="${dist.jar}">
248 <fileset dir="${build.dir}"/>
251 <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
252 <dirname file="${dist.jar}" property="dist.jar.dir"/>
253 <mkdir dir="${dist.jar.dir}"/>
254 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
255 <fileset dir="${build.dir}"/>
259 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
261 <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
262 <dirname file="${dist.jar}" property="dist.jar.dir"/>
263 <mkdir dir="${dist.jar.dir}"/>
264 <jar compress="${jar.compress}" jarfile="${dist.jar}">
265 <fileset dir="${build.dir}"/>
268 <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
269 <dirname file="${dist.jar}" property="dist.jar.dir"/>
270 <mkdir dir="${dist.jar.dir}"/>
271 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
272 <fileset dir="${build.dir}"/>
275 <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
276 <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"/>
278 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
280 <target name="post-dist">
281 <!-- Empty placeholder for easier customization. -->
282 <!-- You can override this target in the ../build.xml file. -->
284 <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
288 <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
289 <target name="pre-run-deploy">
290 <!-- Empty placeholder for easier customization. -->
291 <!-- You can override this target in the ../build.xml file. -->
293 <target name="post-run-deploy">
294 <!-- Empty placeholder for easier customization. -->
295 <!-- You can override this target in the ../build.xml file. -->
297 <target name="-pre-nbmodule-run-deploy">
298 <!-- Empty placeholder for easier customization. -->
299 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
301 <target name="-post-nbmodule-run-deploy">
302 <!-- Empty placeholder for easier customization. -->
303 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
305 <target name="-run-deploy-am" unless="no.deps">
306 <!-- Task to deploy to the Access Manager runtime. -->
307 <ant antfile="${project.PizzaService-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
308 <ant antfile="${project.jcore-ee-logger}/build.xml" inheritall="false" target="-run-deploy-am"/>
309 <ant antfile="${project.jshop-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
311 <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"/>
312 <target if="netbeans.home" name="-run-deploy-nb">
313 <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
315 <target name="-init-deploy-ant" unless="netbeans.home">
316 <property name="deploy.ant.archive" value="${dist.jar}"/>
317 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
318 <property name="deploy.ant.enabled" value="true"/>
320 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
321 <target if="netbeans.home" name="-run-undeploy-nb">
322 <fail message="Undeploy is not supported from within the IDE"/>
324 <target depends="dist" name="verify">
325 <nbverify file="${dist.jar}"/>
327 <target depends="run-deploy,-init-display-browser,-display-browser-nb-old,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
328 <target if="do.display.browser" name="-init-display-browser">
329 <condition property="do.display.browser.nb.old">
331 <isset property="netbeans.home"/>
333 <isset property="browser.context"/>
337 <condition property="do.display.browser.nb">
339 <isset property="netbeans.home"/>
340 <isset property="browser.context"/>
343 <condition property="do.display.browser.cl">
345 <isset property="deploy.ant.enabled"/>
346 <isset property="deploy.ant.client.url"/>
350 <target if="do.display.browser.nb.old" name="-display-browser-nb-old">
351 <nbbrowse url="${client.url}"/>
353 <target if="do.display.browser.nb" name="-display-browser-nb">
354 <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/>
356 <target if="do.display.browser.cl" name="-get-browser" unless="browser">
357 <condition property="browser" value="rundll32">
358 <os family="windows"/>
360 <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
361 <os family="windows"/>
363 <condition property="browser" value="/usr/bin/open">
366 <property environment="env"/>
367 <condition property="browser" value="${env.BROWSER}">
368 <isset property="env.BROWSER"/>
370 <condition property="browser" value="/usr/bin/firefox">
371 <available file="/usr/bin/firefox"/>
373 <condition property="browser" value="/usr/local/firefox/firefox">
374 <available file="/usr/local/firefox/firefox"/>
376 <condition property="browser" value="/usr/bin/mozilla">
377 <available file="/usr/bin/mozilla"/>
379 <condition property="browser" value="/usr/local/mozilla/mozilla">
380 <available file="/usr/local/mozilla/mozilla"/>
382 <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
383 <available file="/usr/sfw/lib/firefox/firefox"/>
385 <condition property="browser" value="/opt/csw/bin/firefox">
386 <available file="/opt/csw/bin/firefox"/>
388 <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
389 <available file="/usr/sfw/lib/mozilla/mozilla"/>
391 <condition property="browser" value="/opt/csw/bin/mozilla">
392 <available file="/opt/csw/bin/mozilla"/>
395 <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
396 <fail unless="browser">
397 Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
399 <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
400 <echo>Launching ${browse.url}</echo>
401 <exec executable="${browser}" spawn="true">
402 <arg line="${browser.args} ${browse.url}"/>
405 <target if="app.client" name="run-ac">
406 <antcall target="-run-ac"/>
408 <target depends="init,-as-retrieve-option-workaround,-init-run-macros,-run-appclient-pregfv3,-run-appclient" name="-run-ac"/>
409 <target if="j2ee.appclient.tool.args" name="-run-appclient-pregfv3">
410 <ear2:run-appclient-pregfv3/>
412 <target name="-run-appclient" unless="j2ee.appclient.tool.args">
413 <ear2:run-appclient subprojectname="${app.client}"/>
415 <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
416 <property name="client.jar" value="${dist.dir}/PizzaServiceClient.jar"/>
418 <copy failonerror="false" file="${wa.copy.client.jar.from}/PizzaService/PizzaServiceClient.jar" todir="${dist.dir}"/>
419 <copy failonerror="false" flatten="true" todir="${dist.dir}/">
420 <fileset dir="${wa.copy.client.jar.from}/PizzaService" includes="**/PizzaServiceClient.jar"/>
422 <copy flatten="true" todir="${dist.dir}/PizzaServiceClient">
423 <fileset dir="${wa.copy.client.jar.from}/PizzaService" includes="**/*.*ar"/>
425 <copy failonerror="false" flatten="false" todir="${dist.dir}/PizzaServiceClient">
426 <fileset dir="${dist.dir}/gfdeploy/PizzaService" includes="**/*.jar"/>
429 <target depends="init" name="-init-run-macros">
430 <macrodef name="run-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
431 <attribute name="subprojectname"/>
432 <attribute default="${application.args.param}" name="args"/>
433 <element name="customize" optional="true"/>
435 <java dir="${basedir}" fork="true" jar="${client.jar}">
436 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
437 <jvmarg line="${j2ee.appclient.tool.jvmoptions}${client.jar},arg=-name,arg=@{subprojectname}"/>
438 <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
439 <arg line="@{args}"/>
441 <propertyref prefix="run-sys-prop."/>
442 <mapper from="run-sys-prop.*" to="*" type="glob"/>
448 <macrodef name="run-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
449 <element name="customize" optional="true"/>
451 <java classname="${j2ee.appclient.tool.mainclass}" fork="true">
452 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
453 <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
454 <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
455 <arg line="${j2ee.appclient.tool.args}"/>
456 <arg line="-client ${client.jar}"/>
457 <arg line="${j2ee.appclient.mainclass.tool.param}"/>
458 <arg line="${application.args.param}"/>
460 <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
463 <propertyref prefix="run-sys-prop."/>
464 <mapper from="run-sys-prop.*" to="*" type="glob"/>
474 <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
475 <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
476 <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
477 <antcall target="connect-debugger"/>
478 <antcall target="debug-display-browser-old"/>
479 <antcall target="debug-display-browser"/>
481 <target name="connect-debugger" unless="is.debugged">
482 <condition property="listeningcp" value="sourcepath">
483 <istrue value="${j2ee.compile.on.save}"/>
485 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${jpda.host}:${jpda.address}" transport="${jpda.transport}">
487 <path path="${debug.classpath}"/>
488 <fileset dir="${build.dir}" includes="lib/*.jar"/>
491 <path path="${ear.docbase.dirs}"/>
495 <target if="do.display.browser.old" name="debug-display-browser-old">
496 <nbbrowse url="${client.url}"/>
498 <target if="do.display.browser" name="debug-display-browser">
499 <nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/>
501 <target if="can.debug.appclient" name="run-debug-appclient">
502 <antcall target="-run-debug-appclient"/>
504 <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"/>
505 <target name="-init-debug-args">
506 <property name="version-output" value="java version "${ant.java.version}"/>
507 <condition property="have-jdk-older-than-1.4">
509 <contains string="${version-output}" substring="java version "1.0"/>
510 <contains string="${version-output}" substring="java version "1.1"/>
511 <contains string="${version-output}" substring="java version "1.2"/>
512 <contains string="${version-output}" substring="java version "1.3"/>
515 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
516 <istrue value="${have-jdk-older-than-1.4}"/>
519 <target depends="init,-init-debug-args,-as-retrieve-option-workaround,-init-run-macros" name="-init-debug-macros">
520 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
521 <os family="windows"/>
523 <condition else="${debug-transport-by-os}" property="debug-transport-appclient" value="${debug.transport}">
524 <isset property="debug.transport"/>
526 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
527 <attribute default="${main.class}" name="name"/>
528 <attribute default="${debug.classpath}" name="classpath"/>
529 <attribute default="" name="stopclassname"/>
531 <nbjpdastart addressproperty="jpda.address.appclient" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport-appclient}">
533 <path path="@{classpath}"/>
538 <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
539 <attribute name="subprojectname"/>
541 <ear2:run-appclient subprojectname="@{subprojectname}">
543 <jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
544 <jvmarg line="${debug-args-line}"/>
546 </ear2:run-appclient>
549 <macrodef name="debug-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
551 <ear2:run-appclient-pregfv3>
553 <jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
554 <jvmarg line="${debug-args-line}"/>
556 </ear2:run-appclient-pregfv3>
560 <target name="-debug-appclient-deploy">
561 <nbstartserver debugmode="true"/>
562 <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
564 <target name="-debug-appclient-start-nbjpda">
565 <ear2:nbjpdastart classpath="" name="${app.client}"/>
567 <target if="j2ee.appclient.tool.args" name="-debug-appclient-pregfv3">
568 <ear2:debug-appclient-pregfv3/>
570 <target name="-debug-appclient" unless="j2ee.appclient.tool.args">
571 <ear2:debug-appclient subprojectname="${app.client}"/>
579 pre NB7.2 profiling section; consider it deprecated
581 <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
582 <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
583 <isset property="profiler.info.jvmargs.extra"/>
585 <antcall target="${profiler.startserver.target}"/>
586 <antcall target="run"/>
587 <antcall target="-profile-start-loadgen"/>
589 <target name="start-profiled-server">
590 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
591 <jvmarg value="${profiler.info.jvmargs.agent}"/>
592 <jvmarg value="${profiler.j2ee.agentID}"/>
593 </nbstartprofiledserver>
595 <target name="start-profiled-server-extraargs">
596 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
597 <jvmarg value="${profiler.info.jvmargs.extra}"/>
598 <jvmarg value="${profiler.info.jvmargs.agent}"/>
599 <jvmarg value="${profiler.j2ee.agentID}"/>
600 </nbstartprofiledserver>
603 end of pre NB7.2 profiling section
605 <target if="netbeans.home" name="-profile-check">
606 <condition property="profiler.configured">
608 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
609 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
613 <target depends="dist" name="-do-profile">
615 <nbstartserver profilemode="true"/>
616 <nbdeploy clientUrlPart="${client.urlPart}" forceRedeploy="true" profilemode="true"/>
617 <antcall target="-profile-start-loadgen"/>
619 <target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile">
620 <antcall target="-do-profile"/>
622 <target if="profiler.loadgen.path" name="-profile-start-loadgen">
623 <loadgenstart path="${profiler.loadgen.path}"/>
628 <target depends="init" name="deps-clean" unless="no.deps">
629 <condition property="build.deploy.on.save" value="false">
631 <isset property="build.deploy.on.save"/>
634 <ant antfile="${project.PizzaService-ejb}/build.xml" inheritall="false" target="clean-ear">
635 <property location="${build.dir}" name="dist.ear.dir"/>
636 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
638 <ant antfile="${project.jcore-ee-logger}/build.xml" inheritall="false" target="clean-ear">
639 <property location="${build.dir}" name="dist.ear.dir"/>
640 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
642 <ant antfile="${project.jshop-ejb}/build.xml" inheritall="false" target="clean-ear">
643 <property location="${build.dir}" name="dist.ear.dir"/>
644 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
647 <target depends="init" name="do-clean">
648 <delete dir="${build.dir}"/>
649 <delete dir="${dist.dir}"/>
650 <delete dir="${build.dir}"/>
652 <target depends="init" if="netbeans.home" name="undeploy-clean">
653 <nbundeploy failOnError="false" startServer="false"/>
655 <target name="post-clean">
656 <!-- Empty placeholder for easier customization. -->
657 <!-- You can override this target in the ../build.xml file. -->
659 <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>