Podpora Markdown syntaxe pro komentáře.
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}'">
122 <isset property="endorsed.classpath"/>
123 <length length="0" string="${endorsed.classpath}" when="greater"/>
126 <condition property="is.server.weblogic" value="true">
127 <equals arg1="${j2ee.server.type}" arg2="WebLogic9"/>
129 <condition else="false" property="jdkBug6558476">
131 <matches pattern="1\.[56]" string="${java.specification.version}"/>
137 <property name="javac.fork" value="${jdkBug6558476}"/>
139 <target depends="init" name="-init-cos" unless="deploy.on.save">
140 <condition property="deploy.on.save" value="true">
142 <istrue value="${j2ee.deploy.on.save}"/>
143 <istrue value="${j2ee.compile.on.save}"/>
147 <target name="-post-init">
148 <!-- Empty placeholder for easier customization. -->
149 <!-- You can override this target in the ../build.xml file. -->
151 <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
152 <fail unless="src.dir">Must set src.dir</fail>
153 <fail unless="test.src.dir">Must set test.src.dir</fail>
154 <fail unless="build.dir">Must set build.dir</fail>
155 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
156 <fail unless="dist.dir">Must set dist.dir</fail>
157 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
158 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
159 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
160 <fail unless="dist.jar">Must set dist.jar</fail>
161 <condition property="missing.j2ee.server.home">
163 <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
165 <isset property="j2ee.server.home"/>
169 <fail if="missing.j2ee.server.home">
170 The Java EE server classpath is not correctly set up - server home directory is missing.
171 Either open the project in the IDE and assign the server or setup the server classpath manually.
172 For example like this:
173 ant -Dj2ee.server.home=<app_server_installation_directory>
175 <fail unless="j2ee.platform.classpath">
176 The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
177 Either open the project in the IDE and assign the server or setup the server classpath manually.
178 For example like this:
179 ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
180 or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
183 <target name="-init-macrodef-property">
184 <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
185 <attribute name="name"/>
186 <attribute name="value"/>
188 <property name="@{name}" value="${@{value}}"/>
192 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
193 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
194 <attribute default="${src.dir}" name="srcdir"/>
195 <attribute default="${build.classes.dir}" name="destdir"/>
196 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
197 <attribute default="${javac.processorpath}" name="processorpath"/>
198 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
199 <attribute default="${includes}" name="includes"/>
200 <attribute default="${excludes}" name="excludes"/>
201 <attribute default="${javac.debug}" name="debug"/>
202 <attribute default="${empty.dir}" name="gensrcdir"/>
203 <element name="customize" optional="true"/>
205 <property name="javac.compilerargs" value=""/>
206 <property location="${build.dir}/empty" name="empty.dir"/>
207 <mkdir dir="${empty.dir}"/>
208 <mkdir dir="@{apgeneratedsrcdir}"/>
209 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
211 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
216 <path path="@{classpath}"/>
218 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
219 <compilerarg line="${javac.compilerargs}"/>
220 <compilerarg value="-processorpath"/>
221 <compilerarg path="@{processorpath}:${empty.dir}"/>
222 <compilerarg line="${ap.processors.internal}"/>
223 <compilerarg value="-s"/>
224 <compilerarg path="@{apgeneratedsrcdir}"/>
225 <compilerarg line="${ap.proc.none.internal}"/>
231 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
232 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
233 <attribute default="${src.dir}" name="srcdir"/>
234 <attribute default="${build.classes.dir}" name="destdir"/>
235 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
236 <attribute default="${javac.processorpath}" name="processorpath"/>
237 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
238 <attribute default="${includes}" name="includes"/>
239 <attribute default="${excludes}" name="excludes"/>
240 <attribute default="${javac.debug}" name="debug"/>
241 <attribute default="${empty.dir}" name="gensrcdir"/>
242 <element name="customize" optional="true"/>
244 <property name="javac.compilerargs" value=""/>
245 <property location="${build.dir}/empty" name="empty.dir"/>
246 <mkdir dir="${empty.dir}"/>
247 <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}">
249 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
254 <path path="@{classpath}"/>
256 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
257 <compilerarg line="${javac.compilerargs}"/>
263 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
264 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
265 <attribute default="${src.dir}" name="srcdir"/>
266 <attribute default="${build.classes.dir}" name="destdir"/>
267 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
269 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
271 <path path="@{classpath}"/>
276 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
277 <attribute default="${build.classes.dir}" name="destdir"/>
279 <fail unless="javac.includes">Must set javac.includes</fail>
280 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
282 <filelist dir="@{destdir}" files="${javac.includes}"/>
284 <globmapper from="*.java" to="*.class"/>
286 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
287 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
289 <files includesfile="${javac.includesfile.binary}"/>
291 <delete file="${javac.includesfile.binary}"/>
295 <target name="-init-macrodef-junit">
296 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
297 <attribute default="${includes}" name="includes"/>
298 <attribute default="${excludes}" name="excludes"/>
299 <attribute default="**" name="testincludes"/>
301 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
302 <batchtest todir="${build.test.results.dir}">
303 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
304 <filename name="@{testincludes}"/>
308 <path path="${run.test.classpath}"/>
309 <path path="${j2ee.platform.classpath}"/>
310 <path path="${j2ee.platform.embeddableejb.classpath}"/>
313 <propertyref prefix="test-sys-prop."/>
314 <mapper from="test-sys-prop.*" to="*" type="glob"/>
316 <formatter type="brief" usefile="false"/>
317 <formatter type="xml"/>
318 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
319 <jvmarg value="-ea"/>
320 <jvmarg line="${runmain.jvmargs}"/>
325 <target name="-init-macrodef-java">
326 <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
327 <attribute default="${main.class}" name="classname"/>
328 <element name="customize" optional="true"/>
330 <java classname="@{classname}" fork="true">
331 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
332 <jvmarg line="${runmain.jvmargs}"/>
334 <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
337 <propertyref prefix="run-sys-prop."/>
338 <mapper from="run-sys-prop.*" to="*" type="glob"/>
345 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
346 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
347 <attribute default="${main.class}" name="name"/>
348 <attribute default="${debug.classpath}" name="classpath"/>
350 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
352 <path path="@{classpath}"/>
357 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
358 <attribute default="${build.classes.dir}" name="dir"/>
361 <fileset dir="@{dir}" includes="${fix.classes}">
362 <include name="${fix.includes}*.class"/>
367 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
373 <target name="-init-debug-args">
374 <property name="version-output" value="java version "${ant.java.version}"/>
375 <condition property="have-jdk-older-than-1.4">
377 <contains string="${version-output}" substring="java version "1.0"/>
378 <contains string="${version-output}" substring="java version "1.1"/>
379 <contains string="${version-output}" substring="java version "1.2"/>
380 <contains string="${version-output}" substring="java version "1.3"/>
383 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
384 <istrue value="${have-jdk-older-than-1.4}"/>
386 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
387 <os family="windows"/>
389 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
390 <isset property="debug.transport"/>
393 <target depends="-init-debug-args" name="-init-macrodef-debug">
394 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
395 <attribute default="${main.class}" name="classname"/>
396 <attribute default="${debug.classpath}" name="classpath"/>
397 <attribute default="${application.args}" name="args"/>
398 <element name="customize" optional="true"/>
400 <java classname="@{classname}" fork="true">
401 <jvmarg line="${debug-args-line}"/>
402 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
403 <jvmarg line="${runmain.jvmargs}"/>
405 <path path="@{classpath}"/>
407 <arg line="@{args}"/>
413 <target name="-init-taskdefs">
414 <fail unless="libs.CopyLibs.classpath">
415 The libs.CopyLibs.classpath property is not set up.
416 This property must point to
417 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
418 of NetBeans IDE installation and is usually located at
419 <netbeans_installation>/java<version>/ant/extra folder.
420 Either open the project in the IDE and make sure CopyLibs library
421 exists or setup the property manually. For example like this:
422 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
424 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
426 <target name="-init-ap-cmdline-properties">
427 <property name="annotation.processing.enabled" value="true"/>
428 <property name="annotation.processing.processors.list" value=""/>
429 <property name="annotation.processing.run.all.processors" value="true"/>
430 <property name="javac.processorpath" value="${javac.classpath}"/>
431 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
432 <condition property="ap.supported.internal" value="true">
434 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
438 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
439 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
440 <isfalse value="${annotation.processing.run.all.processors}"/>
442 <condition else="" property="ap.proc.none.internal" value="-proc:none">
443 <isfalse value="${annotation.processing.enabled}"/>
446 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
447 <property name="ap.cmd.line.internal" value=""/>
449 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" name="profile-init"/>
450 <target name="-profile-pre-init">
451 <!-- Empty placeholder for easier customization. -->
452 <!-- You can override this target in the ../build.xml file. -->
454 <target name="-profile-post-init">
455 <!-- Empty placeholder for easier customization. -->
456 <!-- You can override this target in the ../build.xml file. -->
458 <target depends="-profile-pre-init, init, -profile-post-init" name="-profile-init-check">
459 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
460 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
462 <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"/>
466 <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
467 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
468 <property name="deploy.on.save" value="false"/>
470 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
471 <property name="deploy.on.save" value="false"/>
474 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
475 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
476 <property name="deploy.on.save" value="false"/>
478 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
479 <property name="deploy.on.save" value="false"/>
482 <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
483 <target depends="init,deps-jar" name="-pre-pre-compile">
484 <mkdir dir="${build.classes.dir}"/>
485 <mkdir dir="${build.ear.classes.dir}"/>
487 <target name="-pre-compile">
488 <!-- Empty placeholder for easier customization. -->
489 <!-- You can override this target in the ../build.xml file. -->
491 <target depends="compile" if="is.server.weblogic" name="library-inclusion-in-archive">
492 <basename file="${reference.nekurak_net-lib.jar}" property="manifest.reference.nekurak_net-lib.jar"/>
493 <basename file="${reference.SuperDAO.jar}" property="manifest.reference.SuperDAO.jar"/>
494 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
495 <attribute name="Extension-List" value="jar-1 jar-2 "/>
496 <attribute name="jar-1-Extension-Name" value="${manifest.reference.nekurak_net-lib.jar}"/>
497 <attribute name="jar-2-Extension-Name" value="${manifest.reference.SuperDAO.jar}"/>
500 <target depends="compile" name="library-inclusion-in-manifest">
501 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
502 <copyfiles files="${reference.SuperDAO.jar}" todir="${dist.ear.dir}/lib"/>
503 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
505 <target name="-copy-meta-inf">
506 <copy todir="${classes.dir}">
507 <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
509 <copy todir="${classes.dir}/META-INF">
510 <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
513 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
514 <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
515 <copy todir="${classes.dir}">
516 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
519 <target name="-post-compile">
520 <!-- Empty placeholder for easier customization. -->
521 <!-- You can override this target in the ../build.xml file. -->
523 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
524 <target name="-pre-compile-single">
525 <!-- Empty placeholder for easier customization. -->
526 <!-- You can override this target in the ../build.xml file. -->
528 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
529 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
530 <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
532 <target name="-post-compile-single">
533 <!-- Empty placeholder for easier customization. -->
534 <!-- You can override this target in the ../build.xml file. -->
536 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
538 DIST BUILDING SECTION
540 <target name="-pre-dist">
541 <!-- Empty placeholder for easier customization. -->
542 <!-- You can override this target in the ../build.xml file. -->
544 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
545 <dirname file="${dist.jar}" property="dist.jar.dir"/>
546 <mkdir dir="${dist.jar.dir}"/>
547 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
548 <fileset dir="${build.classes.dir}"/>
551 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
552 <dirname file="${dist.jar}" property="dist.jar.dir"/>
553 <mkdir dir="${dist.jar.dir}"/>
554 <jar compress="${jar.compress}" jarfile="${dist.jar}">
555 <fileset dir="${build.classes.dir}"/>
559 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
561 <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">
562 <dirname file="${dist.jar}" property="dist.jar.dir"/>
563 <mkdir dir="${dist.jar.dir}"/>
564 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
565 <fileset dir="${build.classes.dir}"/>
568 <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">
569 <dirname file="${dist.jar}" property="dist.jar.dir"/>
570 <mkdir dir="${dist.jar.dir}"/>
571 <jar compress="${jar.compress}" jarfile="${dist.jar}">
572 <fileset dir="${build.classes.dir}"/>
575 <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"/>
576 <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"/>
578 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
580 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
581 <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
582 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
583 <mkdir dir="${dist.jar.dir}"/>
584 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
585 <fileset dir="${build.ear.classes.dir}"/>
588 <target name="-post-dist">
589 <!-- Empty placeholder for easier customization. -->
590 <!-- You can override this target in the ../build.xml file. -->
592 <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
593 <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"/>
597 <target depends="run-deploy" description="Deploy to server." name="run"/>
598 <target name="-init-deploy">
599 <property name="include.jar.manifest" value=""/>
601 <target name="pre-run-deploy">
602 <!-- Empty placeholder for easier customization. -->
603 <!-- You can override this target in the ../build.xml file. -->
605 <target name="post-run-deploy">
606 <!-- Empty placeholder for easier customization. -->
607 <!-- You can override this target in the ../build.xml file. -->
609 <target name="-pre-nbmodule-run-deploy">
610 <!-- Empty placeholder for easier customization. -->
611 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
613 <target name="-post-nbmodule-run-deploy">
614 <!-- Empty placeholder for easier customization. -->
615 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
617 <target name="-run-deploy-am">
618 <!-- Task to deploy to the Access Manager runtime. -->
620 <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,-do-update-breakpoints" name="run-deploy"/>
621 <target if="netbeans.home" name="-run-deploy-nb">
622 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
624 <target name="-init-deploy-ant" unless="netbeans.home">
625 <property name="deploy.ant.archive" value="${dist.jar}"/>
626 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
627 <property name="deploy.ant.enabled" value="true"/>
629 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
630 <target if="netbeans.home" name="-run-undeploy-nb">
631 <fail message="Undeploy is not supported from within the IDE"/>
633 <target depends="dist" name="verify">
634 <nbverify file="${dist.jar}"/>
636 <target depends="init,compile-single" name="run-main">
637 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
638 <ejbjarproject3:java classname="${run.class}"/>
640 <target depends="init" if="netbeans.home" name="-do-update-breakpoints">
641 <ejbjarproject1:nbjpdaappreloaded/>
646 <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
647 <nbdeploy debugmode="true"/>
648 <antcall target="connect-debugger"/>
650 <target name="connect-debugger" unless="is.debugged">
651 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
653 <path path="${debug.classpath}"/>
656 <path path="${web.docbase.dir}"/>
660 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
661 <ejbjarproject1:nbjpdastart/>
663 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
664 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
665 <ejbjarproject1:debug/>
667 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
668 <target depends="init" name="-pre-debug-fix">
669 <fail unless="fix.includes">Must set fix.includes</fail>
670 <property name="javac.includes" value="${fix.includes}.java"/>
672 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
673 <ejbjarproject1:nbjpdareload/>
675 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
681 <target description="Profile a J2EE project in the IDE." name="profile">
682 <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
683 <isset property="profiler.info.jvmargs.extra"/>
685 <antcall target="${profiler.startserver.target}"/>
686 <antcall target="run"/>
687 <antcall target="start-loadgen"/>
689 <target name="start-profiled-server">
690 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
691 <jvmarg value="${profiler.info.jvmargs.agent}"/>
692 <jvmarg value="${profiler.j2ee.agentID}"/>
693 </nbstartprofiledserver>
695 <target name="start-profiled-server-extraargs">
696 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
697 <jvmarg value="${profiler.info.jvmargs.extra}"/>
698 <jvmarg value="${profiler.info.jvmargs.agent}"/>
699 <jvmarg value="${profiler.j2ee.agentID}"/>
700 </nbstartprofiledserver>
702 <target if="profiler.loadgen.path" name="start-loadgen">
703 <loadgenstart path="${profiler.loadgen.path}"/>
708 <target depends="init" if="have.sources" name="javadoc-build">
709 <mkdir dir="${dist.javadoc.dir}"/>
710 <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}">
712 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
714 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
715 <filename name="**/*.java"/>
717 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
718 <include name="**/*.java"/>
721 <copy todir="${dist.javadoc.dir}">
722 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
723 <filename name="**/doc-files/**"/>
725 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
726 <include name="**/doc-files/**"/>
730 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
731 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
733 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
735 JUNIT COMPILATION SECTION
737 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
738 <mkdir dir="${build.test.classes.dir}"/>
739 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
741 <target name="-pre-compile-test">
742 <!-- Empty placeholder for easier customization. -->
743 <!-- You can override this target in the ../build.xml file. -->
745 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
746 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
747 <copy todir="${build.test.classes.dir}">
748 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
751 <target name="-post-compile-test">
752 <!-- Empty placeholder for easier customization. -->
753 <!-- You can override this target in the ../build.xml file. -->
755 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
756 <target name="-pre-compile-test-single">
757 <!-- Empty placeholder for easier customization. -->
758 <!-- You can override this target in the ../build.xml file. -->
760 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
761 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
762 <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}"/>
764 <target name="-post-compile-test-single">
765 <!-- Empty placeholder for easier customization. -->
766 <!-- You can override this target in the ../build.xml file. -->
768 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
770 JUNIT EXECUTION SECTION
772 <target depends="init" if="have.tests" name="-pre-test-run">
773 <mkdir dir="${build.test.results.dir}"/>
775 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
776 <ejbjarproject2:junit testincludes="**/*Test.java"/>
778 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
779 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
781 <target depends="init" if="have.tests" name="test-report"/>
782 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
783 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
784 <target depends="init" if="have.tests" name="-pre-test-run-single">
785 <mkdir dir="${build.test.results.dir}"/>
787 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
788 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
789 <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
791 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
792 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
794 <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"/>
796 JUNIT DEBUGGING SECTION
798 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
799 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
800 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
801 <delete file="${test.report.file}"/>
802 <!-- the directory must exist, otherwise the XML formatter would fail -->
803 <mkdir dir="${build.test.results.dir}"/>
804 <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}">
806 <arg value="showoutput=true"/>
807 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
808 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
810 </ejbjarproject1:debug>
812 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
813 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
815 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
816 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
817 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
819 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
821 =========================
822 TESTS PROFILING SECTION
823 =========================
825 <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
828 <path path="${run.test.classpath}"/>
829 <path path="${j2ee.platform.classpath}"/>
832 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
833 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
834 <jvmarg value="${profiler.info.jvmargs.agent}"/>
835 <jvmarg line="${profiler.info.jvmargs}"/>
836 <test name="${profile.class}"/>
838 <path path="${run.test.classpath}"/>
839 <path path="${j2ee.platform.classpath}"/>
842 <propertyref prefix="test-sys-prop."/>
843 <mapper from="test-sys-prop.*" to="*" type="glob"/>
845 <formatter type="brief" usefile="false"/>
846 <formatter type="xml"/>
852 <target depends="init" name="deps-clean" unless="no.deps">
853 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="clean"/>
854 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
856 <target depends="init" name="-do-clean">
857 <delete dir="${build.dir}"/>
858 <delete dir="${dist.dir}"/>
860 <target name="-post-clean">
861 <!-- Empty placeholder for easier customization. -->
862 <!-- You can override this target in the ../build.xml file. -->
864 <target depends="init" if="netbeans.home" name="undeploy-clean">
865 <nbundeploy failOnError="false" startServer="false"/>
867 <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
868 <target depends="clean" name="clean-ear"/>