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">
141 <istrue value="${j2ee.deploy.on.save}"/>
144 <target name="-post-init">
145 <!-- Empty placeholder for easier customization. -->
146 <!-- You can override this target in the ../build.xml file. -->
148 <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
149 <fail unless="src.dir">Must set src.dir</fail>
150 <fail unless="test.src.dir">Must set test.src.dir</fail>
151 <fail unless="build.dir">Must set build.dir</fail>
152 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
153 <fail unless="dist.dir">Must set dist.dir</fail>
154 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
155 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
156 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
157 <fail unless="dist.jar">Must set dist.jar</fail>
158 <condition property="missing.j2ee.server.home">
160 <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
162 <isset property="j2ee.server.home"/>
166 <fail if="missing.j2ee.server.home">
167 The Java EE server classpath is not correctly set up - server home directory is missing.
168 Either open the project in the IDE and assign the server or setup the server classpath manually.
169 For example like this:
170 ant -Dj2ee.server.home=<app_server_installation_directory>
172 <fail unless="j2ee.platform.classpath">
173 The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
174 Either open the project in the IDE and assign the server or setup the server classpath manually.
175 For example like this:
176 ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
177 or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
180 <target name="-init-macrodef-property">
181 <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
182 <attribute name="name"/>
183 <attribute name="value"/>
185 <property name="@{name}" value="${@{value}}"/>
189 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
190 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
191 <attribute default="${src.dir}" name="srcdir"/>
192 <attribute default="${build.classes.dir}" name="destdir"/>
193 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
194 <attribute default="${javac.processorpath}" name="processorpath"/>
195 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
196 <attribute default="${includes}" name="includes"/>
197 <attribute default="${excludes}" name="excludes"/>
198 <attribute default="${javac.debug}" name="debug"/>
199 <attribute default="${empty.dir}" name="gensrcdir"/>
200 <element name="customize" optional="true"/>
202 <property name="javac.compilerargs" value=""/>
203 <property location="${build.dir}/empty" name="empty.dir"/>
204 <mkdir dir="${empty.dir}"/>
205 <mkdir dir="@{apgeneratedsrcdir}"/>
206 <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}">
208 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
213 <path path="@{classpath}"/>
215 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
216 <compilerarg line="${javac.compilerargs}"/>
217 <compilerarg value="-processorpath"/>
218 <compilerarg path="@{processorpath}:${empty.dir}"/>
219 <compilerarg line="${ap.processors.internal}"/>
220 <compilerarg value="-s"/>
221 <compilerarg path="@{apgeneratedsrcdir}"/>
222 <compilerarg line="${ap.proc.none.internal}"/>
228 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
229 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
230 <attribute default="${src.dir}" name="srcdir"/>
231 <attribute default="${build.classes.dir}" name="destdir"/>
232 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
233 <attribute default="${javac.processorpath}" name="processorpath"/>
234 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
235 <attribute default="${includes}" name="includes"/>
236 <attribute default="${excludes}" name="excludes"/>
237 <attribute default="${javac.debug}" name="debug"/>
238 <attribute default="${empty.dir}" name="gensrcdir"/>
239 <element name="customize" optional="true"/>
241 <property name="javac.compilerargs" value=""/>
242 <property location="${build.dir}/empty" name="empty.dir"/>
243 <mkdir dir="${empty.dir}"/>
244 <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}">
246 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
251 <path path="@{classpath}"/>
253 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
254 <compilerarg line="${javac.compilerargs}"/>
260 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
261 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
262 <attribute default="${src.dir}" name="srcdir"/>
263 <attribute default="${build.classes.dir}" name="destdir"/>
264 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
266 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
268 <path path="@{classpath}"/>
273 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
274 <attribute default="${build.classes.dir}" name="destdir"/>
276 <fail unless="javac.includes">Must set javac.includes</fail>
277 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
279 <filelist dir="@{destdir}" files="${javac.includes}"/>
281 <globmapper from="*.java" to="*.class"/>
283 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
284 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
286 <files includesfile="${javac.includesfile.binary}"/>
288 <delete file="${javac.includesfile.binary}"/>
292 <target name="-init-macrodef-junit">
293 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
294 <attribute default="${includes}" name="includes"/>
295 <attribute default="${excludes}" name="excludes"/>
296 <attribute default="**" name="testincludes"/>
298 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
299 <batchtest todir="${build.test.results.dir}">
300 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
301 <filename name="@{testincludes}"/>
305 <path path="${run.test.classpath}"/>
306 <path path="${j2ee.platform.classpath}"/>
307 <path path="${j2ee.platform.embeddableejb.classpath}"/>
310 <propertyref prefix="test-sys-prop."/>
311 <mapper from="test-sys-prop.*" to="*" type="glob"/>
313 <formatter type="brief" usefile="false"/>
314 <formatter type="xml"/>
315 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
316 <jvmarg value="-ea"/>
317 <jvmarg line="${runmain.jvmargs}"/>
322 <target name="-init-macrodef-java">
323 <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
324 <attribute default="${main.class}" name="classname"/>
325 <element name="customize" optional="true"/>
327 <java classname="@{classname}" fork="true">
328 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
329 <jvmarg line="${runmain.jvmargs}"/>
331 <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
334 <propertyref prefix="run-sys-prop."/>
335 <mapper from="run-sys-prop.*" to="*" type="glob"/>
342 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
343 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
344 <attribute default="${main.class}" name="name"/>
345 <attribute default="${debug.classpath}" name="classpath"/>
347 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
349 <path path="@{classpath}"/>
354 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
355 <attribute default="${build.classes.dir}" name="dir"/>
358 <fileset dir="@{dir}" includes="${fix.classes}">
359 <include name="${fix.includes}*.class"/>
364 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
370 <target name="-init-debug-args">
371 <property name="version-output" value="java version "${ant.java.version}"/>
372 <condition property="have-jdk-older-than-1.4">
374 <contains string="${version-output}" substring="java version "1.0"/>
375 <contains string="${version-output}" substring="java version "1.1"/>
376 <contains string="${version-output}" substring="java version "1.2"/>
377 <contains string="${version-output}" substring="java version "1.3"/>
380 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
381 <istrue value="${have-jdk-older-than-1.4}"/>
383 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
384 <os family="windows"/>
386 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
387 <isset property="debug.transport"/>
390 <target depends="-init-debug-args" name="-init-macrodef-debug">
391 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
392 <attribute default="${main.class}" name="classname"/>
393 <attribute default="${debug.classpath}" name="classpath"/>
394 <attribute default="${application.args}" name="args"/>
395 <element name="customize" optional="true"/>
397 <java classname="@{classname}" fork="true">
398 <jvmarg line="${debug-args-line}"/>
399 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
400 <jvmarg line="${runmain.jvmargs}"/>
402 <path path="@{classpath}"/>
404 <arg line="@{args}"/>
410 <target name="-init-taskdefs">
411 <fail unless="libs.CopyLibs.classpath">
412 The libs.CopyLibs.classpath property is not set up.
413 This property must point to
414 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
415 of NetBeans IDE installation and is usually located at
416 <netbeans_installation>/java<version>/ant/extra folder.
417 Either open the project in the IDE and make sure CopyLibs library
418 exists or setup the property manually. For example like this:
419 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
421 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
423 <target name="-init-ap-cmdline-properties">
424 <property name="annotation.processing.enabled" value="true"/>
425 <property name="annotation.processing.processors.list" value=""/>
426 <property name="annotation.processing.run.all.processors" value="true"/>
427 <property name="javac.processorpath" value="${javac.classpath}"/>
428 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
429 <condition property="ap.supported.internal" value="true">
431 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
435 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
436 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
437 <isfalse value="${annotation.processing.run.all.processors}"/>
439 <condition else="" property="ap.proc.none.internal" value="-proc:none">
440 <isfalse value="${annotation.processing.enabled}"/>
443 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
444 <property name="ap.cmd.line.internal" value=""/>
446 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" name="profile-init"/>
447 <target name="-profile-pre-init">
448 <!-- Empty placeholder for easier customization. -->
449 <!-- You can override this target in the ../build.xml file. -->
451 <target name="-profile-post-init">
452 <!-- Empty placeholder for easier customization. -->
453 <!-- You can override this target in the ../build.xml file. -->
455 <target depends="-profile-pre-init, init, -profile-post-init" name="-profile-init-check">
456 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
457 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
459 <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"/>
463 <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
464 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
465 <property name="deploy.on.save" value="false"/>
467 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
468 <property name="deploy.on.save" value="false"/>
471 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
472 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
473 <property name="deploy.on.save" value="false"/>
475 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
476 <property name="deploy.on.save" value="false"/>
479 <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
480 <target depends="init,deps-jar" name="-pre-pre-compile">
481 <mkdir dir="${build.classes.dir}"/>
482 <mkdir dir="${build.ear.classes.dir}"/>
484 <target name="-pre-compile">
485 <!-- Empty placeholder for easier customization. -->
486 <!-- You can override this target in the ../build.xml file. -->
488 <target depends="compile" if="is.server.weblogic" name="library-inclusion-in-archive">
489 <basename file="${reference.nekurak_net-lib.jar}" property="manifest.reference.nekurak_net-lib.jar"/>
490 <basename file="${reference.SuperDAO.jar}" property="manifest.reference.SuperDAO.jar"/>
491 <basename file="${libs.Smack-XMPP.classpath}" property="manifest.libs.Smack-XMPP.classpath"/>
492 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
493 <attribute name="Extension-List" value="jar-1 jar-2 jar-3 "/>
494 <attribute name="jar-1-Extension-Name" value="${manifest.reference.nekurak_net-lib.jar}"/>
495 <attribute name="jar-2-Extension-Name" value="${manifest.reference.SuperDAO.jar}"/>
496 <attribute name="jar-3-Extension-Name" value="${manifest.libs.Smack-XMPP.classpath}"/>
499 <target depends="compile" name="library-inclusion-in-manifest">
500 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
501 <copyfiles files="${reference.SuperDAO.jar}" todir="${dist.ear.dir}/lib"/>
502 <copyfiles files="${libs.Smack-XMPP.classpath}" 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" name="run-deploy">
623 <target if="netbeans.home" name="-run-deploy-nb">
624 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
626 <target name="-init-deploy-ant" unless="netbeans.home">
627 <property name="deploy.ant.archive" value="${dist.jar}"/>
628 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
629 <property name="deploy.ant.enabled" value="true"/>
631 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
632 <target if="netbeans.home" name="-run-undeploy-nb">
633 <fail message="Undeploy is not supported from within the IDE"/>
635 <target depends="dist" name="verify">
636 <nbverify file="${dist.jar}"/>
638 <target depends="init,compile-single" name="run-main">
639 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
640 <ejbjarproject3:java classname="${run.class}"/>
645 <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
646 <nbdeploy debugmode="true"/>
647 <antcall target="connect-debugger"/>
649 <target name="connect-debugger" unless="is.debugged">
650 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
652 <path path="${debug.classpath}"/>
655 <path path="${web.docbase.dir}"/>
659 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
660 <ejbjarproject1:nbjpdastart/>
662 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
663 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
664 <ejbjarproject1:debug/>
666 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
667 <target depends="init" name="-pre-debug-fix">
668 <fail unless="fix.includes">Must set fix.includes</fail>
669 <property name="javac.includes" value="${fix.includes}.java"/>
671 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
672 <ejbjarproject1:nbjpdareload/>
674 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
680 <target description="Profile a J2EE project in the IDE." name="profile">
681 <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
682 <isset property="profiler.info.jvmargs.extra"/>
684 <antcall target="${profiler.startserver.target}"/>
685 <antcall target="run"/>
686 <antcall target="start-loadgen"/>
688 <target name="start-profiled-server">
689 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
690 <jvmarg value="${profiler.info.jvmargs.agent}"/>
691 <jvmarg value="${profiler.j2ee.agentID}"/>
692 </nbstartprofiledserver>
694 <target name="start-profiled-server-extraargs">
695 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
696 <jvmarg value="${profiler.info.jvmargs.extra}"/>
697 <jvmarg value="${profiler.info.jvmargs.agent}"/>
698 <jvmarg value="${profiler.j2ee.agentID}"/>
699 </nbstartprofiledserver>
701 <target if="profiler.loadgen.path" name="start-loadgen">
702 <loadgenstart path="${profiler.loadgen.path}"/>
707 <target depends="init" if="have.sources" name="javadoc-build">
708 <mkdir dir="${dist.javadoc.dir}"/>
709 <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}">
711 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
713 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
714 <filename name="**/*.java"/>
716 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
717 <include name="**/*.java"/>
720 <copy todir="${dist.javadoc.dir}">
721 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
722 <filename name="**/doc-files/**"/>
724 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
725 <include name="**/doc-files/**"/>
729 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
730 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
732 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
734 JUNIT COMPILATION SECTION
736 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
737 <mkdir dir="${build.test.classes.dir}"/>
738 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
740 <target name="-pre-compile-test">
741 <!-- Empty placeholder for easier customization. -->
742 <!-- You can override this target in the ../build.xml file. -->
744 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
745 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
746 <copy todir="${build.test.classes.dir}">
747 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
750 <target name="-post-compile-test">
751 <!-- Empty placeholder for easier customization. -->
752 <!-- You can override this target in the ../build.xml file. -->
754 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
755 <target name="-pre-compile-test-single">
756 <!-- Empty placeholder for easier customization. -->
757 <!-- You can override this target in the ../build.xml file. -->
759 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
760 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
761 <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}"/>
763 <target name="-post-compile-test-single">
764 <!-- Empty placeholder for easier customization. -->
765 <!-- You can override this target in the ../build.xml file. -->
767 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
769 JUNIT EXECUTION SECTION
771 <target depends="init" if="have.tests" name="-pre-test-run">
772 <mkdir dir="${build.test.results.dir}"/>
774 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
775 <ejbjarproject2:junit testincludes="**/*Test.java"/>
777 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
778 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
780 <target depends="init" if="have.tests" name="test-report"/>
781 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
782 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
783 <target depends="init" if="have.tests" name="-pre-test-run-single">
784 <mkdir dir="${build.test.results.dir}"/>
786 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
787 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
788 <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
790 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
791 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
793 <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"/>
795 JUNIT DEBUGGING SECTION
797 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
798 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
799 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
800 <delete file="${test.report.file}"/>
801 <!-- the directory must exist, otherwise the XML formatter would fail -->
802 <mkdir dir="${build.test.results.dir}"/>
803 <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}">
805 <arg value="showoutput=true"/>
806 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
807 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
809 </ejbjarproject1:debug>
811 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
812 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
814 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
815 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
816 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
818 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
820 =========================
821 TESTS PROFILING SECTION
822 =========================
824 <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
827 <path path="${run.test.classpath}"/>
828 <path path="${j2ee.platform.classpath}"/>
831 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
832 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
833 <jvmarg value="${profiler.info.jvmargs.agent}"/>
834 <jvmarg line="${profiler.info.jvmargs}"/>
835 <test name="${profile.class}"/>
837 <path path="${run.test.classpath}"/>
838 <path path="${j2ee.platform.classpath}"/>
841 <propertyref prefix="test-sys-prop."/>
842 <mapper from="test-sys-prop.*" to="*" type="glob"/>
844 <formatter type="brief" usefile="false"/>
845 <formatter type="xml"/>
851 <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
852 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="clean"/>
853 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
855 <target depends="init" name="-do-clean">
856 <delete dir="${build.dir}"/>
857 <delete dir="${dist.dir}"/>
859 <target name="-post-clean">
860 <!-- Empty placeholder for easier customization. -->
861 <!-- You can override this target in the ../build.xml file. -->
863 <target depends="init" if="netbeans.home" name="undeploy-clean">
864 <nbundeploy failOnError="false" startServer="false"/>
866 <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
867 <target depends="clean" name="clean-ear"/>