java/nekurak.net-ear/nbproject/build-impl.xml
author František Kučera <franta-hg@frantovo.cz>
Tue Apr 23 21:43:37 2013 +0200 (2013-04-23)
changeset 204 bebec432330a
parent 186 b0f7d9ab4a07
permissions -rw-r--r--
oprava chatu, tabulátory
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 *** GENERATED FROM project.xml - DO NOT EDIT  ***
     4 ***         EDIT ../build.xml INSTEAD         ***
     5 
     6 For the purpose of easier reading the script
     7 is divided into following sections:
     8 
     9   - initialization
    10   - compilation
    11   - dist
    12   - execution
    13   - debugging
    14   - cleanup
    15 
    16 -->
    17 <project xmlns:ear2="http://www.netbeans.org/ns/j2ee-earproject/2" basedir=".." default="default" name="nekurak.net-ear-impl">
    18 	<import file="ant-deploy.xml"/>
    19 	<fail message="Please build using Ant 1.7.1 or higher.">
    20 		<condition>
    21 			<not>
    22 				<antversion atleast="1.7.1"/>
    23 			</not>
    24 		</condition>
    25 	</fail>
    26 	<target depends="dist" description="Build whole project." name="default"/>
    27     <!-- 
    28     INITIALIZATION SECTION 
    29     -->
    30 	<target name="pre-init">
    31         <!-- Empty placeholder for easier customization. -->
    32         <!-- You can override this target in the ../build.xml file. -->
    33 	</target>
    34 	<target depends="pre-init" name="init-private">
    35 		<property file="nbproject/private/private.properties"/>
    36 	</target>
    37 	<target depends="pre-init,init-private" name="init-userdir">
    38 		<property location="${netbeans.user}/build.properties" name="user.properties.file"/>
    39 	</target>
    40 	<target depends="pre-init,init-private,init-userdir" name="init-user">
    41 		<property file="${user.properties.file}"/>
    42 	</target>
    43 	<target depends="pre-init,init-private,init-userdir,init-user" name="init-project">
    44 		<property file="nbproject/project.properties"/>
    45 	</target>
    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}"/>
    53 		</condition>
    54 		<condition property="do.display.browser">
    55 			<and>
    56 				<istrue value="${display.browser}"/>
    57 				<isset property="client.module.uri"/>
    58 				<not>
    59 					<isset property="app.client"/>
    60 				</not>
    61 			</and>
    62 		</condition>
    63 		<available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
    64         <!--
    65                     Variables needed to support directory deployment.
    66                 -->
    67 		<condition property="do.package.with.custom.manifest.not.directory.deploy">
    68 			<and>
    69 				<isset property="has.custom.manifest"/>
    70 				<isfalse value="${directory.deployment.supported}"/>
    71 			</and>
    72 		</condition>
    73 		<condition property="do.package.without.custom.manifest.not.directory.deploy">
    74 			<and>
    75 				<not>
    76 					<isset property="has.custom.manifest"/>
    77 				</not>
    78 				<isfalse value="${directory.deployment.supported}"/>
    79 			</and>
    80 		</condition>
    81 		<condition property="do.package.not.directory.deploy">
    82 			<isfalse value="${directory.deployment.supported}"/>
    83 		</condition>
    84         <!--End Variables needed to support directory deployment.-->
    85 		<condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
    86 			<and>
    87 				<isset property="main.class"/>
    88 				<not>
    89 					<equals arg1="${main.class}" arg2="" trim="true"/>
    90 				</not>
    91 			</and>
    92 		</condition>
    93 		<condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
    94 			<and>
    95 				<isset property="j2ee.appclient.jvmoptions"/>
    96 				<not>
    97 					<equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
    98 				</not>
    99 			</and>
   100 		</condition>
   101 		<condition else="" property="application.args.param" value="${application.args}">
   102 			<and>
   103 				<isset property="application.args"/>
   104 				<not>
   105 					<equals arg1="${application.args}" arg2="" trim="true"/>
   106 				</not>
   107 			</and>
   108 		</condition>
   109 		<condition property="can.debug.appclient">
   110 			<and>
   111 				<isset property="netbeans.home"/>
   112 				<isset property="app.client"/>
   113 			</and>
   114 		</condition>
   115 		<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
   116 		<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
   117 			<and>
   118 				<isset property="endorsed.classpath"/>
   119 				<length length="0" string="${endorsed.classpath}" when="greater"/>
   120 			</and>
   121 		</condition>
   122 	</target>
   123 	<target depends="init" name="-init-cos">
   124 		<condition else="false" property="build.deploy.on.save">
   125 			<istrue value="${j2ee.deploy.on.save}"/>
   126 		</condition>
   127 	</target>
   128 	<target name="post-init">
   129         <!-- Empty placeholder for easier customization. -->
   130         <!-- You can override this target in the ../build.xml file. -->
   131 	</target>
   132 	<target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
   133 		<fail unless="build.dir">Must set build.dir</fail>
   134 		<fail unless="build.generated.dir">Must set build.generated.dir</fail>
   135 		<fail unless="dist.dir">Must set dist.dir</fail>
   136 		<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
   137 		<fail unless="dist.jar">Must set dist.jar</fail>
   138 	</target>
   139 	<target name="-init-taskdefs">
   140 		<fail unless="libs.CopyLibs.classpath">
   141 The libs.CopyLibs.classpath property is not set up.
   142 This property must point to 
   143 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
   144 of NetBeans IDE installation and is usually located at 
   145 &lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
   146 Either open the project in the IDE and make sure CopyLibs library
   147 exists or setup the property manually. For example like this:
   148  ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
   149 		</fail>
   150 		<taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
   151 	</target>
   152 	<target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" name="profile-init"/>
   153 	<target name="-profile-pre-init">
   154         <!-- Empty placeholder for easier customization. -->
   155         <!-- You can override this target in the ../build.xml file. -->
   156 	</target>
   157 	<target name="-profile-post-init">
   158         <!-- Empty placeholder for easier customization. -->
   159         <!-- You can override this target in the ../build.xml file. -->
   160 	</target>
   161 	<target depends="-profile-pre-init, init, -profile-post-init" name="-profile-init-check">
   162 		<fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
   163 		<fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
   164 	</target>
   165 	<target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
   166     <!--
   167     COMPILATION SECTION
   168     -->
   169 	<target depends="init" name="deps-jar" unless="no.deps"/>
   170 	<target depends="init" name="deps-j2ee-archive" unless="no.deps">
   171 		<condition property="build.deploy.on.save" value="false">
   172 			<not>
   173 				<isset property="build.deploy.on.save"/>
   174 			</not>
   175 		</condition>
   176 		<ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="dist-ear">
   177 			<property location="${build.dir}" name="dist.ear.dir"/>
   178 			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
   179 		</ant>
   180 		<condition property="build.deploy.on.save" value="false">
   181 			<not>
   182 				<isset property="build.deploy.on.save"/>
   183 			</not>
   184 		</condition>
   185 		<condition property="build.deploy.on.save" value="false">
   186 			<not>
   187 				<isset property="build.deploy.on.save"/>
   188 			</not>
   189 		</condition>
   190 		<ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="dist-ear">
   191 			<property location="${build.dir}" name="dist.ear.dir"/>
   192 			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
   193 		</ant>
   194 		<condition property="build.deploy.on.save" value="false">
   195 			<not>
   196 				<isset property="build.deploy.on.save"/>
   197 			</not>
   198 		</condition>
   199 	</target>
   200 	<target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
   201 	<target name="pre-compile">
   202         <!-- Empty placeholder for easier customization. -->
   203         <!-- You can override this target in the ../build.xml file. -->
   204 	</target>
   205 	<target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
   206 		<copy todir="${build.dir}/META-INF">
   207 			<fileset dir="${meta.inf}"/>
   208 		</copy>
   209 	</target>
   210 	<target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
   211 		<copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
   212 		<copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
   213 	</target>
   214 	<target name="post-compile">
   215         <!-- Empty placeholder for easier customization. -->
   216         <!-- You can override this target in the ../build.xml file. -->
   217 	</target>
   218 	<target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
   219     <!--
   220                 DIST BUILDING SECTION
   221             -->
   222 	<target name="pre-dist">
   223         <!-- Empty placeholder for easier customization. -->
   224         <!-- You can override this target in the ../build.xml file. -->
   225 	</target>
   226 	<target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
   227 		<dirname file="${dist.jar}" property="dist.jar.dir"/>
   228 		<mkdir dir="${dist.jar.dir}"/>
   229 		<jar compress="${jar.compress}" jarfile="${dist.jar}">
   230 			<fileset dir="${build.dir}"/>
   231 		</jar>
   232 	</target>
   233 	<target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
   234 		<dirname file="${dist.jar}" property="dist.jar.dir"/>
   235 		<mkdir dir="${dist.jar.dir}"/>
   236 		<jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
   237 			<fileset dir="${build.dir}"/>
   238 		</jar>
   239 	</target>
   240     <!--
   241                 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   242             -->
   243 	<target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
   244 		<dirname file="${dist.jar}" property="dist.jar.dir"/>
   245 		<mkdir dir="${dist.jar.dir}"/>
   246 		<jar compress="${jar.compress}" jarfile="${dist.jar}">
   247 			<fileset dir="${build.dir}"/>
   248 		</jar>
   249 	</target>
   250 	<target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
   251 		<dirname file="${dist.jar}" property="dist.jar.dir"/>
   252 		<mkdir dir="${dist.jar.dir}"/>
   253 		<jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
   254 			<fileset dir="${build.dir}"/>
   255 		</jar>
   256 	</target>
   257 	<target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
   258 	<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"/>
   259     <!--
   260                 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
   261             -->
   262 	<target name="post-dist">
   263         <!-- Empty placeholder for easier customization. -->
   264         <!-- You can override this target in the ../build.xml file. -->
   265 	</target>
   266 	<target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
   267     <!--
   268     EXECUTION SECTION
   269     -->
   270 	<target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
   271 	<target name="pre-run-deploy">
   272         <!-- Empty placeholder for easier customization. -->
   273         <!-- You can override this target in the ../build.xml file. -->
   274 	</target>
   275 	<target name="post-run-deploy">
   276         <!-- Empty placeholder for easier customization. -->
   277         <!-- You can override this target in the ../build.xml file. -->
   278 	</target>
   279 	<target name="-pre-nbmodule-run-deploy">
   280         <!-- Empty placeholder for easier customization. -->
   281         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
   282 	</target>
   283 	<target name="-post-nbmodule-run-deploy">
   284         <!-- Empty placeholder for easier customization. -->
   285         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
   286 	</target>
   287 	<target name="-run-deploy-am" unless="no.deps">
   288         <!-- Task to deploy to the Access Manager runtime. -->
   289 		<ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
   290 		<ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
   291 	</target>
   292 	<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"/>
   293 	<target if="netbeans.home" name="-run-deploy-nb">
   294 		<nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
   295 	</target>
   296 	<target name="-init-deploy-ant" unless="netbeans.home">
   297 		<property name="deploy.ant.archive" value="${dist.jar}"/>
   298 		<property name="deploy.ant.resource.dir" value="${resource.dir}"/>
   299 		<property name="deploy.ant.enabled" value="true"/>
   300 	</target>
   301 	<target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
   302 	<target if="netbeans.home" name="-run-undeploy-nb">
   303 		<fail message="Undeploy is not supported from within the IDE"/>
   304 	</target>
   305 	<target depends="dist" name="verify">
   306 		<nbverify file="${dist.jar}"/>
   307 	</target>
   308 	<target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
   309 	<target if="do.display.browser" name="-init-display-browser">
   310 		<condition property="do.display.browser.nb">
   311 			<isset property="netbeans.home"/>
   312 		</condition>
   313 		<condition property="do.display.browser.cl">
   314 			<and>
   315 				<isset property="deploy.ant.enabled"/>
   316 				<isset property="deploy.ant.client.url"/>
   317 			</and>
   318 		</condition>
   319 	</target>
   320 	<target if="do.display.browser.nb" name="-display-browser-nb">
   321 		<nbbrowse url="${client.url}"/>
   322 	</target>
   323 	<target if="do.display.browser.cl" name="-get-browser" unless="browser">
   324 		<condition property="browser" value="rundll32">
   325 			<os family="windows"/>
   326 		</condition>
   327 		<condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
   328 			<os family="windows"/>
   329 		</condition>
   330 		<condition property="browser" value="/usr/bin/open">
   331 			<os family="mac"/>
   332 		</condition>
   333 		<property environment="env"/>
   334 		<condition property="browser" value="${env.BROWSER}">
   335 			<isset property="env.BROWSER"/>
   336 		</condition>
   337 		<condition property="browser" value="/usr/bin/firefox">
   338 			<available file="/usr/bin/firefox"/>
   339 		</condition>
   340 		<condition property="browser" value="/usr/local/firefox/firefox">
   341 			<available file="/usr/local/firefox/firefox"/>
   342 		</condition>
   343 		<condition property="browser" value="/usr/bin/mozilla">
   344 			<available file="/usr/bin/mozilla"/>
   345 		</condition>
   346 		<condition property="browser" value="/usr/local/mozilla/mozilla">
   347 			<available file="/usr/local/mozilla/mozilla"/>
   348 		</condition>
   349 		<condition property="browser" value="/usr/sfw/lib/firefox/firefox">
   350 			<available file="/usr/sfw/lib/firefox/firefox"/>
   351 		</condition>
   352 		<condition property="browser" value="/opt/csw/bin/firefox">
   353 			<available file="/opt/csw/bin/firefox"/>
   354 		</condition>
   355 		<condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
   356 			<available file="/usr/sfw/lib/mozilla/mozilla"/>
   357 		</condition>
   358 		<condition property="browser" value="/opt/csw/bin/mozilla">
   359 			<available file="/opt/csw/bin/mozilla"/>
   360 		</condition>
   361 	</target>
   362 	<target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
   363 		<fail unless="browser">
   364             Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
   365 		</fail>
   366 		<property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
   367 		<echo>Launching ${browse.url}</echo>
   368 		<exec executable="${browser}" spawn="true">
   369 			<arg line="${browser.args} ${browse.url}"/>
   370 		</exec>
   371 	</target>
   372 	<target if="app.client" name="run-ac">
   373 		<antcall target="-run-ac"/>
   374 	</target>
   375 	<target depends="init,-as-retrieve-option-workaround,-init-run-macros,-run-appclient-pregfv3,-run-appclient" name="-run-ac"/>
   376 	<target if="j2ee.appclient.tool.args" name="-run-appclient-pregfv3">
   377 		<ear2:run-appclient-pregfv3/>
   378 	</target>
   379 	<target name="-run-appclient" unless="j2ee.appclient.tool.args">
   380 		<ear2:run-appclient subprojectname="${app.client}"/>
   381 	</target>
   382 	<target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
   383 		<property name="client.jar" value="${dist.dir}/nekurak.net-earClient.jar"/>
   384 		<sleep seconds="3"/>
   385 		<copy failonerror="false" file="${wa.copy.client.jar.from}/nekurak.net-ear/nekurak.net-earClient.jar" todir="${dist.dir}"/>
   386 		<copy failonerror="false" flatten="true" todir="${dist.dir}/">
   387 			<fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/nekurak.net-earClient.jar"/>
   388 		</copy>
   389 		<copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
   390 			<fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
   391 		</copy>
   392 		<copy failonerror="false" flatten="false" todir="${dist.dir}/nekurak.net-earClient">
   393 			<fileset dir="${dist.dir}/gfdeploy/nekurak.net-ear" includes="**/*.jar"/>
   394 		</copy>
   395 	</target>
   396 	<target depends="init" name="-init-run-macros">
   397 		<macrodef name="run-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   398 			<attribute name="subprojectname"/>
   399 			<attribute default="${application.args.param}" name="args"/>
   400 			<element name="customize" optional="true"/>
   401 			<sequential>
   402 				<java dir="${basedir}" fork="true" jar="${client.jar}">
   403 					<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   404 					<jvmarg line="${j2ee.appclient.tool.jvmoptions}${client.jar},arg=-name,arg=@{subprojectname}"/>
   405 					<jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
   406 					<arg line="@{args}"/>
   407 					<syspropertyset>
   408 						<propertyref prefix="run-sys-prop."/>
   409 						<mapper from="run-sys-prop.*" to="*" type="glob"/>
   410 					</syspropertyset>
   411 					<customize/>
   412 				</java>
   413 			</sequential>
   414 		</macrodef>
   415 		<macrodef name="run-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   416 			<element name="customize" optional="true"/>
   417 			<sequential>
   418 				<java classname="${j2ee.appclient.tool.mainclass}" fork="true">
   419 					<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
   420 					<jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
   421 					<jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
   422 					<arg line="${j2ee.appclient.tool.args}"/>
   423 					<arg line="-client ${client.jar}"/>
   424 					<arg line="${j2ee.appclient.mainclass.tool.param}"/>
   425 					<arg line="${application.args.param}"/>
   426 					<classpath>
   427 						<path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
   428 					</classpath>
   429 					<syspropertyset>
   430 						<propertyref prefix="run-sys-prop."/>
   431 						<mapper from="run-sys-prop.*" to="*" type="glob"/>
   432 					</syspropertyset>
   433 					<customize/>
   434 				</java>
   435 			</sequential>
   436 		</macrodef>
   437 	</target>
   438     <!--
   439     DEBUGGING SECTION
   440     -->
   441 	<target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
   442 	<target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
   443 		<nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
   444 		<antcall target="connect-debugger"/>
   445 		<antcall target="debug-display-browser"/>
   446 	</target>
   447 	<target name="connect-debugger" unless="is.debugged">
   448 		<nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${jpda.host}:${jpda.address}" transport="${jpda.transport}">
   449 			<classpath>
   450 				<path path="${debug.classpath}"/>
   451 				<fileset dir="${build.dir}" includes="lib/*.jar"/>
   452 			</classpath>
   453 			<sourcepath>
   454 				<path path="${ear.docbase.dirs}"/>
   455 			</sourcepath>
   456 		</nbjpdaconnect>
   457 	</target>
   458 	<target if="do.display.browser" name="debug-display-browser">
   459 		<nbbrowse url="${client.url}"/>
   460 	</target>
   461 	<target if="can.debug.appclient" name="run-debug-appclient">
   462 		<antcall target="-run-debug-appclient"/>
   463 	</target>
   464 	<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"/>
   465 	<target name="-init-debug-args">
   466 		<property name="version-output" value="java version &quot;${ant.java.version}"/>
   467 		<condition property="have-jdk-older-than-1.4">
   468 			<or>
   469 				<contains string="${version-output}" substring="java version &quot;1.0"/>
   470 				<contains string="${version-output}" substring="java version &quot;1.1"/>
   471 				<contains string="${version-output}" substring="java version &quot;1.2"/>
   472 				<contains string="${version-output}" substring="java version &quot;1.3"/>
   473 			</or>
   474 		</condition>
   475 		<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   476 			<istrue value="${have-jdk-older-than-1.4}"/>
   477 		</condition>
   478 	</target>
   479 	<target depends="init,-init-debug-args,-as-retrieve-option-workaround,-init-run-macros" name="-init-debug-macros">
   480 		<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
   481 			<os family="windows"/>
   482 		</condition>
   483 		<condition else="${debug-transport-by-os}" property="debug-transport-appclient" value="${debug.transport}">
   484 			<isset property="debug.transport"/>
   485 		</condition>
   486 		<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   487 			<attribute default="${main.class}" name="name"/>
   488 			<attribute default="${debug.classpath}" name="classpath"/>
   489 			<attribute default="" name="stopclassname"/>
   490 			<sequential>
   491 				<nbjpdastart addressproperty="jpda.address.appclient" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport-appclient}">
   492 					<classpath>
   493 						<path path="@{classpath}"/>
   494 					</classpath>
   495 				</nbjpdastart>
   496 			</sequential>
   497 		</macrodef>
   498 		<macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   499 			<attribute name="subprojectname"/>
   500 			<sequential>
   501 				<ear2:run-appclient subprojectname="@{subprojectname}">
   502 					<customize>
   503 						<jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
   504 						<jvmarg line="${debug-args-line}"/>
   505 					</customize>
   506 				</ear2:run-appclient>
   507 			</sequential>
   508 		</macrodef>
   509 		<macrodef name="debug-appclient-pregfv3" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
   510 			<sequential>
   511 				<ear2:run-appclient-pregfv3>
   512 					<customize>
   513 						<jvmarg value="-Xrunjdwp:transport=${debug-transport-appclient},address=${jpda.address.appclient}"/>
   514 						<jvmarg line="${debug-args-line}"/>
   515 					</customize>
   516 				</ear2:run-appclient-pregfv3>
   517 			</sequential>
   518 		</macrodef>
   519 	</target>
   520 	<target name="-debug-appclient-deploy">
   521 		<nbstartserver debugmode="true"/>
   522 		<nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
   523 	</target>
   524 	<target name="-debug-appclient-start-nbjpda">
   525 		<ear2:nbjpdastart classpath="" name="${app.client}"/>
   526 	</target>
   527 	<target if="j2ee.appclient.tool.args" name="-debug-appclient-pregfv3">
   528 		<ear2:debug-appclient-pregfv3/>
   529 	</target>
   530 	<target name="-debug-appclient" unless="j2ee.appclient.tool.args">
   531 		<ear2:debug-appclient subprojectname="${app.client}"/>
   532 	</target>
   533     <!--
   534     =================
   535     PROFILING SECTION
   536     =================
   537     -->
   538 	<target description="Profile a J2EE project in the IDE." name="profile">
   539 		<condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
   540 			<isset property="profiler.info.jvmargs.extra"/>
   541 		</condition>
   542 		<antcall target="${profiler.startserver.target}"/>
   543 		<antcall target="run"/>
   544 		<antcall target="start-loadgen"/>
   545 	</target>
   546 	<target name="start-profiled-server">
   547 		<nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
   548 			<jvmarg value="${profiler.info.jvmargs.agent}"/>
   549 			<jvmarg value="${profiler.j2ee.agentID}"/>
   550 		</nbstartprofiledserver>
   551 	</target>
   552 	<target name="start-profiled-server-extraargs">
   553 		<nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
   554 			<jvmarg value="${profiler.info.jvmargs.extra}"/>
   555 			<jvmarg value="${profiler.info.jvmargs.agent}"/>
   556 			<jvmarg value="${profiler.j2ee.agentID}"/>
   557 		</nbstartprofiledserver>
   558 	</target>
   559 	<target if="profiler.loadgen.path" name="start-loadgen">
   560 		<loadgenstart path="${profiler.loadgen.path}"/>
   561 	</target>
   562     <!--
   563     CLEANUP SECTION
   564     -->
   565 	<target depends="init" name="deps-clean" unless="no.deps">
   566 		<condition property="build.deploy.on.save" value="false">
   567 			<not>
   568 				<isset property="build.deploy.on.save"/>
   569 			</not>
   570 		</condition>
   571 		<ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="clean-ear">
   572 			<property location="${build.dir}" name="dist.ear.dir"/>
   573 			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
   574 		</ant>
   575 		<condition property="build.deploy.on.save" value="false">
   576 			<not>
   577 				<isset property="build.deploy.on.save"/>
   578 			</not>
   579 		</condition>
   580 		<condition property="build.deploy.on.save" value="false">
   581 			<not>
   582 				<isset property="build.deploy.on.save"/>
   583 			</not>
   584 		</condition>
   585 		<ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="clean-ear">
   586 			<property location="${build.dir}" name="dist.ear.dir"/>
   587 			<property name="deploy.on.save" value="${build.deploy.on.save}"/>
   588 		</ant>
   589 		<condition property="build.deploy.on.save" value="false">
   590 			<not>
   591 				<isset property="build.deploy.on.save"/>
   592 			</not>
   593 		</condition>
   594 	</target>
   595 	<target depends="init" name="do-clean">
   596 		<delete dir="${build.dir}"/>
   597 		<delete dir="${dist.dir}"/>
   598 		<delete dir="${build.dir}"/>
   599 	</target>
   600 	<target depends="init" if="netbeans.home" name="undeploy-clean">
   601 		<nbundeploy failOnError="false" startServer="false"/>
   602 	</target>
   603 	<target name="post-clean">
   604         <!-- Empty placeholder for easier customization. -->
   605         <!-- You can override this target in the ../build.xml file. -->
   606 	</target>
   607 	<target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>
   608 </project>