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="addressbook-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 name="-pre-init-libraries">
39 <property location=".\lib\nblibraries.properties" name="libraries.path"/>
40 <dirname file="${libraries.path}" property="libraries.dir.nativedirsep"/>
41 <pathconvert dirsep="/" property="libraries.dir">
42 <path path="${libraries.dir.nativedirsep}"/>
44 <basename file="${libraries.path}" property="libraries.basename" suffix=".properties"/>
45 <available file="${libraries.dir}/${libraries.basename}-private.properties" property="private.properties.available"/>
47 <target depends="-pre-init-libraries" if="private.properties.available" name="-init-private-libraries">
48 <loadproperties encoding="ISO-8859-1" srcfile="${libraries.dir}/${libraries.basename}-private.properties">
50 <replacestring from="$${base}" to="${libraries.dir}"/>
55 <target depends="-pre-init,-init-private,-init-private-libraries" name="-init-libraries">
56 <loadproperties encoding="ISO-8859-1" srcfile="${libraries.path}">
58 <replacestring from="$${base}" to="${libraries.dir}"/>
63 <target depends="-pre-init,-init-private,-init-libraries" name="-init-userdir">
64 <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
66 <target depends="-pre-init,-init-private,-init-libraries,-init-userdir" name="-init-user">
67 <property file="${user.properties.file}"/>
68 <!-- The two properties below are usually overridden -->
69 <!-- by the active platform. Just a fallback. -->
70 <property name="default.javac.source" value="1.4"/>
71 <property name="default.javac.target" value="1.4"/>
73 <target depends="-pre-init,-init-private,-init-libraries,-init-userdir,-init-user" name="-init-project">
74 <property file="nbproject/project.properties"/>
76 <target depends="-pre-init,-init-private,-init-libraries,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
77 <!-- Ensure configuration directory exists. -->
78 <mkdir dir="${meta.inf}"/>
79 <property name="runmain.jvmargs" value=""/>
80 <condition property="have.tests">
82 <available file="${test.src.dir}"/>
85 <condition property="have.sources">
87 <available file="${src.dir}"/>
90 <condition property="netbeans.home+have.tests">
92 <isset property="netbeans.home"/>
93 <isset property="have.tests"/>
96 <condition property="no.javadoc.preview">
97 <isfalse value="${javadoc.preview}"/>
99 <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
101 Variables needed to support directory deployment.
103 <condition property="do.package.with.custom.manifest.not.directory.deploy">
105 <isset property="has.custom.manifest"/>
106 <isfalse value="${directory.deployment.supported}"/>
109 <condition property="do.package.without.custom.manifest.not.directory.deploy">
112 <isset property="has.custom.manifest"/>
114 <isfalse value="${directory.deployment.supported}"/>
117 <!--End Variables needed to support directory deployment.-->
118 <condition property="classes.dir" value="${build.ear.classes.dir}">
119 <isset property="dist.ear.dir"/>
121 <property name="classes.dir" value="${build.classes.dir}"/>
122 <condition property="no.deps">
124 <istrue value="${no.dependencies}"/>
127 <condition property="no.dist.ear.dir">
129 <isset property="dist.ear.dir"/>
132 <property name="source.encoding" value="${file.encoding}"/>
133 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
135 <isset property="javadoc.encoding"/>
137 <equals arg1="${javadoc.encoding}" arg2=""/>
141 <property name="javadoc.encoding.used" value="${source.encoding}"/>
142 <property name="includes" value="**"/>
143 <property name="excludes" value=""/>
144 <condition property="is.server.weblogic" value="true">
145 <equals arg1="${j2ee.server.type}" arg2="WebLogic9"/>
147 <condition property="is.jars.in.ejbjar" value="true">
148 <equals arg1="${jars.in.ejbjar}" arg2="true"/>
150 <condition else="false" property="jdkBug6558476">
152 <matches pattern="1\.[56]" string="${java.specification.version}"/>
158 <property name="javac.fork" value="${jdkBug6558476}"/>
159 <condition property="junit.available">
161 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
162 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
165 <condition property="testng.available">
166 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
168 <condition property="junit+testng.available">
170 <istrue value="${junit.available}"/>
171 <istrue value="${testng.available}"/>
174 <condition else="testng" property="testng.mode" value="mixed">
175 <istrue value="${junit+testng.available}"/>
177 <condition else="" property="testng.debug.mode" value="-mixed">
178 <istrue value="${junit+testng.available}"/>
181 <target depends="init" name="-init-cos" unless="deploy.on.save">
182 <condition property="deploy.on.save" value="true">
184 <istrue value="${j2ee.deploy.on.save}"/>
185 <istrue value="${j2ee.compile.on.save}"/>
189 <target name="-post-init">
190 <!-- Empty placeholder for easier customization. -->
191 <!-- You can override this target in the ../build.xml file. -->
193 <target depends="-pre-init,-init-private,-init-libraries,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
194 <fail unless="src.dir">Must set src.dir</fail>
195 <fail unless="test.src.dir">Must set test.src.dir</fail>
196 <fail unless="build.dir">Must set build.dir</fail>
197 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
198 <fail unless="dist.dir">Must set dist.dir</fail>
199 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
200 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
201 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
202 <fail unless="dist.jar">Must set dist.jar</fail>
203 <condition property="missing.j2ee.server.home">
205 <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
207 <isset property="j2ee.server.home"/>
211 <fail if="missing.j2ee.server.home">
212 The Java EE server classpath is not correctly set up - server home directory is missing.
213 Either open the project in the IDE and assign the server or setup the server classpath manually.
214 For example like this:
215 ant -Dj2ee.server.home=<app_server_installation_directory>
217 <fail unless="j2ee.platform.classpath">
218 The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
219 Either open the project in the IDE and assign the server or setup the server classpath manually.
220 For example like this:
221 ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
222 or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
225 <target name="-init-macrodef-property">
226 <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
227 <attribute name="name"/>
228 <attribute name="value"/>
230 <property name="@{name}" value="${@{value}}"/>
234 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
235 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
236 <attribute default="${src.dir}" name="srcdir"/>
237 <attribute default="${build.classes.dir}" name="destdir"/>
238 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
239 <attribute default="${javac.processorpath}" name="processorpath"/>
240 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
241 <attribute default="${includes}" name="includes"/>
242 <attribute default="${excludes}" name="excludes"/>
243 <attribute default="${javac.debug}" name="debug"/>
244 <attribute default="${empty.dir}" name="gensrcdir"/>
245 <element name="customize" optional="true"/>
247 <property name="javac.compilerargs" value=""/>
248 <property location="${build.dir}/empty" name="empty.dir"/>
249 <mkdir dir="${empty.dir}"/>
250 <mkdir dir="@{apgeneratedsrcdir}"/>
251 <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}">
253 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
258 <path path="@{classpath}"/>
260 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
261 <compilerarg line="${javac.compilerargs}"/>
262 <compilerarg value="-processorpath"/>
263 <compilerarg path="@{processorpath}:${empty.dir}"/>
264 <compilerarg line="${ap.processors.internal}"/>
265 <compilerarg value="-s"/>
266 <compilerarg path="@{apgeneratedsrcdir}"/>
267 <compilerarg line="${ap.proc.none.internal}"/>
273 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
274 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
275 <attribute default="${src.dir}" name="srcdir"/>
276 <attribute default="${build.classes.dir}" name="destdir"/>
277 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
278 <attribute default="${javac.processorpath}" name="processorpath"/>
279 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
280 <attribute default="${includes}" name="includes"/>
281 <attribute default="${excludes}" name="excludes"/>
282 <attribute default="${javac.debug}" name="debug"/>
283 <attribute default="${empty.dir}" name="gensrcdir"/>
284 <element name="customize" optional="true"/>
286 <property name="javac.compilerargs" value=""/>
287 <property location="${build.dir}/empty" name="empty.dir"/>
288 <mkdir dir="${empty.dir}"/>
289 <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}">
291 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
296 <path path="@{classpath}"/>
298 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
299 <compilerarg line="${javac.compilerargs}"/>
305 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
306 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
307 <attribute default="${src.dir}" name="srcdir"/>
308 <attribute default="${build.classes.dir}" name="destdir"/>
309 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
311 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
313 <path path="@{classpath}"/>
318 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
319 <attribute default="${build.classes.dir}" name="destdir"/>
321 <fail unless="javac.includes">Must set javac.includes</fail>
322 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
324 <filelist dir="@{destdir}" files="${javac.includes}"/>
326 <globmapper from="*.java" to="*.class"/>
328 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
329 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
331 <files includesfile="${javac.includesfile.binary}"/>
333 <delete file="${javac.includesfile.binary}"/>
337 <target if="${junit.available}" name="-init-macrodef-junit-init">
338 <condition else="false" property="nb.junit.batch" value="true">
340 <istrue value="${junit.available}"/>
342 <isset property="test.method"/>
346 <condition else="false" property="nb.junit.single" value="true">
348 <istrue value="${junit.available}"/>
349 <isset property="test.method"/>
353 <target name="-init-test-properties">
354 <property name="test.binaryincludes" value="<nothing>"/>
355 <property name="test.binarytestincludes" value=""/>
356 <property name="test.binaryexcludes" value=""/>
358 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
359 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
360 <attribute default="${includes}" name="includes"/>
361 <attribute default="${excludes}" name="excludes"/>
362 <attribute default="**" name="testincludes"/>
363 <attribute default="" name="testmethods"/>
364 <element name="customize" optional="true"/>
366 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
367 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
369 <propertyref prefix="test-sys-prop."/>
370 <mapper from="test-sys-prop.*" to="*" type="glob"/>
372 <formatter type="brief" usefile="false"/>
373 <formatter type="xml"/>
374 <jvmarg value="-ea"/>
380 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
381 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
382 <attribute default="${includes}" name="includes"/>
383 <attribute default="${excludes}" name="excludes"/>
384 <attribute default="**" name="testincludes"/>
385 <attribute default="" name="testmethods"/>
386 <element name="customize" optional="true"/>
388 <property name="run.jvmargs.ide" value=""/>
389 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
390 <batchtest todir="${build.test.results.dir}">
391 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
392 <filename name="@{testincludes}"/>
394 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
395 <filename name="${test.binarytestincludes}"/>
399 <propertyref prefix="test-sys-prop."/>
400 <mapper from="test-sys-prop.*" to="*" type="glob"/>
402 <formatter type="brief" usefile="false"/>
403 <formatter type="xml"/>
404 <jvmarg value="-ea"/>
405 <jvmarg line="${run.jvmargs.ide}"/>
411 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
412 <target if="${testng.available}" name="-init-macrodef-testng">
413 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
414 <attribute default="${includes}" name="includes"/>
415 <attribute default="${excludes}" name="excludes"/>
416 <attribute default="**" name="testincludes"/>
417 <attribute default="" name="testmethods"/>
418 <element name="customize" optional="true"/>
420 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
421 <isset property="test.method"/>
423 <union id="test.set">
424 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
425 <filename name="@{testincludes}"/>
428 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
429 <testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="addressbook-ejb" testname="TestNG tests" workingDir="${basedir}">
430 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
432 <propertyref prefix="test-sys-prop."/>
433 <mapper from="test-sys-prop.*" to="*" type="glob"/>
440 <target name="-init-macrodef-test-impl">
441 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
442 <attribute default="${includes}" name="includes"/>
443 <attribute default="${excludes}" name="excludes"/>
444 <attribute default="**" name="testincludes"/>
445 <attribute default="" name="testmethods"/>
446 <element implicit="true" name="customize" optional="true"/>
448 <echo>No tests executed.</echo>
452 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
453 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
454 <attribute default="${includes}" name="includes"/>
455 <attribute default="${excludes}" name="excludes"/>
456 <attribute default="**" name="testincludes"/>
457 <attribute default="" name="testmethods"/>
458 <element implicit="true" name="customize" optional="true"/>
460 <ejbjarproject2:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
462 </ejbjarproject2:junit>
466 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
467 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
468 <attribute default="${includes}" name="includes"/>
469 <attribute default="${excludes}" name="excludes"/>
470 <attribute default="**" name="testincludes"/>
471 <attribute default="" name="testmethods"/>
472 <element implicit="true" name="customize" optional="true"/>
474 <ejbjarproject2:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
476 </ejbjarproject2:testng>
480 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
481 <macrodef name="test" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
482 <attribute default="${includes}" name="includes"/>
483 <attribute default="${excludes}" name="excludes"/>
484 <attribute default="**" name="testincludes"/>
485 <attribute default="" name="testmethods"/>
487 <ejbjarproject2:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
490 <path path="${run.test.classpath}"/>
491 <path path="${j2ee.platform.classpath}"/>
492 <path path="${j2ee.platform.embeddableejb.classpath}"/>
494 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
495 <jvmarg line="${runmain.jvmargs}"/>
497 </ejbjarproject2:test-impl>
501 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
502 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
503 <attribute default="${includes}" name="includes"/>
504 <attribute default="${excludes}" name="excludes"/>
505 <attribute default="**" name="testincludes"/>
506 <attribute default="" name="testmethods"/>
507 <element name="customize" optional="true"/>
509 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
510 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
512 <propertyref prefix="test-sys-prop."/>
513 <mapper from="test-sys-prop.*" to="*" type="glob"/>
515 <formatter type="brief" usefile="false"/>
516 <formatter type="xml"/>
517 <jvmarg value="-ea"/>
518 <jvmarg line="${debug-args-line}"/>
519 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
525 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
526 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
527 <attribute default="${includes}" name="includes"/>
528 <attribute default="${excludes}" name="excludes"/>
529 <attribute default="**" name="testincludes"/>
530 <attribute default="" name="testmethods"/>
531 <element name="customize" optional="true"/>
533 <property name="run.jvmargs.ide" value=""/>
534 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
535 <batchtest todir="${build.test.results.dir}">
536 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
537 <filename name="@{testincludes}"/>
539 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
540 <filename name="${test.binarytestincludes}"/>
544 <propertyref prefix="test-sys-prop."/>
545 <mapper from="test-sys-prop.*" to="*" type="glob"/>
547 <formatter type="brief" usefile="false"/>
548 <formatter type="xml"/>
549 <jvmarg value="-ea"/>
550 <jvmarg line="${run.jvmargs.ide}"/>
551 <jvmarg line="${debug-args-line}"/>
552 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
558 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
559 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
560 <attribute default="${includes}" name="includes"/>
561 <attribute default="${excludes}" name="excludes"/>
562 <attribute default="**" name="testincludes"/>
563 <attribute default="" name="testmethods"/>
564 <element implicit="true" name="customize" optional="true"/>
566 <ejbjarproject2:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
568 </ejbjarproject2:junit-debug>
572 <target if="${testng.available}" name="-init-macrodef-testng-debug">
573 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
574 <attribute default="${main.class}" name="testClass"/>
575 <attribute default="" name="testMethod"/>
576 <element name="customize2" optional="true"/>
578 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
579 <isset property="test.method"/>
581 <condition else="-suitename addressbook-ejb -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
582 <matches pattern=".*\.xml" string="@{testClass}"/>
584 <delete dir="${build.test.results.dir}" quiet="true"/>
585 <mkdir dir="${build.test.results.dir}"/>
586 <ejbjarproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG" classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
589 <jvmarg value="-ea"/>
590 <arg line="${testng.debug.mode}"/>
591 <arg line="-d ${build.test.results.dir}"/>
592 <arg line="-listener org.testng.reporters.VerboseReporter"/>
594 </ejbjarproject1:debug>
598 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
599 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
600 <attribute default="${main.class}" name="testClass"/>
601 <attribute default="" name="testMethod"/>
602 <element implicit="true" name="customize2" optional="true"/>
604 <ejbjarproject2:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
606 </ejbjarproject2:testng-debug>
610 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
611 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
612 <attribute default="${includes}" name="includes"/>
613 <attribute default="${excludes}" name="excludes"/>
614 <attribute default="**" name="testincludes"/>
615 <attribute default="" name="testmethods"/>
616 <attribute default="${main.class}" name="testClass"/>
617 <attribute default="" name="testMethod"/>
619 <ejbjarproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
622 <path path="${run.test.classpath}"/>
623 <path path="${j2ee.platform.classpath}"/>
624 <path path="${j2ee.platform.embeddableejb.classpath}"/>
626 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
627 <jvmarg line="${runmain.jvmargs}"/>
629 </ejbjarproject2:test-debug-impl>
633 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
634 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
635 <attribute default="${includes}" name="includes"/>
636 <attribute default="${excludes}" name="excludes"/>
637 <attribute default="**" name="testincludes"/>
638 <attribute default="" name="testmethods"/>
639 <attribute default="${main.class}" name="testClass"/>
640 <attribute default="" name="testMethod"/>
642 <ejbjarproject2:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
645 <propertyref prefix="test-sys-prop."/>
646 <mapper from="test-sys-prop.*" to="*" type="glob"/>
649 </ejbjarproject2:testng-debug-impl>
653 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
654 <target name="-init-macrodef-java">
655 <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
656 <attribute default="${main.class}" name="classname"/>
657 <element name="customize" optional="true"/>
659 <java classname="@{classname}" fork="true">
660 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
661 <jvmarg line="${runmain.jvmargs}"/>
663 <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
666 <propertyref prefix="run-sys-prop."/>
667 <mapper from="run-sys-prop.*" to="*" type="glob"/>
674 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
675 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
676 <attribute default="${main.class}" name="name"/>
677 <attribute default="${debug.classpath}" name="classpath"/>
679 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
681 <path path="@{classpath}"/>
686 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
687 <attribute default="${build.classes.dir}" name="dir"/>
690 <fileset dir="@{dir}" includes="${fix.classes}">
691 <include name="${fix.includes}*.class"/>
696 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
702 <target name="-init-debug-args">
703 <property name="version-output" value="java version "${ant.java.version}"/>
704 <condition property="have-jdk-older-than-1.4">
706 <contains string="${version-output}" substring="java version "1.0"/>
707 <contains string="${version-output}" substring="java version "1.1"/>
708 <contains string="${version-output}" substring="java version "1.2"/>
709 <contains string="${version-output}" substring="java version "1.3"/>
712 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
713 <istrue value="${have-jdk-older-than-1.4}"/>
715 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
716 <os family="windows"/>
718 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
719 <isset property="debug.transport"/>
722 <target depends="-init-debug-args" name="-init-macrodef-debug">
723 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
724 <attribute default="${main.class}" name="classname"/>
725 <attribute default="${debug.classpath}" name="classpath"/>
726 <attribute default="${application.args}" name="args"/>
727 <element name="customize" optional="true"/>
729 <java classname="@{classname}" fork="true">
730 <jvmarg line="${debug-args-line}"/>
731 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
732 <jvmarg line="${runmain.jvmargs}"/>
734 <path path="@{classpath}"/>
736 <arg line="@{args}"/>
742 <target name="-init-taskdefs">
743 <fail unless="libs.CopyLibs.classpath">
744 The libs.CopyLibs.classpath property is not set up.
745 This property must point to
746 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
747 of NetBeans IDE installation and is usually located at
748 <netbeans_installation>/java<version>/ant/extra folder.
749 Either open the project in the IDE and make sure CopyLibs library
750 exists or setup the property manually. For example like this:
751 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
753 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
755 <target name="-init-ap-cmdline-properties">
756 <property name="annotation.processing.enabled" value="true"/>
757 <property name="annotation.processing.processors.list" value=""/>
758 <property name="annotation.processing.run.all.processors" value="true"/>
759 <property name="javac.processorpath" value="${javac.classpath}"/>
760 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
761 <condition property="ap.supported.internal" value="true">
763 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
767 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
768 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
769 <isfalse value="${annotation.processing.run.all.processors}"/>
771 <condition else="" property="ap.proc.none.internal" value="-proc:none">
772 <isfalse value="${annotation.processing.enabled}"/>
775 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
776 <property name="ap.cmd.line.internal" value=""/>
779 pre NB7.2 profiling section; consider it deprecated
781 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
782 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
783 <!-- Empty placeholder for easier customization. -->
784 <!-- You can override this target in the ../build.xml file. -->
786 <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
787 <!-- Empty placeholder for easier customization. -->
788 <!-- You can override this target in the ../build.xml file. -->
790 <target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
791 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
792 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
795 end of pre NB7.2 profiling section
797 <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-test,-init-macrodef-test-debug,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
801 <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
802 <ant antfile="${project.addressbook-lib}/build.xml" inheritall="false" target="jar">
803 <property name="deploy.on.save" value="false"/>
806 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
807 <ant antfile="${project.addressbook-lib}/build.xml" inheritall="false" target="jar">
808 <property name="deploy.on.save" value="false"/>
811 <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
812 <target depends="init,deps-jar" name="-pre-pre-compile">
813 <mkdir dir="${build.classes.dir}"/>
814 <mkdir dir="${build.ear.classes.dir}"/>
816 <target name="-pre-compile">
817 <!-- Empty placeholder for easier customization. -->
818 <!-- You can override this target in the ../build.xml file. -->
820 <target depends="compile,-library-inclusion-in-archive-weblogic,-library-inclusion-in-archive-by-user" name="library-inclusion-in-archive"/>
821 <target if="is.jars.in.ejbjar" name="-library-inclusion-in-archive-by-user">
822 <copyfiles files="${reference.addressbook-lib.jar}" todir="${build.classes.dir}"/>
824 <target if="is.server.weblogic" name="-library-inclusion-in-archive-weblogic">
825 <basename file="${reference.addressbook-lib.jar}" property="manifest.reference.addressbook-lib.jar"/>
826 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
827 <attribute name="Extension-List" value="jar-1 "/>
828 <attribute name="jar-1-Extension-Name" value="${manifest.reference.addressbook-lib.jar}"/>
831 <target depends="compile" name="library-inclusion-in-manifest">
832 <copyfiles files="${reference.addressbook-lib.jar}" todir="${dist.ear.dir}/lib"/>
833 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
835 <target name="-copy-meta-inf">
836 <copy todir="${classes.dir}">
837 <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
839 <copy todir="${classes.dir}/META-INF">
840 <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
843 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
844 <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
845 <copy todir="${classes.dir}">
846 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
849 <target name="-post-compile">
850 <!-- Empty placeholder for easier customization. -->
851 <!-- You can override this target in the ../build.xml file. -->
853 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
854 <target name="-pre-compile-single">
855 <!-- Empty placeholder for easier customization. -->
856 <!-- You can override this target in the ../build.xml file. -->
858 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
859 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
860 <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
862 <target name="-post-compile-single">
863 <!-- Empty placeholder for easier customization. -->
864 <!-- You can override this target in the ../build.xml file. -->
866 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
868 DIST BUILDING SECTION
870 <target name="-pre-dist">
871 <!-- Empty placeholder for easier customization. -->
872 <!-- You can override this target in the ../build.xml file. -->
874 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
875 <dirname file="${dist.jar}" property="dist.jar.dir"/>
876 <mkdir dir="${dist.jar.dir}"/>
877 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
878 <fileset dir="${build.classes.dir}"/>
881 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
882 <dirname file="${dist.jar}" property="dist.jar.dir"/>
883 <mkdir dir="${dist.jar.dir}"/>
884 <jar compress="${jar.compress}" jarfile="${dist.jar}">
885 <fileset dir="${build.classes.dir}"/>
889 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
891 <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">
892 <dirname file="${dist.jar}" property="dist.jar.dir"/>
893 <mkdir dir="${dist.jar.dir}"/>
894 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
895 <fileset dir="${build.classes.dir}"/>
898 <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">
899 <dirname file="${dist.jar}" property="dist.jar.dir"/>
900 <mkdir dir="${dist.jar.dir}"/>
901 <jar compress="${jar.compress}" jarfile="${dist.jar}">
902 <fileset dir="${build.classes.dir}"/>
905 <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"/>
906 <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"/>
908 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
910 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
911 <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
912 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
913 <mkdir dir="${dist.jar.dir}"/>
914 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
915 <fileset dir="${build.ear.classes.dir}"/>
918 <target name="-post-dist">
919 <!-- Empty placeholder for easier customization. -->
920 <!-- You can override this target in the ../build.xml file. -->
922 <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
923 <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"/>
927 <target depends="run-deploy" description="Deploy to server." name="run"/>
928 <target name="-init-deploy">
929 <property name="include.jar.manifest" value=""/>
931 <target name="pre-run-deploy">
932 <!-- Empty placeholder for easier customization. -->
933 <!-- You can override this target in the ../build.xml file. -->
935 <target name="post-run-deploy">
936 <!-- Empty placeholder for easier customization. -->
937 <!-- You can override this target in the ../build.xml file. -->
939 <target name="-pre-nbmodule-run-deploy">
940 <!-- Empty placeholder for easier customization. -->
941 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
943 <target name="-post-nbmodule-run-deploy">
944 <!-- Empty placeholder for easier customization. -->
945 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
947 <target name="-run-deploy-am">
948 <!-- Task to deploy to the Access Manager runtime. -->
950 <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,-do-update-breakpoints" name="run-deploy"/>
951 <target if="netbeans.home" name="-run-deploy-nb">
952 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
954 <target name="-init-deploy-ant" unless="netbeans.home">
955 <property name="deploy.ant.archive" value="${dist.jar}"/>
956 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
957 <property name="deploy.ant.enabled" value="true"/>
959 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
960 <target if="netbeans.home" name="-run-undeploy-nb">
961 <fail message="Undeploy is not supported from within the IDE"/>
963 <target depends="dist" name="verify">
964 <nbverify file="${dist.jar}"/>
966 <target depends="init,compile-single" name="run-main">
967 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
968 <ejbjarproject3:java classname="${run.class}"/>
970 <target depends="init" if="netbeans.home" name="-do-update-breakpoints">
971 <ejbjarproject1:nbjpdaappreloaded/>
976 <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
977 <nbdeploy debugmode="true"/>
978 <antcall target="connect-debugger"/>
980 <target name="connect-debugger" unless="is.debugged">
981 <condition property="listeningcp" value="sourcepath">
982 <istrue value="${j2ee.compile.on.save}"/>
984 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${name}" transport="${jpda.transport}">
986 <path path="${debug.classpath}"/>
989 <path path="${web.docbase.dir}"/>
993 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
994 <ejbjarproject1:nbjpdastart/>
996 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
997 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
998 <ejbjarproject1:debug/>
1000 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
1001 <target depends="init" name="-pre-debug-fix">
1002 <fail unless="fix.includes">Must set fix.includes</fail>
1003 <property name="javac.includes" value="${fix.includes}.java"/>
1005 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1006 <ejbjarproject1:nbjpdareload/>
1008 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1015 pre NB7.2 profiling section; consider it deprecated
1017 <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1018 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1019 <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
1020 <isset property="profiler.info.jvmargs.extra"/>
1022 <antcall target="${profiler.startserver.target}"/>
1023 <antcall target="run"/>
1024 <antcall target="-profile-start-loadgen"/>
1026 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1027 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1030 <path path="${run.test.classpath}"/>
1031 <path path="${j2ee.platform.classpath}"/>
1034 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1035 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1036 <jvmarg value="${profiler.info.jvmargs.agent}"/>
1037 <jvmarg line="${profiler.info.jvmargs}"/>
1038 <test name="${profile.class}"/>
1040 <path path="${run.test.classpath}"/>
1041 <path path="${j2ee.platform.classpath}"/>
1044 <propertyref prefix="test-sys-prop."/>
1045 <mapper from="test-sys-prop.*" to="*" type="glob"/>
1047 <formatter type="brief" usefile="false"/>
1048 <formatter type="xml"/>
1051 <target name="start-profiled-server">
1052 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
1053 <jvmarg value="${profiler.info.jvmargs.agent}"/>
1054 <jvmarg value="${profiler.j2ee.agentID}"/>
1055 </nbstartprofiledserver>
1057 <target name="start-profiled-server-extraargs">
1058 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
1059 <jvmarg value="${profiler.info.jvmargs.extra}"/>
1060 <jvmarg value="${profiler.info.jvmargs.agent}"/>
1061 <jvmarg value="${profiler.j2ee.agentID}"/>
1062 </nbstartprofiledserver>
1065 end of pre NB7.2 profiling section
1067 <target if="netbeans.home" name="-profile-check">
1068 <condition property="profiler.configured">
1070 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1071 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1075 <target depends="init,compile,dist-directory-deploy" name="-do-profile">
1077 <nbstartserver profilemode="true"/>
1078 <nbdeploy clientUrlPart="$" forceRedeploy="true" profilemode="true"/>
1079 <antcall target="-profile-start-loadgen"/>
1081 <target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1082 <antcall target="-do-profile"/>
1084 <target depends="-profile-test-single-pre72" name="profile-test-single"/>
1085 <target depends="-profile-check" if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs.agent">
1087 <antcall target="test-single"/>
1089 <target if="profiler.loadgen.path" name="-profile-start-loadgen">
1090 <loadgenstart path="${profiler.loadgen.path}"/>
1095 <target depends="init" if="have.sources" name="javadoc-build">
1096 <mkdir dir="${dist.javadoc.dir}"/>
1097 <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}">
1099 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
1101 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1102 <filename name="**/*.java"/>
1104 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1105 <include name="**/*.java"/>
1108 <copy todir="${dist.javadoc.dir}">
1109 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1110 <filename name="**/doc-files/**"/>
1112 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1113 <include name="**/doc-files/**"/>
1117 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
1118 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1120 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
1122 TEST COMPILATION SECTION
1124 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1125 <mkdir dir="${build.test.classes.dir}"/>
1126 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
1128 <target name="-pre-compile-test">
1129 <!-- Empty placeholder for easier customization. -->
1130 <!-- You can override this target in the ../build.xml file. -->
1132 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
1133 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1134 <copy todir="${build.test.classes.dir}">
1135 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1138 <target name="-post-compile-test">
1139 <!-- Empty placeholder for easier customization. -->
1140 <!-- You can override this target in the ../build.xml file. -->
1142 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1143 <target name="-pre-compile-test-single">
1144 <!-- Empty placeholder for easier customization. -->
1145 <!-- You can override this target in the ../build.xml file. -->
1147 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1148 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1149 <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}"/>
1151 <target name="-post-compile-test-single">
1152 <!-- Empty placeholder for easier customization. -->
1153 <!-- You can override this target in the ../build.xml file. -->
1155 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1157 TEST EXECUTION SECTION
1159 <target depends="init" if="have.tests" name="-pre-test-run">
1160 <mkdir dir="${build.test.results.dir}"/>
1162 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1163 <ejbjarproject2:test includes="${includes}" testincludes="**/*Test.java"/>
1165 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1166 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1168 <target depends="init" if="have.tests" name="test-report"/>
1169 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1170 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1171 <target depends="init" if="have.tests" name="-pre-test-run-single">
1172 <mkdir dir="${build.test.results.dir}"/>
1174 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1175 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1176 <ejbjarproject2:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1178 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1179 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1181 <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"/>
1182 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1183 <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1184 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1185 <ejbjarproject2:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1187 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1188 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1190 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
1192 TEST DEBUGGING SECTION
1194 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
1195 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1196 <ejbjarproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
1198 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
1199 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1200 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1201 <ejbjarproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
1203 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1204 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1206 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1207 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1208 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1209 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1211 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1215 <target depends="init" name="deps-clean" unless="no.deps">
1216 <ant antfile="${project.addressbook-lib}/build.xml" inheritall="false" target="clean"/>
1218 <target depends="init" name="-do-clean">
1219 <delete dir="${build.dir}"/>
1220 <delete dir="${dist.dir}"/>
1222 <target name="-post-clean">
1223 <!-- Empty placeholder for easier customization. -->
1224 <!-- You can override this target in the ../build.xml file. -->
1226 <target depends="init" if="netbeans.home" name="undeploy-clean">
1227 <nbundeploy failOnError="false" startServer="false"/>
1229 <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1230 <target depends="clean" name="clean-ear"/>