Added tag 11. díl for changeset 9f6225d83611
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="nekurak.net-ear-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">
56 <istrue value="${display.browser}"/>
57 <isset property="client.module.uri"/>
59 <isset property="app.client"/>
63 <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
65 Variables needed to support directory deployment.
67 <condition property="do.package.with.custom.manifest.not.directory.deploy">
69 <isset property="has.custom.manifest"/>
70 <isfalse value="${directory.deployment.supported}"/>
73 <condition property="do.package.without.custom.manifest.not.directory.deploy">
76 <isset property="has.custom.manifest"/>
78 <isfalse value="${directory.deployment.supported}"/>
81 <condition property="do.package.not.directory.deploy">
82 <isfalse value="${directory.deployment.supported}"/>
84 <!--End Variables needed to support directory deployment.-->
85 <condition else="" property="j2ee.appclient.mainclass.tool.param" value="-mainclass ${main.class}">
87 <isset property="main.class"/>
89 <equals arg1="${main.class}" arg2="" trim="true"/>
93 <condition else="" property="j2ee.appclient.jvmoptions.param" value="${j2ee.appclient.jvmoptions}">
95 <isset property="j2ee.appclient.jvmoptions"/>
97 <equals arg1="${j2ee.appclient.jvmoptions}" arg2="" trim="true"/>
101 <condition else="" property="application.args.param" value="${application.args}">
103 <isset property="application.args"/>
105 <equals arg1="${application.args}" arg2="" trim="true"/>
109 <condition property="can.debug.appclient">
111 <isset property="netbeans.home"/>
112 <isset property="app.client"/>
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 <length length="0" string="${endorsed.classpath}" when="greater"/>
120 <target depends="init" name="-init-cos">
121 <condition else="false" property="build.deploy.on.save">
122 <istrue value="${j2ee.deploy.on.save}"/>
125 <target name="post-init">
126 <!-- Empty placeholder for easier customization. -->
127 <!-- You can override this target in the ../build.xml file. -->
129 <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init" name="init-check">
130 <fail unless="build.dir">Must set build.dir</fail>
131 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
132 <fail unless="dist.dir">Must set dist.dir</fail>
133 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
134 <fail unless="dist.jar">Must set dist.jar</fail>
136 <target name="-init-taskdefs">
137 <fail unless="libs.CopyLibs.classpath">
138 The libs.CopyLibs.classpath property is not set up.
139 This property must point to
140 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
141 of NetBeans IDE installation and is usually located at
142 <netbeans_installation>/java<version>/ant/extra folder.
143 Either open the project in the IDE and make sure CopyLibs library
144 exists or setup the property manually. For example like this:
145 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
147 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
149 <target depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs" name="init"/>
153 <target depends="init" name="deps-jar" unless="no.deps"/>
154 <target depends="init" name="deps-j2ee-archive" unless="no.deps">
155 <condition property="build.deploy.on.save" value="false">
157 <isset property="build.deploy.on.save"/>
160 <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="dist-ear">
161 <property location="${build.dir}" name="dist.ear.dir"/>
162 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
164 <condition property="build.deploy.on.save" value="false">
166 <isset property="build.deploy.on.save"/>
169 <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="dist-ear">
170 <property location="${build.dir}" name="dist.ear.dir"/>
171 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
173 <condition property="build.deploy.on.save" value="false">
175 <isset property="build.deploy.on.save"/>
178 <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="dist-ear">
179 <property location="${build.dir}" name="dist.ear.dir"/>
180 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
183 <target depends="init,deps-jar,deps-j2ee-archive" name="pre-pre-compile"/>
184 <target name="pre-compile">
185 <!-- Empty placeholder for easier customization. -->
186 <!-- You can override this target in the ../build.xml file. -->
188 <target depends="init,deps-jar,pre-pre-compile,pre-compile,-do-compile-deps" name="do-compile">
189 <copy todir="${build.dir}/META-INF">
190 <fileset dir="${meta.inf}"/>
193 <target depends="init,deps-jar,pre-pre-compile,pre-compile" name="-do-compile-deps">
194 <copyfiles files="${reference.nekurak_net-web.dist-ear}" todir="${build.dir}//"/>
195 <copyfiles files="${reference.nekurak_net-ejb.dist-ear}" todir="${build.dir}//"/>
196 <copyfiles files="${reference.nekurak_net-rest.dist-ear}" todir="${build.dir}//"/>
198 <target name="post-compile">
199 <!-- Empty placeholder for easier customization. -->
200 <!-- You can override this target in the ../build.xml file. -->
202 <target depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project." name="compile"/>
204 DIST BUILDING SECTION
206 <target name="pre-dist">
207 <!-- Empty placeholder for easier customization. -->
208 <!-- You can override this target in the ../build.xml file. -->
210 <target depends="init,compile,pre-dist" name="do-dist-without-manifest" unless="has.custom.manifest">
211 <dirname file="${dist.jar}" property="dist.jar.dir"/>
212 <mkdir dir="${dist.jar.dir}"/>
213 <jar compress="${jar.compress}" jarfile="${dist.jar}">
214 <fileset dir="${build.dir}"/>
217 <target depends="init,compile,pre-dist" if="has.custom.manifest" name="do-dist-with-manifest">
218 <dirname file="${dist.jar}" property="dist.jar.dir"/>
219 <mkdir dir="${dist.jar.dir}"/>
220 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
221 <fileset dir="${build.dir}"/>
225 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
227 <target depends="init,compile,pre-dist" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
228 <dirname file="${dist.jar}" property="dist.jar.dir"/>
229 <mkdir dir="${dist.jar.dir}"/>
230 <jar compress="${jar.compress}" jarfile="${dist.jar}">
231 <fileset dir="${build.dir}"/>
234 <target depends="init,compile,pre-dist" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
235 <dirname file="${dist.jar}" property="dist.jar.dir"/>
236 <mkdir dir="${dist.jar.dir}"/>
237 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${meta.inf}/MANIFEST.MF">
238 <fileset dir="${build.dir}"/>
241 <target depends="init,compile,pre-dist,-do-tmp-dist-without-manifest,-do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
242 <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"/>
244 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
246 <target name="post-dist">
247 <!-- Empty placeholder for easier customization. -->
248 <!-- You can override this target in the ../build.xml file. -->
250 <target depends="init,compile,pre-dist,do-dist-without-manifest,do-dist-with-manifest,post-dist" description="Build distribution (JAR)." name="dist"/>
254 <target depends="run-deploy,run-display-browser,run-ac" description="Deploy to server." name="run"/>
255 <target name="pre-run-deploy">
256 <!-- Empty placeholder for easier customization. -->
257 <!-- You can override this target in the ../build.xml file. -->
259 <target name="post-run-deploy">
260 <!-- Empty placeholder for easier customization. -->
261 <!-- You can override this target in the ../build.xml file. -->
263 <target name="-pre-nbmodule-run-deploy">
264 <!-- Empty placeholder for easier customization. -->
265 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
267 <target name="-post-nbmodule-run-deploy">
268 <!-- Empty placeholder for easier customization. -->
269 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
271 <target name="-run-deploy-am" unless="no.deps">
272 <!-- Task to deploy to the Access Manager runtime. -->
273 <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="-run-deploy-am"/>
274 <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="-run-deploy-am"/>
275 <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="-run-deploy-am"/>
277 <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"/>
278 <target if="netbeans.home" name="-run-deploy-nb">
279 <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
281 <target name="-init-deploy-ant" unless="netbeans.home">
282 <property name="deploy.ant.archive" value="${dist.jar}"/>
283 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
284 <property name="deploy.ant.enabled" value="true"/>
286 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
287 <target if="netbeans.home" name="-run-undeploy-nb">
288 <fail message="Undeploy is not supported from within the IDE"/>
290 <target depends="dist" name="verify">
291 <nbverify file="${dist.jar}"/>
293 <target depends="run-deploy,-init-display-browser,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
294 <target if="do.display.browser" name="-init-display-browser">
295 <condition property="do.display.browser.nb">
296 <isset property="netbeans.home"/>
298 <condition property="do.display.browser.cl">
300 <isset property="deploy.ant.enabled"/>
301 <isset property="deploy.ant.client.url"/>
305 <target if="do.display.browser.nb" name="-display-browser-nb">
306 <nbbrowse url="${client.url}"/>
308 <target if="do.display.browser.cl" name="-get-browser" unless="browser">
309 <condition property="browser" value="rundll32">
310 <os family="windows"/>
312 <condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
313 <os family="windows"/>
315 <condition property="browser" value="/usr/bin/open">
318 <property environment="env"/>
319 <condition property="browser" value="${env.BROWSER}">
320 <isset property="env.BROWSER"/>
322 <condition property="browser" value="/usr/bin/firefox">
323 <available file="/usr/bin/firefox"/>
325 <condition property="browser" value="/usr/local/firefox/firefox">
326 <available file="/usr/local/firefox/firefox"/>
328 <condition property="browser" value="/usr/bin/mozilla">
329 <available file="/usr/bin/mozilla"/>
331 <condition property="browser" value="/usr/local/mozilla/mozilla">
332 <available file="/usr/local/mozilla/mozilla"/>
334 <condition property="browser" value="/usr/sfw/lib/firefox/firefox">
335 <available file="/usr/sfw/lib/firefox/firefox"/>
337 <condition property="browser" value="/opt/csw/bin/firefox">
338 <available file="/opt/csw/bin/firefox"/>
340 <condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
341 <available file="/usr/sfw/lib/mozilla/mozilla"/>
343 <condition property="browser" value="/opt/csw/bin/mozilla">
344 <available file="/opt/csw/bin/mozilla"/>
347 <target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
348 <fail unless="browser">
349 Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
351 <property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
352 <echo>Launching ${browse.url}</echo>
353 <exec executable="${browser}" spawn="true">
354 <arg line="${browser.args} ${browse.url}"/>
357 <target depends="init" if="app.client" name="run-ac">
358 <antcall target="run-${app.client}"/>
360 <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround" unless="j2ee.clientName">
361 <property name="client.jar" value="${dist.dir}/nekurak.net-earClient.jar"/>
363 <copy failonerror="false" file="${wa.copy.client.jar.from}/nekurak.net-ear/nekurak.net-earClient.jar" todir="${dist.dir}"/>
364 <copy failonerror="false" flatten="true" todir="${dist.dir}/">
365 <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/nekurak.net-earClient.jar"/>
367 <copy flatten="true" todir="${dist.dir}/nekurak.net-earClient">
368 <fileset dir="${wa.copy.client.jar.from}/nekurak.net-ear" includes="**/*.*ar"/>
370 <copy failonerror="false" flatten="false" todir="${dist.dir}/nekurak.net-earClient">
371 <fileset dir="${dist.dir}/gfdeploy/nekurak.net-ear" includes="**/*.jar"/>
377 <target depends="run-debug,run-debug-appclient" description="Deploy to server." name="debug"/>
378 <target depends="dist" description="Debug project in IDE." if="netbeans.home" name="run-debug" unless="app.client">
379 <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="true"/>
380 <antcall target="connect-debugger"/>
381 <antcall target="debug-display-browser"/>
383 <target name="connect-debugger" unless="is.debugged">
384 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
386 <path path="${debug.classpath}"/>
387 <fileset dir="${build.dir}/lib" includes="*.jar"/>
390 <path path="${ear.docbase.dirs}"/>
394 <target if="do.display.browser" name="debug-display-browser">
395 <nbbrowse url="${client.url}"/>
397 <target name="-init-debug-args">
398 <property name="version-output" value="java version "${ant.java.version}"/>
399 <condition property="have-jdk-older-than-1.4">
401 <contains string="${version-output}" substring="java version "1.0"/>
402 <contains string="${version-output}" substring="java version "1.1"/>
403 <contains string="${version-output}" substring="java version "1.2"/>
404 <contains string="${version-output}" substring="java version "1.3"/>
407 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
408 <istrue value="${have-jdk-older-than-1.4}"/>
411 <target depends="init,-init-debug-args" if="can.debug.appclient" name="run-debug-appclient">
412 <macrodef name="debug-appclient" uri="http://www.netbeans.org/ns/j2ee-earproject/2">
413 <attribute name="mainclass"/>
414 <attribute default="${debug.classpath}" name="classpath"/>
415 <element name="customize" optional="true"/>
416 <attribute default="${application.args.param}" name="args"/>
419 <java classname="@{mainclass}" fork="true">
420 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
421 <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
422 <jvmarg line="${debug-args-line}"/>
423 <jvmarg value="-Xrunjdwp:transport=${jpda.transport},server=y,address=${jpda.address},suspend=y"/>
424 <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
425 <arg line="@{args}"/>
427 <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
428 <path path="@{classpath}"/>
431 <propertyref prefix="run-sys-prop."/>
432 <mapper from="run-sys-prop.*" to="*" type="glob"/>
436 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
438 <path path="${j2ee.platform.classpath}:${j2ee.appclient.tool.runtime}"/>
439 <path path="@{classpath}"/>
442 <path path="${src.dir}"/>
448 <nbdeploy clientModuleUri="${client.module.uri}" clientUrlPart="${client.urlPart}" debugmode="false"/>
449 <antcall target="debug-${app.client}"/>
454 <target depends="init" name="deps-clean" unless="no.deps">
455 <condition property="build.deploy.on.save" value="false">
457 <isset property="build.deploy.on.save"/>
460 <ant antfile="${project.nekurak_net-ejb}/build.xml" inheritall="false" target="clean-ear">
461 <property location="${build.dir}" name="dist.ear.dir"/>
462 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
464 <condition property="build.deploy.on.save" value="false">
466 <isset property="build.deploy.on.save"/>
469 <ant antfile="${project.nekurak_net-rest}/build.xml" inheritall="false" target="clean-ear">
470 <property location="${build.dir}" name="dist.ear.dir"/>
471 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
473 <condition property="build.deploy.on.save" value="false">
475 <isset property="build.deploy.on.save"/>
478 <ant antfile="${project.nekurak_net-web}/build.xml" inheritall="false" target="clean-ear">
479 <property location="${build.dir}" name="dist.ear.dir"/>
480 <property name="deploy.on.save" value="${build.deploy.on.save}"/>
483 <target depends="init" name="do-clean">
484 <delete dir="${build.dir}"/>
485 <delete dir="${dist.dir}"/>
486 <delete dir="${build.dir}"/>
488 <target depends="init" if="netbeans.home" name="undeploy-clean">
489 <nbundeploy failOnError="false" startServer="false"/>
491 <target name="post-clean">
492 <!-- Empty placeholder for easier customization. -->
493 <!-- You can override this target in the ../build.xml file. -->
495 <target depends="init,undeploy-clean,deps-clean,do-clean,post-clean" description="Clean build products." name="clean"/>