1 <?xml version="1.0" encoding="UTF-8"?>
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
4 *** EDIT ../build.xml INSTEAD ***
6 For the purpose of easier reading the script
7 is divided into following sections:
18 <project xmlns:ejbjarproject1="http://www.netbeans.org/ns/j2ee-ejbjarproject/1" xmlns:ejbjarproject2="http://www.netbeans.org/ns/j2ee-ejbjarproject/2" xmlns:ejbjarproject3="http://www.netbeans.org/ns/j2ee-ejbjarproject/3" basedir=".." default="default" name="nekurak.net-ejb-impl">
19 <import file="ant-deploy.xml"/>
20 <fail message="Please build using Ant 1.7.1 or higher.">
23 <antversion atleast="1.7.1"/>
27 <target depends="dist,javadoc" description="Build whole project." name="default"/>
29 INITIALIZATION SECTION
31 <target name="-pre-init">
32 <!-- Empty placeholder for easier customization. -->
33 <!-- You can override this target in the ../build.xml file. -->
35 <target depends="-pre-init" name="-init-private">
36 <property file="nbproject/private/private.properties"/>
38 <target depends="-pre-init,-init-private" name="-init-userdir">
39 <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
41 <target depends="-pre-init,-init-private,-init-userdir" name="-init-user">
42 <property file="${user.properties.file}"/>
43 <!-- The two properties below are usually overridden -->
44 <!-- by the active platform. Just a fallback. -->
45 <property name="default.javac.source" value="1.4"/>
46 <property name="default.javac.target" value="1.4"/>
48 <target depends="-pre-init,-init-private,-init-userdir,-init-user" name="-init-project">
49 <property file="nbproject/project.properties"/>
51 <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
52 <!-- Ensure configuration directory exists. -->
53 <mkdir dir="${meta.inf}"/>
54 <property name="runmain.jvmargs" value=""/>
55 <condition property="have.tests">
57 <available file="${test.src.dir}"/>
60 <condition property="have.sources">
62 <available file="${src.dir}"/>
65 <condition property="netbeans.home+have.tests">
67 <isset property="netbeans.home"/>
68 <isset property="have.tests"/>
71 <condition property="no.javadoc.preview">
72 <isfalse value="${javadoc.preview}"/>
74 <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
76 Variables needed to support directory deployment.
78 <condition property="do.package.with.custom.manifest.not.directory.deploy">
80 <isset property="has.custom.manifest"/>
81 <isfalse value="${directory.deployment.supported}"/>
84 <condition property="do.package.without.custom.manifest.not.directory.deploy">
87 <isset property="has.custom.manifest"/>
89 <isfalse value="${directory.deployment.supported}"/>
92 <!--End Variables needed to support directory deployment.-->
93 <condition property="classes.dir" value="${build.ear.classes.dir}">
94 <isset property="dist.ear.dir"/>
96 <property name="classes.dir" value="${build.classes.dir}"/>
97 <condition property="no.deps">
99 <istrue value="${no.dependencies}"/>
102 <condition property="no.dist.ear.dir">
104 <isset property="dist.ear.dir"/>
107 <property name="source.encoding" value="${file.encoding}"/>
108 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
110 <isset property="javadoc.encoding"/>
112 <equals arg1="${javadoc.encoding}" arg2=""/>
116 <property name="javadoc.encoding.used" value="${source.encoding}"/>
117 <property name="includes" value="**"/>
118 <property name="excludes" value=""/>
119 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
120 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
121 <length length="0" string="${endorsed.classpath}" when="greater"/>
124 <target depends="init" name="-init-cos" unless="deploy.on.save">
125 <condition property="deploy.on.save" value="true">
126 <istrue value="${j2ee.deploy.on.save}"/>
129 <target name="-post-init">
130 <!-- Empty placeholder for easier customization. -->
131 <!-- You can override this target in the ../build.xml file. -->
133 <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
134 <fail unless="src.dir">Must set src.dir</fail>
135 <fail unless="test.src.dir">Must set test.src.dir</fail>
136 <fail unless="build.dir">Must set build.dir</fail>
137 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
138 <fail unless="dist.dir">Must set dist.dir</fail>
139 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
140 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
141 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
142 <fail unless="dist.jar">Must set dist.jar</fail>
143 <fail unless="j2ee.platform.classpath">
144 The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
145 Either open the project in the IDE and assign the server or setup the server classpath manually.
146 For example like this:
147 ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
148 or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
151 <target name="-init-macrodef-property">
152 <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
153 <attribute name="name"/>
154 <attribute name="value"/>
156 <property name="@{name}" value="${@{value}}"/>
160 <target name="-init-macrodef-javac">
161 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
162 <attribute default="${src.dir}" name="srcdir"/>
163 <attribute default="${build.classes.dir}" name="destdir"/>
164 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
165 <attribute default="${includes}" name="includes"/>
166 <attribute default="${excludes}" name="excludes"/>
167 <attribute default="${javac.debug}" name="debug"/>
168 <attribute default="${empty.dir}" name="gensrcdir"/>
169 <element name="customize" optional="true"/>
171 <property name="javac.compilerargs" value=""/>
172 <property location="${build.dir}/empty" name="empty.dir"/>
173 <mkdir dir="${empty.dir}"/>
174 <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}">
176 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
181 <path path="@{classpath}"/>
183 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
184 <compilerarg line="${javac.compilerargs}"/>
190 <target name="-init-macrodef-junit">
191 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
192 <attribute default="${includes}" name="includes"/>
193 <attribute default="${excludes}" name="excludes"/>
194 <attribute default="**" name="testincludes"/>
196 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
197 <batchtest todir="${build.test.results.dir}">
198 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
199 <filename name="@{testincludes}"/>
203 <path path="${run.test.classpath}"/>
204 <path path="${j2ee.platform.classpath}"/>
205 <path path="${j2ee.platform.embeddableejb.classpath}"/>
208 <propertyref prefix="test-sys-prop."/>
209 <mapper from="test-sys-prop.*" to="*" type="glob"/>
211 <formatter type="brief" usefile="false"/>
212 <formatter type="xml"/>
213 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
214 <jvmarg line="${runmain.jvmargs}"/>
219 <target name="-init-macrodef-java">
220 <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
221 <attribute default="${main.class}" name="classname"/>
222 <element name="customize" optional="true"/>
224 <java classname="@{classname}" fork="true">
225 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
226 <jvmarg line="${runmain.jvmargs}"/>
228 <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
231 <propertyref prefix="run-sys-prop."/>
232 <mapper from="run-sys-prop.*" to="*" type="glob"/>
239 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
240 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
241 <attribute default="${main.class}" name="name"/>
242 <attribute default="${debug.classpath}" name="classpath"/>
244 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
246 <path path="@{classpath}"/>
251 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
252 <attribute default="${build.classes.dir}" name="dir"/>
255 <fileset dir="@{dir}" includes="${fix.classes}">
256 <include name="${fix.includes}*.class"/>
261 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
267 <target name="-init-debug-args">
268 <property name="version-output" value="java version "${ant.java.version}"/>
269 <condition property="have-jdk-older-than-1.4">
271 <contains string="${version-output}" substring="java version "1.0"/>
272 <contains string="${version-output}" substring="java version "1.1"/>
273 <contains string="${version-output}" substring="java version "1.2"/>
274 <contains string="${version-output}" substring="java version "1.3"/>
277 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
278 <istrue value="${have-jdk-older-than-1.4}"/>
280 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
281 <os family="windows"/>
283 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
284 <isset property="debug.transport"/>
287 <target depends="-init-debug-args" name="-init-macrodef-debug">
288 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
289 <attribute default="${main.class}" name="classname"/>
290 <attribute default="${debug.classpath}" name="classpath"/>
291 <attribute default="${application.args}" name="args"/>
292 <element name="customize" optional="true"/>
294 <java classname="@{classname}" fork="true">
295 <jvmarg line="${debug-args-line}"/>
296 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
298 <path path="@{classpath}"/>
300 <arg line="@{args}"/>
306 <target name="-init-taskdefs">
307 <fail unless="libs.CopyLibs.classpath">
308 The libs.CopyLibs.classpath property is not set up.
309 This property must point to
310 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
311 of NetBeans IDE installation and is usually located at
312 <netbeans_installation>/java<version>/ant/extra folder.
313 Either open the project in the IDE and make sure CopyLibs library
314 exists or setup the property manually. For example like this:
315 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
317 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
319 <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" name="init"/>
323 <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
324 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
325 <property name="deploy.on.save" value="false"/>
328 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
329 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
330 <property name="deploy.on.save" value="false"/>
333 <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
334 <target depends="init,deps-jar" name="-pre-pre-compile">
335 <mkdir dir="${build.classes.dir}"/>
336 <mkdir dir="${build.ear.classes.dir}"/>
338 <target name="-pre-compile">
339 <!-- Empty placeholder for easier customization. -->
340 <!-- You can override this target in the ../build.xml file. -->
342 <target depends="compile" name="library-inclusion-in-archive">
343 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.classes.dir}"/>
345 <target depends="compile" name="library-inclusion-in-manifest">
346 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
347 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
349 <target name="-copy-meta-inf">
350 <copy todir="${classes.dir}">
351 <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
353 <copy todir="${classes.dir}/META-INF">
354 <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
357 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
358 <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
359 <copy todir="${classes.dir}">
360 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
363 <target name="-post-compile">
364 <!-- Empty placeholder for easier customization. -->
365 <!-- You can override this target in the ../build.xml file. -->
367 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
368 <target name="-pre-compile-single">
369 <!-- Empty placeholder for easier customization. -->
370 <!-- You can override this target in the ../build.xml file. -->
372 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
373 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
374 <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
376 <target name="-post-compile-single">
377 <!-- Empty placeholder for easier customization. -->
378 <!-- You can override this target in the ../build.xml file. -->
380 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
382 DIST BUILDING SECTION
384 <target name="-pre-dist">
385 <!-- Empty placeholder for easier customization. -->
386 <!-- You can override this target in the ../build.xml file. -->
388 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
389 <dirname file="${dist.jar}" property="dist.jar.dir"/>
390 <mkdir dir="${dist.jar.dir}"/>
391 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
392 <fileset dir="${build.classes.dir}"/>
395 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
396 <dirname file="${dist.jar}" property="dist.jar.dir"/>
397 <mkdir dir="${dist.jar.dir}"/>
398 <jar compress="${jar.compress}" jarfile="${dist.jar}">
399 <fileset dir="${build.classes.dir}"/>
403 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
405 <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">
406 <dirname file="${dist.jar}" property="dist.jar.dir"/>
407 <mkdir dir="${dist.jar.dir}"/>
408 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
409 <fileset dir="${build.classes.dir}"/>
412 <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">
413 <dirname file="${dist.jar}" property="dist.jar.dir"/>
414 <mkdir dir="${dist.jar.dir}"/>
415 <jar compress="${jar.compress}" jarfile="${dist.jar}">
416 <fileset dir="${build.classes.dir}"/>
419 <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"/>
420 <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"/>
422 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
424 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
425 <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
426 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
427 <mkdir dir="${dist.jar.dir}"/>
428 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
429 <fileset dir="${build.ear.classes.dir}"/>
432 <target name="-post-dist">
433 <!-- Empty placeholder for easier customization. -->
434 <!-- You can override this target in the ../build.xml file. -->
436 <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
437 <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"/>
441 <target depends="run-deploy" description="Deploy to server." name="run"/>
442 <target name="-init-deploy">
443 <property name="include.jar.manifest" value=""/>
445 <target name="pre-run-deploy">
446 <!-- Empty placeholder for easier customization. -->
447 <!-- You can override this target in the ../build.xml file. -->
449 <target name="post-run-deploy">
450 <!-- Empty placeholder for easier customization. -->
451 <!-- You can override this target in the ../build.xml file. -->
453 <target name="-pre-nbmodule-run-deploy">
454 <!-- Empty placeholder for easier customization. -->
455 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
457 <target name="-post-nbmodule-run-deploy">
458 <!-- Empty placeholder for easier customization. -->
459 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
461 <target name="-run-deploy-am">
462 <!-- Task to deploy to the Access Manager runtime. -->
464 <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">
467 <target if="netbeans.home" name="-run-deploy-nb">
468 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
470 <target name="-init-deploy-ant" unless="netbeans.home">
471 <property name="deploy.ant.archive" value="${dist.jar}"/>
472 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
473 <property name="deploy.ant.enabled" value="true"/>
475 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
476 <target if="netbeans.home" name="-run-undeploy-nb">
477 <fail message="Undeploy is not supported from within the IDE"/>
479 <target depends="dist" name="verify">
480 <nbverify file="${dist.jar}"/>
482 <target depends="init,compile-single" name="run-main">
483 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
484 <ejbjarproject3:java classname="${run.class}"/>
489 <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
490 <nbdeploy debugmode="true"/>
491 <antcall target="connect-debugger"/>
493 <target name="connect-debugger" unless="is.debugged">
494 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
496 <path path="${debug.classpath}"/>
499 <path path="${web.docbase.dir}"/>
503 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
504 <ejbjarproject1:nbjpdastart/>
506 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
507 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
508 <ejbjarproject1:debug/>
510 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
511 <target depends="init" name="-pre-debug-fix">
512 <fail unless="fix.includes">Must set fix.includes</fail>
513 <property name="javac.includes" value="${fix.includes}.java"/>
515 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
516 <ejbjarproject1:nbjpdareload/>
518 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
522 <target depends="init" name="javadoc-build">
523 <mkdir dir="${dist.javadoc.dir}"/>
524 <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}">
526 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
528 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
529 <filename name="**/*.java"/>
531 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
532 <include name="**/*.java"/>
536 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
537 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
539 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
541 JUNIT COMPILATION SECTION
543 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
544 <mkdir dir="${build.test.classes.dir}"/>
545 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
547 <target name="-pre-compile-test">
548 <!-- Empty placeholder for easier customization. -->
549 <!-- You can override this target in the ../build.xml file. -->
551 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
552 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
553 <copy todir="${build.test.classes.dir}">
554 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
557 <target name="-post-compile-test">
558 <!-- Empty placeholder for easier customization. -->
559 <!-- You can override this target in the ../build.xml file. -->
561 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
562 <target name="-pre-compile-test-single">
563 <!-- Empty placeholder for easier customization. -->
564 <!-- You can override this target in the ../build.xml file. -->
566 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
567 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
568 <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}"/>
570 <target name="-post-compile-test-single">
571 <!-- Empty placeholder for easier customization. -->
572 <!-- You can override this target in the ../build.xml file. -->
574 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
576 JUNIT EXECUTION SECTION
578 <target depends="init" if="have.tests" name="-pre-test-run">
579 <mkdir dir="${build.test.results.dir}"/>
581 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
582 <ejbjarproject2:junit testincludes="**/*Test.java"/>
584 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
585 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
587 <target depends="init" if="have.tests" name="test-report"/>
588 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
589 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
590 <target depends="init" if="have.tests" name="-pre-test-run-single">
591 <mkdir dir="${build.test.results.dir}"/>
593 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
594 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
595 <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
597 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
598 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
600 <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"/>
602 JUNIT DEBUGGING SECTION
604 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
605 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
606 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
607 <delete file="${test.report.file}"/>
608 <!-- the directory must exist, otherwise the XML formatter would fail -->
609 <mkdir dir="${build.test.results.dir}"/>
610 <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}">
612 <arg value="showoutput=true"/>
613 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
614 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
616 </ejbjarproject1:debug>
618 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
619 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
621 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
622 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
623 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
625 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
629 <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
630 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
632 <target depends="init" name="-do-clean">
633 <delete dir="${build.dir}"/>
634 <delete dir="${dist.dir}"/>
636 <target name="-post-clean">
637 <!-- Empty placeholder for easier customization. -->
638 <!-- You can override this target in the ../build.xml file. -->
640 <target depends="init" if="netbeans.home" name="undeploy-clean">
641 <nbundeploy failOnError="false" startServer="false"/>
643 <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
644 <target depends="clean" name="clean-ear"/>