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 <condition property="missing.j2ee.server.home">
145 <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
147 <isset property="j2ee.server.home"/>
151 <fail if="missing.j2ee.server.home">
152 The Java EE server classpath is not correctly set up - server home directory is missing.
153 Either open the project in the IDE and assign the server or setup the server classpath manually.
154 For example like this:
155 ant -Dj2ee.server.home=<app_server_installation_directory>
157 <fail unless="j2ee.platform.classpath">
158 The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
159 Either open the project in the IDE and assign the server or setup the server classpath manually.
160 For example like this:
161 ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
162 or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
165 <target name="-init-macrodef-property">
166 <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
167 <attribute name="name"/>
168 <attribute name="value"/>
170 <property name="@{name}" value="${@{value}}"/>
174 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
175 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
176 <attribute default="${src.dir}" name="srcdir"/>
177 <attribute default="${build.classes.dir}" name="destdir"/>
178 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
179 <attribute default="${javac.processorpath}" name="processorpath"/>
180 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
181 <attribute default="${includes}" name="includes"/>
182 <attribute default="${excludes}" name="excludes"/>
183 <attribute default="${javac.debug}" name="debug"/>
184 <attribute default="${empty.dir}" name="gensrcdir"/>
185 <element name="customize" optional="true"/>
187 <property name="javac.compilerargs" value=""/>
188 <property location="${build.dir}/empty" name="empty.dir"/>
189 <mkdir dir="${empty.dir}"/>
190 <mkdir dir="@{apgeneratedsrcdir}"/>
191 <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}">
193 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
198 <path path="@{classpath}"/>
200 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
201 <compilerarg line="${javac.compilerargs}"/>
202 <compilerarg value="-processorpath"/>
203 <compilerarg path="@{processorpath}:${empty.dir}"/>
204 <compilerarg line="${ap.processors.internal}"/>
205 <compilerarg value="-s"/>
206 <compilerarg path="@{apgeneratedsrcdir}"/>
207 <compilerarg line="${ap.proc.none.internal}"/>
213 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
214 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
215 <attribute default="${src.dir}" name="srcdir"/>
216 <attribute default="${build.classes.dir}" name="destdir"/>
217 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
218 <attribute default="${javac.processorpath}" name="processorpath"/>
219 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
220 <attribute default="${includes}" name="includes"/>
221 <attribute default="${excludes}" name="excludes"/>
222 <attribute default="${javac.debug}" name="debug"/>
223 <attribute default="${empty.dir}" name="gensrcdir"/>
224 <element name="customize" optional="true"/>
226 <property name="javac.compilerargs" value=""/>
227 <property location="${build.dir}/empty" name="empty.dir"/>
228 <mkdir dir="${empty.dir}"/>
229 <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}">
231 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
236 <path path="@{classpath}"/>
238 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
239 <compilerarg line="${javac.compilerargs}"/>
245 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
246 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
247 <attribute default="${src.dir}" name="srcdir"/>
248 <attribute default="${build.classes.dir}" name="destdir"/>
249 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
251 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
253 <path path="@{classpath}"/>
258 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
259 <attribute default="${build.classes.dir}" name="destdir"/>
261 <fail unless="javac.includes">Must set javac.includes</fail>
262 <pathconvert pathsep="," property="javac.includes.binary">
264 <filelist dir="@{destdir}" files="${javac.includes}"/>
266 <globmapper from="*.java" to="*.class"/>
269 <files includes="${javac.includes.binary}"/>
274 <target name="-init-macrodef-junit">
275 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
276 <attribute default="${includes}" name="includes"/>
277 <attribute default="${excludes}" name="excludes"/>
278 <attribute default="**" name="testincludes"/>
280 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
281 <batchtest todir="${build.test.results.dir}">
282 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
283 <filename name="@{testincludes}"/>
287 <path path="${run.test.classpath}"/>
288 <path path="${j2ee.platform.classpath}"/>
289 <path path="${j2ee.platform.embeddableejb.classpath}"/>
292 <propertyref prefix="test-sys-prop."/>
293 <mapper from="test-sys-prop.*" to="*" type="glob"/>
295 <formatter type="brief" usefile="false"/>
296 <formatter type="xml"/>
297 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
298 <jvmarg line="${runmain.jvmargs}"/>
303 <target name="-init-macrodef-java">
304 <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
305 <attribute default="${main.class}" name="classname"/>
306 <element name="customize" optional="true"/>
308 <java classname="@{classname}" fork="true">
309 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
310 <jvmarg line="${runmain.jvmargs}"/>
312 <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
315 <propertyref prefix="run-sys-prop."/>
316 <mapper from="run-sys-prop.*" to="*" type="glob"/>
323 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
324 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
325 <attribute default="${main.class}" name="name"/>
326 <attribute default="${debug.classpath}" name="classpath"/>
328 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
330 <path path="@{classpath}"/>
335 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
336 <attribute default="${build.classes.dir}" name="dir"/>
339 <fileset dir="@{dir}" includes="${fix.classes}">
340 <include name="${fix.includes}*.class"/>
345 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
351 <target name="-init-debug-args">
352 <property name="version-output" value="java version "${ant.java.version}"/>
353 <condition property="have-jdk-older-than-1.4">
355 <contains string="${version-output}" substring="java version "1.0"/>
356 <contains string="${version-output}" substring="java version "1.1"/>
357 <contains string="${version-output}" substring="java version "1.2"/>
358 <contains string="${version-output}" substring="java version "1.3"/>
361 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
362 <istrue value="${have-jdk-older-than-1.4}"/>
364 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
365 <os family="windows"/>
367 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
368 <isset property="debug.transport"/>
371 <target depends="-init-debug-args" name="-init-macrodef-debug">
372 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
373 <attribute default="${main.class}" name="classname"/>
374 <attribute default="${debug.classpath}" name="classpath"/>
375 <attribute default="${application.args}" name="args"/>
376 <element name="customize" optional="true"/>
378 <java classname="@{classname}" fork="true">
379 <jvmarg line="${debug-args-line}"/>
380 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
381 <jvmarg line="${runmain.jvmargs}"/>
383 <path path="@{classpath}"/>
385 <arg line="@{args}"/>
391 <target name="-init-taskdefs">
392 <fail unless="libs.CopyLibs.classpath">
393 The libs.CopyLibs.classpath property is not set up.
394 This property must point to
395 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
396 of NetBeans IDE installation and is usually located at
397 <netbeans_installation>/java<version>/ant/extra folder.
398 Either open the project in the IDE and make sure CopyLibs library
399 exists or setup the property manually. For example like this:
400 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
402 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
404 <target name="-init-ap-cmdline-properties">
405 <property name="annotation.processing.enabled" value="true"/>
406 <property name="annotation.processing.processors.list" value=""/>
407 <property name="annotation.processing.run.all.processors" value="true"/>
408 <property name="javac.processorpath" value="${javac.classpath}"/>
409 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
410 <condition property="ap.supported.internal" value="true">
412 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
416 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
417 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
418 <isfalse value="${annotation.processing.run.all.processors}"/>
420 <condition else="" property="ap.proc.none.internal" value="-proc:none">
421 <isfalse value="${annotation.processing.enabled}"/>
424 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
425 <property name="ap.cmd.line.internal" value=""/>
427 <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"/>
431 <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
432 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
433 <property name="deploy.on.save" value="false"/>
435 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
436 <property name="deploy.on.save" value="false"/>
439 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
440 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="jar">
441 <property name="deploy.on.save" value="false"/>
443 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="jar">
444 <property name="deploy.on.save" value="false"/>
447 <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
448 <target depends="init,deps-jar" name="-pre-pre-compile">
449 <mkdir dir="${build.classes.dir}"/>
450 <mkdir dir="${build.ear.classes.dir}"/>
452 <target name="-pre-compile">
453 <!-- Empty placeholder for easier customization. -->
454 <!-- You can override this target in the ../build.xml file. -->
456 <target depends="compile" name="library-inclusion-in-archive">
457 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${build.classes.dir}"/>
458 <copyfiles files="${reference.SuperDAO.jar}" todir="${build.classes.dir}"/>
460 <target depends="compile" name="library-inclusion-in-manifest">
461 <copyfiles files="${reference.nekurak_net-lib.jar}" todir="${dist.ear.dir}/lib"/>
462 <copyfiles files="${reference.SuperDAO.jar}" todir="${dist.ear.dir}/lib"/>
463 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
465 <target name="-copy-meta-inf">
466 <copy todir="${classes.dir}">
467 <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
469 <copy todir="${classes.dir}/META-INF">
470 <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
473 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
474 <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
475 <copy todir="${classes.dir}">
476 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
479 <target name="-post-compile">
480 <!-- Empty placeholder for easier customization. -->
481 <!-- You can override this target in the ../build.xml file. -->
483 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
484 <target name="-pre-compile-single">
485 <!-- Empty placeholder for easier customization. -->
486 <!-- You can override this target in the ../build.xml file. -->
488 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
489 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
490 <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
492 <target name="-post-compile-single">
493 <!-- Empty placeholder for easier customization. -->
494 <!-- You can override this target in the ../build.xml file. -->
496 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
498 DIST BUILDING SECTION
500 <target name="-pre-dist">
501 <!-- Empty placeholder for easier customization. -->
502 <!-- You can override this target in the ../build.xml file. -->
504 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
505 <dirname file="${dist.jar}" property="dist.jar.dir"/>
506 <mkdir dir="${dist.jar.dir}"/>
507 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
508 <fileset dir="${build.classes.dir}"/>
511 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
512 <dirname file="${dist.jar}" property="dist.jar.dir"/>
513 <mkdir dir="${dist.jar.dir}"/>
514 <jar compress="${jar.compress}" jarfile="${dist.jar}">
515 <fileset dir="${build.classes.dir}"/>
519 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
521 <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">
522 <dirname file="${dist.jar}" property="dist.jar.dir"/>
523 <mkdir dir="${dist.jar.dir}"/>
524 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
525 <fileset dir="${build.classes.dir}"/>
528 <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">
529 <dirname file="${dist.jar}" property="dist.jar.dir"/>
530 <mkdir dir="${dist.jar.dir}"/>
531 <jar compress="${jar.compress}" jarfile="${dist.jar}">
532 <fileset dir="${build.classes.dir}"/>
535 <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"/>
536 <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"/>
538 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
540 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
541 <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
542 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
543 <mkdir dir="${dist.jar.dir}"/>
544 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
545 <fileset dir="${build.ear.classes.dir}"/>
548 <target name="-post-dist">
549 <!-- Empty placeholder for easier customization. -->
550 <!-- You can override this target in the ../build.xml file. -->
552 <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
553 <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"/>
557 <target depends="run-deploy" description="Deploy to server." name="run"/>
558 <target name="-init-deploy">
559 <property name="include.jar.manifest" value=""/>
561 <target name="pre-run-deploy">
562 <!-- Empty placeholder for easier customization. -->
563 <!-- You can override this target in the ../build.xml file. -->
565 <target name="post-run-deploy">
566 <!-- Empty placeholder for easier customization. -->
567 <!-- You can override this target in the ../build.xml file. -->
569 <target name="-pre-nbmodule-run-deploy">
570 <!-- Empty placeholder for easier customization. -->
571 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
573 <target name="-post-nbmodule-run-deploy">
574 <!-- Empty placeholder for easier customization. -->
575 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
577 <target name="-run-deploy-am">
578 <!-- Task to deploy to the Access Manager runtime. -->
580 <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">
583 <target if="netbeans.home" name="-run-deploy-nb">
584 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
586 <target name="-init-deploy-ant" unless="netbeans.home">
587 <property name="deploy.ant.archive" value="${dist.jar}"/>
588 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
589 <property name="deploy.ant.enabled" value="true"/>
591 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
592 <target if="netbeans.home" name="-run-undeploy-nb">
593 <fail message="Undeploy is not supported from within the IDE"/>
595 <target depends="dist" name="verify">
596 <nbverify file="${dist.jar}"/>
598 <target depends="init,compile-single" name="run-main">
599 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
600 <ejbjarproject3:java classname="${run.class}"/>
605 <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
606 <nbdeploy debugmode="true"/>
607 <antcall target="connect-debugger"/>
609 <target name="connect-debugger" unless="is.debugged">
610 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" name="${name}" transport="${jpda.transport}">
612 <path path="${debug.classpath}"/>
615 <path path="${web.docbase.dir}"/>
619 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
620 <ejbjarproject1:nbjpdastart/>
622 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
623 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
624 <ejbjarproject1:debug/>
626 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
627 <target depends="init" name="-pre-debug-fix">
628 <fail unless="fix.includes">Must set fix.includes</fail>
629 <property name="javac.includes" value="${fix.includes}.java"/>
631 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
632 <ejbjarproject1:nbjpdareload/>
634 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
638 <target depends="init" if="have.sources" name="javadoc-build">
639 <mkdir dir="${dist.javadoc.dir}"/>
640 <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}">
642 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
644 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
645 <filename name="**/*.java"/>
647 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
648 <include name="**/*.java"/>
652 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
653 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
655 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
657 JUNIT COMPILATION SECTION
659 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
660 <mkdir dir="${build.test.classes.dir}"/>
661 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
663 <target name="-pre-compile-test">
664 <!-- Empty placeholder for easier customization. -->
665 <!-- You can override this target in the ../build.xml file. -->
667 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
668 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
669 <copy todir="${build.test.classes.dir}">
670 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
673 <target name="-post-compile-test">
674 <!-- Empty placeholder for easier customization. -->
675 <!-- You can override this target in the ../build.xml file. -->
677 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
678 <target name="-pre-compile-test-single">
679 <!-- Empty placeholder for easier customization. -->
680 <!-- You can override this target in the ../build.xml file. -->
682 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
683 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
684 <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}"/>
686 <target name="-post-compile-test-single">
687 <!-- Empty placeholder for easier customization. -->
688 <!-- You can override this target in the ../build.xml file. -->
690 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
692 JUNIT EXECUTION SECTION
694 <target depends="init" if="have.tests" name="-pre-test-run">
695 <mkdir dir="${build.test.results.dir}"/>
697 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
698 <ejbjarproject2:junit testincludes="**/*Test.java"/>
700 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
701 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
703 <target depends="init" if="have.tests" name="test-report"/>
704 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
705 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
706 <target depends="init" if="have.tests" name="-pre-test-run-single">
707 <mkdir dir="${build.test.results.dir}"/>
709 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
710 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
711 <ejbjarproject2:junit excludes="" includes="${test.includes}"/>
713 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
714 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
716 <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"/>
718 JUNIT DEBUGGING SECTION
720 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
721 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
722 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
723 <delete file="${test.report.file}"/>
724 <!-- the directory must exist, otherwise the XML formatter would fail -->
725 <mkdir dir="${build.test.results.dir}"/>
726 <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}">
728 <arg value="showoutput=true"/>
729 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
730 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
732 </ejbjarproject1:debug>
734 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
735 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
737 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
738 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
739 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
741 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
745 <target depends="init" if="no.dist.ear.dir" name="deps-clean" unless="no.deps">
746 <ant antfile="${project.SuperDAO}/build.xml" inheritall="false" target="clean"/>
747 <ant antfile="${project.nekurak_net-lib}/build.xml" inheritall="false" target="clean"/>
749 <target depends="init" name="-do-clean">
750 <delete dir="${build.dir}"/>
751 <delete dir="${dist.dir}"/>
753 <target name="-post-clean">
754 <!-- Empty placeholder for easier customization. -->
755 <!-- You can override this target in the ../build.xml file. -->
757 <target depends="init" if="netbeans.home" name="undeploy-clean">
758 <nbundeploy failOnError="false" startServer="false"/>
760 <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
761 <target depends="clean" name="clean-ear"/>