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 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
492 <attribute name="Extension-List" value="jar-1 jar-2 "/>
493 <attribute name="jar-1-Extension-Name" value="${manifest.reference.nekurak_net-lib.jar}"/>
494 <attribute name="jar-2-Extension-Name" value="${manifest.reference.SuperDAO.jar}"/>
497 <target depends="compile" name="library-inclusion-in-manifest">
498 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
499 <copyfiles files="${reference.SuperDAO.jar}" todir="${dist.ear.dir}/lib"/>
500 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
502 <target name="-copy-meta-inf">
503 <copy todir="${classes.dir}">
504 <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
506 <copy todir="${classes.dir}/META-INF">
507 <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
510 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
511 <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
512 <copy todir="${classes.dir}">
513 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
516 <target name="-post-compile">
517 <!-- Empty placeholder for easier customization. -->
518 <!-- You can override this target in the ../build.xml file. -->
520 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
521 <target name="-pre-compile-single">
522 <!-- Empty placeholder for easier customization. -->
523 <!-- You can override this target in the ../build.xml file. -->
525 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
526 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
527 <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
529 <target name="-post-compile-single">
530 <!-- Empty placeholder for easier customization. -->
531 <!-- You can override this target in the ../build.xml file. -->
533 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
535 DIST BUILDING SECTION
537 <target name="-pre-dist">
538 <!-- Empty placeholder for easier customization. -->
539 <!-- You can override this target in the ../build.xml file. -->
541 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
542 <dirname file="${dist.jar}" property="dist.jar.dir"/>
543 <mkdir dir="${dist.jar.dir}"/>
544 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
545 <fileset dir="${build.classes.dir}"/>
548 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
549 <dirname file="${dist.jar}" property="dist.jar.dir"/>
550 <mkdir dir="${dist.jar.dir}"/>
551 <jar compress="${jar.compress}" jarfile="${dist.jar}">
552 <fileset dir="${build.classes.dir}"/>
556 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
558 <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">
559 <dirname file="${dist.jar}" property="dist.jar.dir"/>
560 <mkdir dir="${dist.jar.dir}"/>
561 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
562 <fileset dir="${build.classes.dir}"/>
565 <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">
566 <dirname file="${dist.jar}" property="dist.jar.dir"/>
567 <mkdir dir="${dist.jar.dir}"/>
568 <jar compress="${jar.compress}" jarfile="${dist.jar}">
569 <fileset dir="${build.classes.dir}"/>
572 <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"/>
573 <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"/>
575 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
577 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
578 <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
579 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
580 <mkdir dir="${dist.jar.dir}"/>
581 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
582 <fileset dir="${build.ear.classes.dir}"/>
585 <target name="-post-dist">
586 <!-- Empty placeholder for easier customization. -->
587 <!-- You can override this target in the ../build.xml file. -->
589 <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
590 <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"/>
594 <target depends="run-deploy" description="Deploy to server." name="run"/>
595 <target name="-init-deploy">
596 <property name="include.jar.manifest" value=""/>
598 <target name="pre-run-deploy">
599 <!-- Empty placeholder for easier customization. -->
600 <!-- You can override this target in the ../build.xml file. -->
602 <target name="post-run-deploy">
603 <!-- Empty placeholder for easier customization. -->
604 <!-- You can override this target in the ../build.xml file. -->
606 <target name="-pre-nbmodule-run-deploy">
607 <!-- Empty placeholder for easier customization. -->
608 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
610 <target name="-post-nbmodule-run-deploy">
611 <!-- Empty placeholder for easier customization. -->
612 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
614 <target name="-run-deploy-am">
615 <!-- Task to deploy to the Access Manager runtime. -->
617 <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">
620 <target if="netbeans.home" name="-run-deploy-nb">
621 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
623 <target name="-init-deploy-ant" unless="netbeans.home">
624 <property name="deploy.ant.archive" value="${dist.jar}"/>
625 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
626 <property name="deploy.ant.enabled" value="true"/>
628 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
629 <target if="netbeans.home" name="-run-undeploy-nb">
630 <fail message="Undeploy is not supported from within the IDE"/>
632 <target depends="dist" name="verify">
633 <nbverify file="${dist.jar}"/>
635 <target depends="init,compile-single" name="run-main">
636 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
637 <ejbjarproject3:java classname="${run.class}"/>
642 <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
643 <nbdeploy debugmode="true"/>
644 <antcall target="connect-debugger"/>
646 <target name="connect-debugger" unless="is.debugged">
647 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
649 <path path="${debug.classpath}"/>
652 <path path="${web.docbase.dir}"/>
656 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
657 <ejbjarproject1:nbjpdastart/>
659 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
660 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
661 <ejbjarproject1:debug/>
663 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
664 <target depends="init" name="-pre-debug-fix">
665 <fail unless="fix.includes">Must set fix.includes</fail>
666 <property name="javac.includes" value="${fix.includes}.java"/>
668 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
669 <ejbjarproject1:nbjpdareload/>
671 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
677 <target description="Profile a J2EE project in the IDE." name="profile">
678 <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
679 <isset property="profiler.info.jvmargs.extra"/>
681 <antcall target="${profiler.startserver.target}"/>
682 <antcall target="run"/>
683 <antcall target="start-loadgen"/>
685 <target name="start-profiled-server">
686 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
687 <jvmarg value="${profiler.info.jvmargs.agent}"/>
688 <jvmarg value="${profiler.j2ee.agentID}"/>
689 </nbstartprofiledserver>
691 <target name="start-profiled-server-extraargs">
692 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
693 <jvmarg value="${profiler.info.jvmargs.extra}"/>
694 <jvmarg value="${profiler.info.jvmargs.agent}"/>
695 <jvmarg value="${profiler.j2ee.agentID}"/>
696 </nbstartprofiledserver>
698 <target if="profiler.loadgen.path" name="start-loadgen">
699 <loadgenstart path="${profiler.loadgen.path}"/>
704 <target depends="init" if="have.sources" name="javadoc-build">
705 <mkdir dir="${dist.javadoc.dir}"/>
706 <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}">
708 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
710 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
711 <filename name="**/*.java"/>
713 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
714 <include name="**/*.java"/>
717 <copy todir="${dist.javadoc.dir}">
718 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
719 <filename name="**/doc-files/**"/>
721 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
722 <include name="**/doc-files/**"/>
726 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
727 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
729 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
731 JUNIT COMPILATION SECTION
733 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
734 <mkdir dir="${build.test.classes.dir}"/>
735 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
737 <target name="-pre-compile-test">
738 <!-- Empty placeholder for easier customization. -->
739 <!-- You can override this target in the ../build.xml file. -->
741 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
742 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
743 <copy todir="${build.test.classes.dir}">
744 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
747 <target name="-post-compile-test">
748 <!-- Empty placeholder for easier customization. -->
749 <!-- You can override this target in the ../build.xml file. -->
751 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
752 <target name="-pre-compile-test-single">
753 <!-- Empty placeholder for easier customization. -->
754 <!-- You can override this target in the ../build.xml file. -->
756 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
757 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
758 <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}"/>
760 <target name="-post-compile-test-single">
761 <!-- Empty placeholder for easier customization. -->
762 <!-- You can override this target in the ../build.xml file. -->
764 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
766 JUNIT EXECUTION SECTION
768 <target depends="init" if="have.tests" name="-pre-test-run">
769 <mkdir dir="${build.test.results.dir}"/>
771 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
772 <ejbjarproject2:junit testincludes="**/*Test.java"/>
774 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
775 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
777 <target depends="init" if="have.tests" name="test-report"/>
778 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
779 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
780 <target depends="init" if="have.tests" name="-pre-test-run-single">
781 <mkdir dir="${build.test.results.dir}"/>
783 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
784 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
785 <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
787 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
788 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
790 <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"/>
792 JUNIT DEBUGGING SECTION
794 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
795 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
796 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
797 <delete file="${test.report.file}"/>
798 <!-- the directory must exist, otherwise the XML formatter would fail -->
799 <mkdir dir="${build.test.results.dir}"/>
800 <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}">
802 <arg value="showoutput=true"/>
803 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
804 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
806 </ejbjarproject1:debug>
808 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
809 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
811 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
812 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
813 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
815 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
817 =========================
818 TESTS PROFILING SECTION
819 =========================
821 <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
824 <path path="${run.test.classpath}"/>
825 <path path="${j2ee.platform.classpath}"/>
828 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
829 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
830 <jvmarg value="${profiler.info.jvmargs.agent}"/>
831 <jvmarg line="${profiler.info.jvmargs}"/>
832 <test name="${profile.class}"/>
834 <path path="${run.test.classpath}"/>
835 <path path="${j2ee.platform.classpath}"/>
838 <propertyref prefix="test-sys-prop."/>
839 <mapper from="test-sys-prop.*" to="*" type="glob"/>
841 <formatter type="brief" usefile="false"/>
842 <formatter type="xml"/>
848 <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
849 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="clean"/>
850 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
852 <target depends="init" name="-do-clean">
853 <delete dir="${build.dir}"/>
854 <delete dir="${dist.dir}"/>
856 <target name="-post-clean">
857 <!-- Empty placeholder for easier customization. -->
858 <!-- You can override this target in the ../build.xml file. -->
860 <target depends="init" if="netbeans.home" name="undeploy-clean">
861 <nbundeploy failOnError="false" startServer="false"/>
863 <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
864 <target depends="clean" name="clean-ear"/>