Hlasování: funguje zobrazování výsledků i posílání hlasů.
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.SuperDAO}/build.xml" inheritall="false" target="jar">
325 <property name="deploy.on.save" value="false"/>
327 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
328 <property name="deploy.on.save" value="false"/>
331 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
332 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
333 <property name="deploy.on.save" value="false"/>
335 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
336 <property name="deploy.on.save" value="false"/>
339 <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
340 <target depends="init,deps-jar" name="-pre-pre-compile">
341 <mkdir dir="${build.classes.dir}"/>
342 <mkdir dir="${build.ear.classes.dir}"/>
344 <target name="-pre-compile">
345 <!-- Empty placeholder for easier customization. -->
346 <!-- You can override this target in the ../build.xml file. -->
348 <target depends="compile" name="library-inclusion-in-archive">
349 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.classes.dir}"/>
350 <copyfiles files="${reference.SuperDAO.jar}" todir="${build.classes.dir}"/>
352 <target depends="compile" name="library-inclusion-in-manifest">
353 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
354 <copyfiles files="${reference.SuperDAO.jar}" todir="${dist.ear.dir}/lib"/>
355 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
357 <target name="-copy-meta-inf">
358 <copy todir="${classes.dir}">
359 <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
361 <copy todir="${classes.dir}/META-INF">
362 <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
365 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
366 <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
367 <copy todir="${classes.dir}">
368 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
371 <target name="-post-compile">
372 <!-- Empty placeholder for easier customization. -->
373 <!-- You can override this target in the ../build.xml file. -->
375 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
376 <target name="-pre-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" name="-do-compile-single">
381 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
382 <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
384 <target name="-post-compile-single">
385 <!-- Empty placeholder for easier customization. -->
386 <!-- You can override this target in the ../build.xml file. -->
388 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
390 DIST BUILDING SECTION
392 <target name="-pre-dist">
393 <!-- Empty placeholder for easier customization. -->
394 <!-- You can override this target in the ../build.xml file. -->
396 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
397 <dirname file="${dist.jar}" property="dist.jar.dir"/>
398 <mkdir dir="${dist.jar.dir}"/>
399 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
400 <fileset dir="${build.classes.dir}"/>
403 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
404 <dirname file="${dist.jar}" property="dist.jar.dir"/>
405 <mkdir dir="${dist.jar.dir}"/>
406 <jar compress="${jar.compress}" jarfile="${dist.jar}">
407 <fileset dir="${build.classes.dir}"/>
411 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
413 <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">
414 <dirname file="${dist.jar}" property="dist.jar.dir"/>
415 <mkdir dir="${dist.jar.dir}"/>
416 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
417 <fileset dir="${build.classes.dir}"/>
420 <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">
421 <dirname file="${dist.jar}" property="dist.jar.dir"/>
422 <mkdir dir="${dist.jar.dir}"/>
423 <jar compress="${jar.compress}" jarfile="${dist.jar}">
424 <fileset dir="${build.classes.dir}"/>
427 <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"/>
428 <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"/>
430 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
432 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
433 <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
434 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
435 <mkdir dir="${dist.jar.dir}"/>
436 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
437 <fileset dir="${build.ear.classes.dir}"/>
440 <target name="-post-dist">
441 <!-- Empty placeholder for easier customization. -->
442 <!-- You can override this target in the ../build.xml file. -->
444 <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
445 <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"/>
449 <target depends="run-deploy" description="Deploy to server." name="run"/>
450 <target name="-init-deploy">
451 <property name="include.jar.manifest" value=""/>
453 <target name="pre-run-deploy">
454 <!-- Empty placeholder for easier customization. -->
455 <!-- You can override this target in the ../build.xml file. -->
457 <target name="post-run-deploy">
458 <!-- Empty placeholder for easier customization. -->
459 <!-- You can override this target in the ../build.xml file. -->
461 <target name="-pre-nbmodule-run-deploy">
462 <!-- Empty placeholder for easier customization. -->
463 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
465 <target name="-post-nbmodule-run-deploy">
466 <!-- Empty placeholder for easier customization. -->
467 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
469 <target name="-run-deploy-am">
470 <!-- Task to deploy to the Access Manager runtime. -->
472 <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">
475 <target if="netbeans.home" name="-run-deploy-nb">
476 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
478 <target name="-init-deploy-ant" unless="netbeans.home">
479 <property name="deploy.ant.archive" value="${dist.jar}"/>
480 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
481 <property name="deploy.ant.enabled" value="true"/>
483 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
484 <target if="netbeans.home" name="-run-undeploy-nb">
485 <fail message="Undeploy is not supported from within the IDE"/>
487 <target depends="dist" name="verify">
488 <nbverify file="${dist.jar}"/>
490 <target depends="init,compile-single" name="run-main">
491 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
492 <ejbjarproject3:java classname="${run.class}"/>
497 <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
498 <nbdeploy debugmode="true"/>
499 <antcall target="connect-debugger"/>
501 <target name="connect-debugger" unless="is.debugged">
502 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
504 <path path="${debug.classpath}"/>
507 <path path="${web.docbase.dir}"/>
511 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
512 <ejbjarproject1:nbjpdastart/>
514 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
515 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
516 <ejbjarproject1:debug/>
518 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
519 <target depends="init" name="-pre-debug-fix">
520 <fail unless="fix.includes">Must set fix.includes</fail>
521 <property name="javac.includes" value="${fix.includes}.java"/>
523 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
524 <ejbjarproject1:nbjpdareload/>
526 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
530 <target depends="init" name="javadoc-build">
531 <mkdir dir="${dist.javadoc.dir}"/>
532 <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}">
534 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
536 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
537 <filename name="**/*.java"/>
539 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
540 <include name="**/*.java"/>
544 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
545 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
547 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
549 JUNIT COMPILATION SECTION
551 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
552 <mkdir dir="${build.test.classes.dir}"/>
553 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
555 <target name="-pre-compile-test">
556 <!-- Empty placeholder for easier customization. -->
557 <!-- You can override this target in the ../build.xml file. -->
559 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
560 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
561 <copy todir="${build.test.classes.dir}">
562 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
565 <target name="-post-compile-test">
566 <!-- Empty placeholder for easier customization. -->
567 <!-- You can override this target in the ../build.xml file. -->
569 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
570 <target name="-pre-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" if="have.tests" name="-do-compile-test-single">
575 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
576 <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}"/>
578 <target name="-post-compile-test-single">
579 <!-- Empty placeholder for easier customization. -->
580 <!-- You can override this target in the ../build.xml file. -->
582 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
584 JUNIT EXECUTION SECTION
586 <target depends="init" if="have.tests" name="-pre-test-run">
587 <mkdir dir="${build.test.results.dir}"/>
589 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
590 <ejbjarproject2:junit testincludes="**/*Test.java"/>
592 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
593 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
595 <target depends="init" if="have.tests" name="test-report"/>
596 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
597 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
598 <target depends="init" if="have.tests" name="-pre-test-run-single">
599 <mkdir dir="${build.test.results.dir}"/>
601 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
602 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
603 <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
605 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
606 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
608 <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"/>
610 JUNIT DEBUGGING SECTION
612 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
613 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
614 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
615 <delete file="${test.report.file}"/>
616 <!-- the directory must exist, otherwise the XML formatter would fail -->
617 <mkdir dir="${build.test.results.dir}"/>
618 <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}">
620 <arg value="showoutput=true"/>
621 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
622 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
624 </ejbjarproject1:debug>
626 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
627 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
629 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
630 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
631 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
633 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
637 <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
638 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="clean"/>
639 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
641 <target depends="init" name="-do-clean">
642 <delete dir="${build.dir}"/>
643 <delete dir="${dist.dir}"/>
645 <target name="-post-clean">
646 <!-- Empty placeholder for easier customization. -->
647 <!-- You can override this target in the ../build.xml file. -->
649 <target depends="init" if="netbeans.home" name="undeploy-clean">
650 <nbundeploy failOnError="false" startServer="false"/>
652 <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
653 <target depends="clean" name="clean-ear"/>