Added tag 16. díl for changeset 8238cdb4113a
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:
18 <project xmlns:ejbjarproject1="http://www.netbeans.org/ns/j2ee-ejbjarproject/1" xmlns:ejbjarproject2="http://www.netbeans.org/ns/j2ee-ejbjarproject/2" xmlns:ejbjarproject3="http://www.netbeans.org/ns/j2ee-ejbjarproject/3" basedir=".." default="default" name="nekurak.net-ejb-impl">
19 <import file="ant-deploy.xml"/>
20 <fail message="Please build using Ant 1.7.1 or higher.">
23 <antversion atleast="1.7.1"/>
27 <target depends="dist,javadoc" description="Build whole project." name="default"/>
29 INITIALIZATION SECTION
31 <target name="-pre-init">
32 <!-- Empty placeholder for easier customization. -->
33 <!-- You can override this target in the ../build.xml file. -->
35 <target depends="-pre-init" name="-init-private">
36 <property file="nbproject/private/private.properties"/>
38 <target depends="-pre-init,-init-private" name="-init-userdir">
39 <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
41 <target depends="-pre-init,-init-private,-init-userdir" name="-init-user">
42 <property file="${user.properties.file}"/>
43 <!-- The two properties below are usually overridden -->
44 <!-- by the active platform. Just a fallback. -->
45 <property name="default.javac.source" value="1.4"/>
46 <property name="default.javac.target" value="1.4"/>
48 <target depends="-pre-init,-init-private,-init-userdir,-init-user" name="-init-project">
49 <property file="nbproject/project.properties"/>
51 <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
52 <!-- Ensure configuration directory exists. -->
53 <mkdir dir="${meta.inf}"/>
54 <property name="runmain.jvmargs" value=""/>
55 <condition property="have.tests">
57 <available file="${test.src.dir}"/>
60 <condition property="have.sources">
62 <available file="${src.dir}"/>
65 <condition property="netbeans.home+have.tests">
67 <isset property="netbeans.home"/>
68 <isset property="have.tests"/>
71 <condition property="no.javadoc.preview">
72 <isfalse value="${javadoc.preview}"/>
74 <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
76 Variables needed to support directory deployment.
78 <condition property="do.package.with.custom.manifest.not.directory.deploy">
80 <isset property="has.custom.manifest"/>
81 <isfalse value="${directory.deployment.supported}"/>
84 <condition property="do.package.without.custom.manifest.not.directory.deploy">
87 <isset property="has.custom.manifest"/>
89 <isfalse value="${directory.deployment.supported}"/>
92 <!--End Variables needed to support directory deployment.-->
93 <condition property="classes.dir" value="${build.ear.classes.dir}">
94 <isset property="dist.ear.dir"/>
96 <property name="classes.dir" value="${build.classes.dir}"/>
97 <condition property="no.deps">
99 <istrue value="${no.dependencies}"/>
102 <condition property="no.dist.ear.dir">
104 <isset property="dist.ear.dir"/>
107 <property name="source.encoding" value="${file.encoding}"/>
108 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
110 <isset property="javadoc.encoding"/>
112 <equals arg1="${javadoc.encoding}" arg2=""/>
116 <property name="javadoc.encoding.used" value="${source.encoding}"/>
117 <property name="includes" value="**"/>
118 <property name="excludes" value=""/>
119 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
120 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
121 <length length="0" string="${endorsed.classpath}" when="greater"/>
124 <target depends="init" name="-init-cos" unless="deploy.on.save">
125 <condition property="deploy.on.save" value="true">
126 <istrue value="${j2ee.deploy.on.save}"/>
129 <target name="-post-init">
130 <!-- Empty placeholder for easier customization. -->
131 <!-- You can override this target in the ../build.xml file. -->
133 <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
134 <fail unless="src.dir">Must set src.dir</fail>
135 <fail unless="test.src.dir">Must set test.src.dir</fail>
136 <fail unless="build.dir">Must set build.dir</fail>
137 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
138 <fail unless="dist.dir">Must set dist.dir</fail>
139 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
140 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
141 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
142 <fail unless="dist.jar">Must set dist.jar</fail>
143 <condition property="missing.j2ee.server.home">
145 <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
147 <isset property="j2ee.server.home"/>
151 <fail if="missing.j2ee.server.home">
152 The Java EE server classpath is not correctly set up - server home directory is missing.
153 Either open the project in the IDE and assign the server or setup the server classpath manually.
154 For example like this:
155 ant -Dj2ee.server.home=<app_server_installation_directory>
157 <fail unless="j2ee.platform.classpath">
158 The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
159 Either open the project in the IDE and assign the server or setup the server classpath manually.
160 For example like this:
161 ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
162 or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
165 <target name="-init-macrodef-property">
166 <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
167 <attribute name="name"/>
168 <attribute name="value"/>
170 <property name="@{name}" value="${@{value}}"/>
174 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
175 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
176 <attribute default="${src.dir}" name="srcdir"/>
177 <attribute default="${build.classes.dir}" name="destdir"/>
178 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
179 <attribute default="${javac.processorpath}" name="processorpath"/>
180 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
181 <attribute default="${includes}" name="includes"/>
182 <attribute default="${excludes}" name="excludes"/>
183 <attribute default="${javac.debug}" name="debug"/>
184 <attribute default="${empty.dir}" name="gensrcdir"/>
185 <element name="customize" optional="true"/>
187 <property name="javac.compilerargs" value=""/>
188 <property location="${build.dir}/empty" name="empty.dir"/>
189 <mkdir dir="${empty.dir}"/>
190 <mkdir dir="@{apgeneratedsrcdir}"/>
191 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
193 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
198 <path path="@{classpath}"/>
200 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
201 <compilerarg line="${javac.compilerargs}"/>
202 <compilerarg value="-processorpath"/>
203 <compilerarg path="@{processorpath}:${empty.dir}"/>
204 <compilerarg line="${ap.processors.internal}"/>
205 <compilerarg value="-s"/>
206 <compilerarg path="@{apgeneratedsrcdir}"/>
207 <compilerarg line="${ap.proc.none.internal}"/>
213 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
214 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
215 <attribute default="${src.dir}" name="srcdir"/>
216 <attribute default="${build.classes.dir}" name="destdir"/>
217 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
218 <attribute default="${javac.processorpath}" name="processorpath"/>
219 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
220 <attribute default="${includes}" name="includes"/>
221 <attribute default="${excludes}" name="excludes"/>
222 <attribute default="${javac.debug}" name="debug"/>
223 <attribute default="${empty.dir}" name="gensrcdir"/>
224 <element name="customize" optional="true"/>
226 <property name="javac.compilerargs" value=""/>
227 <property location="${build.dir}/empty" name="empty.dir"/>
228 <mkdir dir="${empty.dir}"/>
229 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
231 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
236 <path path="@{classpath}"/>
238 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
239 <compilerarg line="${javac.compilerargs}"/>
245 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
246 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
247 <attribute default="${src.dir}" name="srcdir"/>
248 <attribute default="${build.classes.dir}" name="destdir"/>
249 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
251 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
253 <path path="@{classpath}"/>
258 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
259 <attribute default="${build.classes.dir}" name="destdir"/>
261 <fail unless="javac.includes">Must set javac.includes</fail>
262 <pathconvert pathsep="," property="javac.includes.binary">
264 <filelist dir="@{destdir}" files="${javac.includes}"/>
266 <globmapper from="*.java" to="*.class"/>
269 <files includes="${javac.includes.binary}"/>
274 <target name="-init-macrodef-junit">
275 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
276 <attribute default="${includes}" name="includes"/>
277 <attribute default="${excludes}" name="excludes"/>
278 <attribute default="**" name="testincludes"/>
280 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
281 <batchtest todir="${build.test.results.dir}">
282 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
283 <filename name="@{testincludes}"/>
287 <path path="${run.test.classpath}"/>
288 <path path="${j2ee.platform.classpath}"/>
289 <path path="${j2ee.platform.embeddableejb.classpath}"/>
292 <propertyref prefix="test-sys-prop."/>
293 <mapper from="test-sys-prop.*" to="*" type="glob"/>
295 <formatter type="brief" usefile="false"/>
296 <formatter type="xml"/>
297 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
298 <jvmarg line="${runmain.jvmargs}"/>
303 <target name="-init-macrodef-java">
304 <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
305 <attribute default="${main.class}" name="classname"/>
306 <element name="customize" optional="true"/>
308 <java classname="@{classname}" fork="true">
309 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
310 <jvmarg line="${runmain.jvmargs}"/>
312 <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
315 <propertyref prefix="run-sys-prop."/>
316 <mapper from="run-sys-prop.*" to="*" type="glob"/>
323 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
324 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
325 <attribute default="${main.class}" name="name"/>
326 <attribute default="${debug.classpath}" name="classpath"/>
328 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
330 <path path="@{classpath}"/>
335 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
336 <attribute default="${build.classes.dir}" name="dir"/>
339 <fileset dir="@{dir}" includes="${fix.classes}">
340 <include name="${fix.includes}*.class"/>
345 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
351 <target name="-init-debug-args">
352 <property name="version-output" value="java version "${ant.java.version}"/>
353 <condition property="have-jdk-older-than-1.4">
355 <contains string="${version-output}" substring="java version "1.0"/>
356 <contains string="${version-output}" substring="java version "1.1"/>
357 <contains string="${version-output}" substring="java version "1.2"/>
358 <contains string="${version-output}" substring="java version "1.3"/>
361 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
362 <istrue value="${have-jdk-older-than-1.4}"/>
364 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
365 <os family="windows"/>
367 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
368 <isset property="debug.transport"/>
371 <target depends="-init-debug-args" name="-init-macrodef-debug">
372 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
373 <attribute default="${main.class}" name="classname"/>
374 <attribute default="${debug.classpath}" name="classpath"/>
375 <attribute default="${application.args}" name="args"/>
376 <element name="customize" optional="true"/>
378 <java classname="@{classname}" fork="true">
379 <jvmarg line="${debug-args-line}"/>
380 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
381 <jvmarg line="${runmain.jvmargs}"/>
383 <path path="@{classpath}"/>
385 <arg line="@{args}"/>
391 <target name="-init-taskdefs">
392 <fail unless="libs.CopyLibs.classpath">
393 The libs.CopyLibs.classpath property is not set up.
394 This property must point to
395 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
396 of NetBeans IDE installation and is usually located at
397 <netbeans_installation>/java<version>/ant/extra folder.
398 Either open the project in the IDE and make sure CopyLibs library
399 exists or setup the property manually. For example like this:
400 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
402 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
404 <target name="-init-ap-cmdline-properties">
405 <property name="annotation.processing.enabled" value="true"/>
406 <property name="annotation.processing.processors.list" value=""/>
407 <property name="annotation.processing.run.all.processors" value="true"/>
408 <property name="javac.processorpath" value="${javac.classpath}"/>
409 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
410 <condition property="ap.supported.internal" value="true">
412 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
416 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
417 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
418 <isfalse value="${annotation.processing.run.all.processors}"/>
420 <condition else="" property="ap.proc.none.internal" value="-proc:none">
421 <isfalse value="${annotation.processing.enabled}"/>
424 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
425 <property name="ap.cmd.line.internal" value=""/>
427 <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
431 <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
432 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
433 <property name="deploy.on.save" value="false"/>
435 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
436 <property name="deploy.on.save" value="false"/>
439 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
440 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
441 <property name="deploy.on.save" value="false"/>
443 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
444 <property name="deploy.on.save" value="false"/>
447 <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
448 <target depends="init,deps-jar" name="-pre-pre-compile">
449 <mkdir dir="${build.classes.dir}"/>
450 <mkdir dir="${build.ear.classes.dir}"/>
452 <target name="-pre-compile">
453 <!-- Empty placeholder for easier customization. -->
454 <!-- You can override this target in the ../build.xml file. -->
456 <target depends="compile" name="library-inclusion-in-archive">
457 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.classes.dir}"/>
458 <copyfiles files="${reference.SuperDAO.jar}" todir="${build.classes.dir}"/>
459 <copyfiles files="${libs.Smack-XMPP.classpath}" todir="${build.classes.dir}"/>
461 <target depends="compile" name="library-inclusion-in-manifest">
462 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
463 <copyfiles files="${reference.SuperDAO.jar}" todir="${dist.ear.dir}/lib"/>
464 <copyfiles files="${libs.Smack-XMPP.classpath}" todir="${dist.ear.dir}/lib"/>
465 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
467 <target name="-copy-meta-inf">
468 <copy todir="${classes.dir}">
469 <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
471 <copy todir="${classes.dir}/META-INF">
472 <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
475 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
476 <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
477 <copy todir="${classes.dir}">
478 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
481 <target name="-post-compile">
482 <!-- Empty placeholder for easier customization. -->
483 <!-- You can override this target in the ../build.xml file. -->
485 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
486 <target name="-pre-compile-single">
487 <!-- Empty placeholder for easier customization. -->
488 <!-- You can override this target in the ../build.xml file. -->
490 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
491 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
492 <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
494 <target name="-post-compile-single">
495 <!-- Empty placeholder for easier customization. -->
496 <!-- You can override this target in the ../build.xml file. -->
498 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
500 DIST BUILDING SECTION
502 <target name="-pre-dist">
503 <!-- Empty placeholder for easier customization. -->
504 <!-- You can override this target in the ../build.xml file. -->
506 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
507 <dirname file="${dist.jar}" property="dist.jar.dir"/>
508 <mkdir dir="${dist.jar.dir}"/>
509 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
510 <fileset dir="${build.classes.dir}"/>
513 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
514 <dirname file="${dist.jar}" property="dist.jar.dir"/>
515 <mkdir dir="${dist.jar.dir}"/>
516 <jar compress="${jar.compress}" jarfile="${dist.jar}">
517 <fileset dir="${build.classes.dir}"/>
521 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
523 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="do.package.with.custom.manifest.not.directory.deploy" name="-do-tmp-dist-with-manifest">
524 <dirname file="${dist.jar}" property="dist.jar.dir"/>
525 <mkdir dir="${dist.jar.dir}"/>
526 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
527 <fileset dir="${build.classes.dir}"/>
530 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="do.package.without.custom.manifest.not.directory.deploy" name="-do-tmp-dist-without-manifest">
531 <dirname file="${dist.jar}" property="dist.jar.dir"/>
532 <mkdir dir="${dist.jar.dir}"/>
533 <jar compress="${jar.compress}" jarfile="${dist.jar}">
534 <fileset dir="${build.classes.dir}"/>
537 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-tmp-dist-without-manifest, -do-tmp-dist-with-manifest" name="-do-dist-directory-deploy"/>
538 <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"/>
540 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
542 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
543 <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
544 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
545 <mkdir dir="${dist.jar.dir}"/>
546 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
547 <fileset dir="${build.ear.classes.dir}"/>
550 <target name="-post-dist">
551 <!-- Empty placeholder for easier customization. -->
552 <!-- You can override this target in the ../build.xml file. -->
554 <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
555 <target depends="init,-init-cos,compile,-pre-dist,-do-ear-dist,-post-dist" description="Build distribution (JAR) to be packaged into an EAR." name="dist-ear"/>
559 <target depends="run-deploy" description="Deploy to server." name="run"/>
560 <target name="-init-deploy">
561 <property name="include.jar.manifest" value=""/>
563 <target name="pre-run-deploy">
564 <!-- Empty placeholder for easier customization. -->
565 <!-- You can override this target in the ../build.xml file. -->
567 <target name="post-run-deploy">
568 <!-- Empty placeholder for easier customization. -->
569 <!-- You can override this target in the ../build.xml file. -->
571 <target name="-pre-nbmodule-run-deploy">
572 <!-- Empty placeholder for easier customization. -->
573 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
575 <target name="-post-nbmodule-run-deploy">
576 <!-- Empty placeholder for easier customization. -->
577 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
579 <target name="-run-deploy-am">
580 <!-- Task to deploy to the Access Manager runtime. -->
582 <target depends="init,-init-cos,-init-deploy,compile,library-inclusion-in-archive,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">
585 <target if="netbeans.home" name="-run-deploy-nb">
586 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
588 <target name="-init-deploy-ant" unless="netbeans.home">
589 <property name="deploy.ant.archive" value="${dist.jar}"/>
590 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
591 <property name="deploy.ant.enabled" value="true"/>
593 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
594 <target if="netbeans.home" name="-run-undeploy-nb">
595 <fail message="Undeploy is not supported from within the IDE"/>
597 <target depends="dist" name="verify">
598 <nbverify file="${dist.jar}"/>
600 <target depends="init,compile-single" name="run-main">
601 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
602 <ejbjarproject3:java classname="${run.class}"/>
607 <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
608 <nbdeploy debugmode="true"/>
609 <antcall target="connect-debugger"/>
611 <target name="connect-debugger" unless="is.debugged">
612 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
614 <path path="${debug.classpath}"/>
617 <path path="${web.docbase.dir}"/>
621 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
622 <ejbjarproject1:nbjpdastart/>
624 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
625 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
626 <ejbjarproject1:debug/>
628 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
629 <target depends="init" name="-pre-debug-fix">
630 <fail unless="fix.includes">Must set fix.includes</fail>
631 <property name="javac.includes" value="${fix.includes}.java"/>
633 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
634 <ejbjarproject1:nbjpdareload/>
636 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
640 <target depends="init" if="have.sources" name="javadoc-build">
641 <mkdir dir="${dist.javadoc.dir}"/>
642 <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
644 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
646 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
647 <filename name="**/*.java"/>
649 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
650 <include name="**/*.java"/>
654 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
655 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
657 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
659 JUNIT COMPILATION SECTION
661 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
662 <mkdir dir="${build.test.classes.dir}"/>
663 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
665 <target name="-pre-compile-test">
666 <!-- Empty placeholder for easier customization. -->
667 <!-- You can override this target in the ../build.xml file. -->
669 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
670 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
671 <copy todir="${build.test.classes.dir}">
672 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
675 <target name="-post-compile-test">
676 <!-- Empty placeholder for easier customization. -->
677 <!-- You can override this target in the ../build.xml file. -->
679 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
680 <target name="-pre-compile-test-single">
681 <!-- Empty placeholder for easier customization. -->
682 <!-- You can override this target in the ../build.xml file. -->
684 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
685 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
686 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir="${test.src.dir}"/>
688 <target name="-post-compile-test-single">
689 <!-- Empty placeholder for easier customization. -->
690 <!-- You can override this target in the ../build.xml file. -->
692 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
694 JUNIT EXECUTION SECTION
696 <target depends="init" if="have.tests" name="-pre-test-run">
697 <mkdir dir="${build.test.results.dir}"/>
699 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
700 <ejbjarproject2:junit testincludes="**/*Test.java"/>
702 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
703 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
705 <target depends="init" if="have.tests" name="test-report"/>
706 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
707 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
708 <target depends="init" if="have.tests" name="-pre-test-run-single">
709 <mkdir dir="${build.test.results.dir}"/>
711 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
712 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
713 <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
715 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
716 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
718 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
720 JUNIT DEBUGGING SECTION
722 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
723 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
724 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
725 <delete file="${test.report.file}"/>
726 <!-- the directory must exist, otherwise the XML formatter would fail -->
727 <mkdir dir="${build.test.results.dir}"/>
728 <ejbjarproject1:debug args="${test.class}" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
730 <arg value="showoutput=true"/>
731 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
732 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
734 </ejbjarproject1:debug>
736 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
737 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
739 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
740 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
741 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
743 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
747 <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
748 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="clean"/>
749 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
751 <target depends="init" name="-do-clean">
752 <delete dir="${build.dir}"/>
753 <delete dir="${dist.dir}"/>
755 <target name="-post-clean">
756 <!-- Empty placeholder for easier customization. -->
757 <!-- You can override this target in the ../build.xml file. -->
759 <target depends="init" if="netbeans.home" name="undeploy-clean">
760 <nbundeploy failOnError="false" startServer="false"/>
762 <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
763 <target depends="clean" name="clean-ear"/>