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="jfinancials-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 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
145 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
147 <isset property="endorsed.classpath"/>
148 <length length="0" string="${endorsed.classpath}" when="greater"/>
151 <condition property="is.server.weblogic" value="true">
152 <equals arg1="${j2ee.server.type}" arg2="WebLogic9"/>
154 <condition property="is.jars.in.ejbjar" value="true">
155 <equals arg1="${jars.in.ejbjar}" arg2="true"/>
157 <condition else="false" property="jdkBug6558476">
159 <matches pattern="1\.[56]" string="${java.specification.version}"/>
165 <property name="javac.fork" value="${jdkBug6558476}"/>
166 <condition property="junit.available">
168 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
169 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
172 <condition property="testng.available">
173 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
175 <condition property="junit+testng.available">
177 <istrue value="${junit.available}"/>
178 <istrue value="${testng.available}"/>
181 <condition else="testng" property="testng.mode" value="mixed">
182 <istrue value="${junit+testng.available}"/>
184 <condition else="" property="testng.debug.mode" value="-mixed">
185 <istrue value="${junit+testng.available}"/>
188 <target depends="init" name="-init-cos" unless="deploy.on.save">
189 <condition property="deploy.on.save" value="true">
191 <istrue value="${j2ee.deploy.on.save}"/>
192 <istrue value="${j2ee.compile.on.save}"/>
196 <target name="-post-init">
197 <!-- Empty placeholder for easier customization. -->
198 <!-- You can override this target in the ../build.xml file. -->
200 <target depends="-pre-init,-init-private,-init-libraries,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
201 <fail unless="src.dir">Must set src.dir</fail>
202 <fail unless="test.src.dir">Must set test.src.dir</fail>
203 <fail unless="build.dir">Must set build.dir</fail>
204 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
205 <fail unless="dist.dir">Must set dist.dir</fail>
206 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
207 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
208 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
209 <fail unless="dist.jar">Must set dist.jar</fail>
210 <condition property="missing.j2ee.server.home">
212 <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
214 <isset property="j2ee.server.home"/>
218 <fail if="missing.j2ee.server.home">
219 The Java EE server classpath is not correctly set up - server home directory is missing.
220 Either open the project in the IDE and assign the server or setup the server classpath manually.
221 For example like this:
222 ant -Dj2ee.server.home=<app_server_installation_directory>
224 <fail unless="j2ee.platform.classpath">
225 The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
226 Either open the project in the IDE and assign the server or setup the server classpath manually.
227 For example like this:
228 ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
229 or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
232 <target name="-init-macrodef-property">
233 <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
234 <attribute name="name"/>
235 <attribute name="value"/>
237 <property name="@{name}" value="${@{value}}"/>
241 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
242 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
243 <attribute default="${src.dir}" name="srcdir"/>
244 <attribute default="${build.classes.dir}" name="destdir"/>
245 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
246 <attribute default="${javac.processorpath}" name="processorpath"/>
247 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
248 <attribute default="${includes}" name="includes"/>
249 <attribute default="${excludes}" name="excludes"/>
250 <attribute default="${javac.debug}" name="debug"/>
251 <attribute default="${empty.dir}" name="gensrcdir"/>
252 <element name="customize" optional="true"/>
254 <property name="javac.compilerargs" value=""/>
255 <property location="${build.dir}/empty" name="empty.dir"/>
256 <mkdir dir="${empty.dir}"/>
257 <mkdir dir="@{apgeneratedsrcdir}"/>
258 <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}">
260 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
265 <path path="@{classpath}"/>
267 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
268 <compilerarg line="${javac.compilerargs}"/>
269 <compilerarg value="-processorpath"/>
270 <compilerarg path="@{processorpath}:${empty.dir}"/>
271 <compilerarg line="${ap.processors.internal}"/>
272 <compilerarg value="-s"/>
273 <compilerarg path="@{apgeneratedsrcdir}"/>
274 <compilerarg line="${ap.proc.none.internal}"/>
280 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
281 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
282 <attribute default="${src.dir}" name="srcdir"/>
283 <attribute default="${build.classes.dir}" name="destdir"/>
284 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
285 <attribute default="${javac.processorpath}" name="processorpath"/>
286 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
287 <attribute default="${includes}" name="includes"/>
288 <attribute default="${excludes}" name="excludes"/>
289 <attribute default="${javac.debug}" name="debug"/>
290 <attribute default="${empty.dir}" name="gensrcdir"/>
291 <element name="customize" optional="true"/>
293 <property name="javac.compilerargs" value=""/>
294 <property location="${build.dir}/empty" name="empty.dir"/>
295 <mkdir dir="${empty.dir}"/>
296 <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}">
298 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
303 <path path="@{classpath}"/>
305 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
306 <compilerarg line="${javac.compilerargs}"/>
312 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
313 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
314 <attribute default="${src.dir}" name="srcdir"/>
315 <attribute default="${build.classes.dir}" name="destdir"/>
316 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
318 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
320 <path path="@{classpath}"/>
325 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
326 <attribute default="${build.classes.dir}" name="destdir"/>
328 <fail unless="javac.includes">Must set javac.includes</fail>
329 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
331 <filelist dir="@{destdir}" files="${javac.includes}"/>
333 <globmapper from="*.java" to="*.class"/>
335 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
336 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
338 <files includesfile="${javac.includesfile.binary}"/>
340 <delete file="${javac.includesfile.binary}"/>
344 <target if="${junit.available}" name="-init-macrodef-junit-init">
345 <condition else="false" property="nb.junit.batch" value="true">
347 <istrue value="${junit.available}"/>
349 <isset property="test.method"/>
353 <condition else="false" property="nb.junit.single" value="true">
355 <istrue value="${junit.available}"/>
356 <isset property="test.method"/>
360 <target name="-init-test-properties">
361 <property name="test.binaryincludes" value="<nothing>"/>
362 <property name="test.binarytestincludes" value=""/>
363 <property name="test.binaryexcludes" value=""/>
365 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
366 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
367 <attribute default="${includes}" name="includes"/>
368 <attribute default="${excludes}" name="excludes"/>
369 <attribute default="**" name="testincludes"/>
370 <attribute default="" name="testmethods"/>
371 <element name="customize" optional="true"/>
373 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
374 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
376 <propertyref prefix="test-sys-prop."/>
377 <mapper from="test-sys-prop.*" to="*" type="glob"/>
379 <formatter type="brief" usefile="false"/>
380 <formatter type="xml"/>
381 <jvmarg value="-ea"/>
387 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
388 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
389 <attribute default="${includes}" name="includes"/>
390 <attribute default="${excludes}" name="excludes"/>
391 <attribute default="**" name="testincludes"/>
392 <attribute default="" name="testmethods"/>
393 <element name="customize" optional="true"/>
395 <property name="run.jvmargs.ide" value=""/>
396 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
397 <batchtest todir="${build.test.results.dir}">
398 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
399 <filename name="@{testincludes}"/>
401 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
402 <filename name="${test.binarytestincludes}"/>
406 <propertyref prefix="test-sys-prop."/>
407 <mapper from="test-sys-prop.*" to="*" type="glob"/>
409 <formatter type="brief" usefile="false"/>
410 <formatter type="xml"/>
411 <jvmarg value="-ea"/>
412 <jvmarg line="${run.jvmargs.ide}"/>
418 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
419 <target if="${testng.available}" name="-init-macrodef-testng">
420 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
421 <attribute default="${includes}" name="includes"/>
422 <attribute default="${excludes}" name="excludes"/>
423 <attribute default="**" name="testincludes"/>
424 <attribute default="" name="testmethods"/>
425 <element name="customize" optional="true"/>
427 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
428 <isset property="test.method"/>
430 <union id="test.set">
431 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
432 <filename name="@{testincludes}"/>
435 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
436 <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="jfinancials-ejb" testname="TestNG tests" workingDir="${basedir}">
437 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
439 <propertyref prefix="test-sys-prop."/>
440 <mapper from="test-sys-prop.*" to="*" type="glob"/>
447 <target name="-init-macrodef-test-impl">
448 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
449 <attribute default="${includes}" name="includes"/>
450 <attribute default="${excludes}" name="excludes"/>
451 <attribute default="**" name="testincludes"/>
452 <attribute default="" name="testmethods"/>
453 <element implicit="true" name="customize" optional="true"/>
455 <echo>No tests executed.</echo>
459 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
460 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
461 <attribute default="${includes}" name="includes"/>
462 <attribute default="${excludes}" name="excludes"/>
463 <attribute default="**" name="testincludes"/>
464 <attribute default="" name="testmethods"/>
465 <element implicit="true" name="customize" optional="true"/>
467 <ejbjarproject2:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
469 </ejbjarproject2:junit>
473 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
474 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
475 <attribute default="${includes}" name="includes"/>
476 <attribute default="${excludes}" name="excludes"/>
477 <attribute default="**" name="testincludes"/>
478 <attribute default="" name="testmethods"/>
479 <element implicit="true" name="customize" optional="true"/>
481 <ejbjarproject2:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
483 </ejbjarproject2:testng>
487 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
488 <macrodef name="test" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
489 <attribute default="${includes}" name="includes"/>
490 <attribute default="${excludes}" name="excludes"/>
491 <attribute default="**" name="testincludes"/>
492 <attribute default="" name="testmethods"/>
494 <ejbjarproject2:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
497 <path path="${run.test.classpath}"/>
498 <path path="${j2ee.platform.classpath}"/>
499 <path path="${j2ee.platform.embeddableejb.classpath}"/>
501 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
502 <jvmarg line="${runmain.jvmargs}"/>
504 </ejbjarproject2:test-impl>
508 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
509 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
510 <attribute default="${includes}" name="includes"/>
511 <attribute default="${excludes}" name="excludes"/>
512 <attribute default="**" name="testincludes"/>
513 <attribute default="" name="testmethods"/>
514 <element name="customize" optional="true"/>
516 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
517 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
519 <propertyref prefix="test-sys-prop."/>
520 <mapper from="test-sys-prop.*" to="*" type="glob"/>
522 <formatter type="brief" usefile="false"/>
523 <formatter type="xml"/>
524 <jvmarg value="-ea"/>
525 <jvmarg line="${debug-args-line}"/>
526 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
532 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
533 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
534 <attribute default="${includes}" name="includes"/>
535 <attribute default="${excludes}" name="excludes"/>
536 <attribute default="**" name="testincludes"/>
537 <attribute default="" name="testmethods"/>
538 <element name="customize" optional="true"/>
540 <property name="run.jvmargs.ide" value=""/>
541 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
542 <batchtest todir="${build.test.results.dir}">
543 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
544 <filename name="@{testincludes}"/>
546 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
547 <filename name="${test.binarytestincludes}"/>
551 <propertyref prefix="test-sys-prop."/>
552 <mapper from="test-sys-prop.*" to="*" type="glob"/>
554 <formatter type="brief" usefile="false"/>
555 <formatter type="xml"/>
556 <jvmarg value="-ea"/>
557 <jvmarg line="${run.jvmargs.ide}"/>
558 <jvmarg line="${debug-args-line}"/>
559 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
565 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
566 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
567 <attribute default="${includes}" name="includes"/>
568 <attribute default="${excludes}" name="excludes"/>
569 <attribute default="**" name="testincludes"/>
570 <attribute default="" name="testmethods"/>
571 <element implicit="true" name="customize" optional="true"/>
573 <ejbjarproject2:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
575 </ejbjarproject2:junit-debug>
579 <target if="${testng.available}" name="-init-macrodef-testng-debug">
580 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
581 <attribute default="${main.class}" name="testClass"/>
582 <attribute default="" name="testMethod"/>
583 <element name="customize2" optional="true"/>
585 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
586 <isset property="test.method"/>
588 <condition else="-suitename jfinancials-ejb -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
589 <matches pattern=".*\.xml" string="@{testClass}"/>
591 <delete dir="${build.test.results.dir}" quiet="true"/>
592 <mkdir dir="${build.test.results.dir}"/>
593 <ejbjarproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG" classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
596 <jvmarg value="-ea"/>
597 <arg line="${testng.debug.mode}"/>
598 <arg line="-d ${build.test.results.dir}"/>
599 <arg line="-listener org.testng.reporters.VerboseReporter"/>
601 </ejbjarproject1:debug>
605 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
606 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
607 <attribute default="${main.class}" name="testClass"/>
608 <attribute default="" name="testMethod"/>
609 <element implicit="true" name="customize2" optional="true"/>
611 <ejbjarproject2:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
613 </ejbjarproject2:testng-debug>
617 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
618 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
619 <attribute default="${includes}" name="includes"/>
620 <attribute default="${excludes}" name="excludes"/>
621 <attribute default="**" name="testincludes"/>
622 <attribute default="" name="testmethods"/>
623 <attribute default="${main.class}" name="testClass"/>
624 <attribute default="" name="testMethod"/>
626 <ejbjarproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
629 <path path="${run.test.classpath}"/>
630 <path path="${j2ee.platform.classpath}"/>
631 <path path="${j2ee.platform.embeddableejb.classpath}"/>
633 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
634 <jvmarg line="${runmain.jvmargs}"/>
636 </ejbjarproject2:test-debug-impl>
640 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
641 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
642 <attribute default="${includes}" name="includes"/>
643 <attribute default="${excludes}" name="excludes"/>
644 <attribute default="**" name="testincludes"/>
645 <attribute default="" name="testmethods"/>
646 <attribute default="${main.class}" name="testClass"/>
647 <attribute default="" name="testMethod"/>
649 <ejbjarproject2:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
652 <propertyref prefix="test-sys-prop."/>
653 <mapper from="test-sys-prop.*" to="*" type="glob"/>
656 </ejbjarproject2:testng-debug-impl>
660 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
661 <target name="-init-macrodef-java">
662 <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
663 <attribute default="${main.class}" name="classname"/>
664 <element name="customize" optional="true"/>
666 <java classname="@{classname}" fork="true">
667 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
668 <jvmarg line="${runmain.jvmargs}"/>
670 <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
673 <propertyref prefix="run-sys-prop."/>
674 <mapper from="run-sys-prop.*" to="*" type="glob"/>
681 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
682 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
683 <attribute default="${main.class}" name="name"/>
684 <attribute default="${debug.classpath}" name="classpath"/>
686 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
688 <path path="@{classpath}"/>
693 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
694 <attribute default="${build.classes.dir}" name="dir"/>
697 <fileset dir="@{dir}" includes="${fix.classes}">
698 <include name="${fix.includes}*.class"/>
703 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
709 <target name="-init-debug-args">
710 <property name="version-output" value="java version "${ant.java.version}"/>
711 <condition property="have-jdk-older-than-1.4">
713 <contains string="${version-output}" substring="java version "1.0"/>
714 <contains string="${version-output}" substring="java version "1.1"/>
715 <contains string="${version-output}" substring="java version "1.2"/>
716 <contains string="${version-output}" substring="java version "1.3"/>
719 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
720 <istrue value="${have-jdk-older-than-1.4}"/>
722 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
723 <os family="windows"/>
725 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
726 <isset property="debug.transport"/>
729 <target depends="-init-debug-args" name="-init-macrodef-debug">
730 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
731 <attribute default="${main.class}" name="classname"/>
732 <attribute default="${debug.classpath}" name="classpath"/>
733 <attribute default="${application.args}" name="args"/>
734 <element name="customize" optional="true"/>
736 <java classname="@{classname}" fork="true">
737 <jvmarg line="${debug-args-line}"/>
738 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
739 <jvmarg line="${runmain.jvmargs}"/>
741 <path path="@{classpath}"/>
743 <arg line="@{args}"/>
749 <target name="-init-taskdefs">
750 <fail unless="libs.CopyLibs.classpath">
751 The libs.CopyLibs.classpath property is not set up.
752 This property must point to
753 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
754 of NetBeans IDE installation and is usually located at
755 <netbeans_installation>/java<version>/ant/extra folder.
756 Either open the project in the IDE and make sure CopyLibs library
757 exists or setup the property manually. For example like this:
758 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
760 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
762 <target name="-init-ap-cmdline-properties">
763 <property name="annotation.processing.enabled" value="true"/>
764 <property name="annotation.processing.processors.list" value=""/>
765 <property name="annotation.processing.run.all.processors" value="true"/>
766 <property name="javac.processorpath" value="${javac.classpath}"/>
767 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
768 <condition property="ap.supported.internal" value="true">
770 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
774 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
775 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
776 <isfalse value="${annotation.processing.run.all.processors}"/>
778 <condition else="" property="ap.proc.none.internal" value="-proc:none">
779 <isfalse value="${annotation.processing.enabled}"/>
782 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
783 <property name="ap.cmd.line.internal" value=""/>
786 pre NB7.2 profiling section; consider it deprecated
788 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
789 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
790 <!-- Empty placeholder for easier customization. -->
791 <!-- You can override this target in the ../build.xml file. -->
793 <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
794 <!-- Empty placeholder for easier customization. -->
795 <!-- You can override this target in the ../build.xml file. -->
797 <target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
798 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
799 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
802 end of pre NB7.2 profiling section
804 <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"/>
808 <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
809 <ant antfile="${project.jfinancials-core}/build.xml" inheritall="false" target="jar">
810 <property name="deploy.on.save" value="false"/>
812 <ant antfile="${project.jfinancials-lib}/build.xml" inheritall="false" target="jar">
813 <property name="deploy.on.save" value="false"/>
815 <ant antfile="${project.jfinancials-mailer-lib}/build.xml" inheritall="false" target="jar">
816 <property name="deploy.on.save" value="false"/>
819 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
820 <ant antfile="${project.jfinancials-core}/build.xml" inheritall="false" target="jar">
821 <property name="deploy.on.save" value="false"/>
823 <ant antfile="${project.jfinancials-lib}/build.xml" inheritall="false" target="jar">
824 <property name="deploy.on.save" value="false"/>
826 <ant antfile="${project.jfinancials-mailer-lib}/build.xml" inheritall="false" target="jar">
827 <property name="deploy.on.save" value="false"/>
830 <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
831 <target depends="init,deps-jar" name="-pre-pre-compile">
832 <mkdir dir="${build.classes.dir}"/>
833 <mkdir dir="${build.ear.classes.dir}"/>
835 <target name="-pre-compile">
836 <!-- Empty placeholder for easier customization. -->
837 <!-- You can override this target in the ../build.xml file. -->
839 <target depends="compile,-library-inclusion-in-archive-weblogic,-library-inclusion-in-archive-by-user" name="library-inclusion-in-archive"/>
840 <target if="is.jars.in.ejbjar" name="-library-inclusion-in-archive-by-user">
841 <copyfiles files="${file.reference.jcoreee.jar}" todir="${build.classes.dir}"/>
842 <copyfiles files="${file.reference.jcore-logger-lib.jar}" todir="${build.classes.dir}"/>
843 <copyfiles files="${file.reference.jcountry-core.jar}" todir="${build.classes.dir}"/>
844 <copyfiles files="${file.reference.jcountry-lib.jar}" todir="${build.classes.dir}"/>
845 <copyfiles files="${file.reference.jphone-core.jar}" todir="${build.classes.dir}"/>
846 <copyfiles files="${file.reference.jphone-lib.jar}" todir="${build.classes.dir}"/>
847 <copyfiles files="${file.reference.jcontacts-core.jar}" todir="${build.classes.dir}"/>
848 <copyfiles files="${file.reference.jcontacts-lib.jar}" todir="${build.classes.dir}"/>
849 <copyfiles files="${file.reference.jcontacts-business-core.jar}" todir="${build.classes.dir}"/>
850 <copyfiles files="${file.reference.jcontacts-business-lib.jar}" todir="${build.classes.dir}"/>
851 <copyfiles files="${file.reference.jproduct-core.jar}" todir="${build.classes.dir}"/>
852 <copyfiles files="${file.reference.jproduct-lib.jar}" todir="${build.classes.dir}"/>
853 <copyfiles files="${file.reference.jcustomer-core.jar}" todir="${build.classes.dir}"/>
854 <copyfiles files="${file.reference.jcustomer-lib.jar}" todir="${build.classes.dir}"/>
855 <copyfiles files="${file.reference.juser-core.jar}" todir="${build.classes.dir}"/>
856 <copyfiles files="${file.reference.juser-lib.jar}" todir="${build.classes.dir}"/>
857 <copyfiles files="${file.reference.juser-login-core.jar}" todir="${build.classes.dir}"/>
858 <copyfiles files="${file.reference.juser-login-lib.jar}" todir="${build.classes.dir}"/>
859 <copyfiles files="${file.reference.juser-activity-core.jar}" todir="${build.classes.dir}"/>
860 <copyfiles files="${file.reference.juser-activity-lib.jar}" todir="${build.classes.dir}"/>
861 <copyfiles files="${file.reference.jbonuscard-core.jar}" todir="${build.classes.dir}"/>
862 <copyfiles files="${file.reference.jbonuscard-lib.jar}" todir="${build.classes.dir}"/>
863 <copyfiles files="${file.reference.jmailer-ee.jar}" todir="${build.classes.dir}"/>
864 <copyfiles files="${reference.jfinancials-core.jar}" todir="${build.classes.dir}"/>
865 <copyfiles files="${reference.jfinancials-lib.jar}" todir="${build.classes.dir}"/>
866 <copyfiles files="${reference.jfinancials-mailer-lib.jar}" todir="${build.classes.dir}"/>
867 <copyfiles files="${file.reference.cdi-api.jar}" todir="${build.classes.dir}"/>
869 <target if="is.server.weblogic" name="-library-inclusion-in-archive-weblogic">
870 <basename file="${file.reference.jcoreee.jar}" property="manifest.file.reference.jcoreee.jar"/>
871 <basename file="${file.reference.jcore-logger-lib.jar}" property="manifest.file.reference.jcore-logger-lib.jar"/>
872 <basename file="${file.reference.jcountry-core.jar}" property="manifest.file.reference.jcountry-core.jar"/>
873 <basename file="${file.reference.jcountry-lib.jar}" property="manifest.file.reference.jcountry-lib.jar"/>
874 <basename file="${file.reference.jphone-core.jar}" property="manifest.file.reference.jphone-core.jar"/>
875 <basename file="${file.reference.jphone-lib.jar}" property="manifest.file.reference.jphone-lib.jar"/>
876 <basename file="${file.reference.jcontacts-core.jar}" property="manifest.file.reference.jcontacts-core.jar"/>
877 <basename file="${file.reference.jcontacts-lib.jar}" property="manifest.file.reference.jcontacts-lib.jar"/>
878 <basename file="${file.reference.jcontacts-business-core.jar}" property="manifest.file.reference.jcontacts-business-core.jar"/>
879 <basename file="${file.reference.jcontacts-business-lib.jar}" property="manifest.file.reference.jcontacts-business-lib.jar"/>
880 <basename file="${file.reference.jproduct-core.jar}" property="manifest.file.reference.jproduct-core.jar"/>
881 <basename file="${file.reference.jproduct-lib.jar}" property="manifest.file.reference.jproduct-lib.jar"/>
882 <basename file="${file.reference.jcustomer-core.jar}" property="manifest.file.reference.jcustomer-core.jar"/>
883 <basename file="${file.reference.jcustomer-lib.jar}" property="manifest.file.reference.jcustomer-lib.jar"/>
884 <basename file="${file.reference.juser-core.jar}" property="manifest.file.reference.juser-core.jar"/>
885 <basename file="${file.reference.juser-lib.jar}" property="manifest.file.reference.juser-lib.jar"/>
886 <basename file="${file.reference.juser-login-core.jar}" property="manifest.file.reference.juser-login-core.jar"/>
887 <basename file="${file.reference.juser-login-lib.jar}" property="manifest.file.reference.juser-login-lib.jar"/>
888 <basename file="${file.reference.juser-activity-core.jar}" property="manifest.file.reference.juser-activity-core.jar"/>
889 <basename file="${file.reference.juser-activity-lib.jar}" property="manifest.file.reference.juser-activity-lib.jar"/>
890 <basename file="${file.reference.jbonuscard-core.jar}" property="manifest.file.reference.jbonuscard-core.jar"/>
891 <basename file="${file.reference.jbonuscard-lib.jar}" property="manifest.file.reference.jbonuscard-lib.jar"/>
892 <basename file="${file.reference.jmailer-ee.jar}" property="manifest.file.reference.jmailer-ee.jar"/>
893 <basename file="${reference.jfinancials-core.jar}" property="manifest.reference.jfinancials-core.jar"/>
894 <basename file="${reference.jfinancials-lib.jar}" property="manifest.reference.jfinancials-lib.jar"/>
895 <basename file="${reference.jfinancials-mailer-lib.jar}" property="manifest.reference.jfinancials-mailer-lib.jar"/>
896 <basename file="${file.reference.cdi-api.jar}" property="manifest.file.reference.cdi-api.jar"/>
897 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
898 <attribute name="Extension-List" value="jar-1 jar-2 jar-3 jar-4 jar-5 jar-6 jar-7 jar-8 jar-9 jar-10 jar-11 jar-12 jar-13 jar-14 jar-15 jar-16 jar-17 jar-18 jar-19 jar-20 jar-21 jar-22 jar-23 jar-24 jar-25 jar-26 jar-27 "/>
899 <attribute name="jar-1-Extension-Name" value="${manifest.file.reference.jcoreee.jar}"/>
900 <attribute name="jar-2-Extension-Name" value="${manifest.file.reference.jcore-logger-lib.jar}"/>
901 <attribute name="jar-3-Extension-Name" value="${manifest.file.reference.jcountry-core.jar}"/>
902 <attribute name="jar-4-Extension-Name" value="${manifest.file.reference.jcountry-lib.jar}"/>
903 <attribute name="jar-5-Extension-Name" value="${manifest.file.reference.jphone-core.jar}"/>
904 <attribute name="jar-6-Extension-Name" value="${manifest.file.reference.jphone-lib.jar}"/>
905 <attribute name="jar-7-Extension-Name" value="${manifest.file.reference.jcontacts-core.jar}"/>
906 <attribute name="jar-8-Extension-Name" value="${manifest.file.reference.jcontacts-lib.jar}"/>
907 <attribute name="jar-9-Extension-Name" value="${manifest.file.reference.jcontacts-business-core.jar}"/>
908 <attribute name="jar-10-Extension-Name" value="${manifest.file.reference.jcontacts-business-lib.jar}"/>
909 <attribute name="jar-11-Extension-Name" value="${manifest.file.reference.jproduct-core.jar}"/>
910 <attribute name="jar-12-Extension-Name" value="${manifest.file.reference.jproduct-lib.jar}"/>
911 <attribute name="jar-13-Extension-Name" value="${manifest.file.reference.jcustomer-core.jar}"/>
912 <attribute name="jar-14-Extension-Name" value="${manifest.file.reference.jcustomer-lib.jar}"/>
913 <attribute name="jar-15-Extension-Name" value="${manifest.file.reference.juser-core.jar}"/>
914 <attribute name="jar-16-Extension-Name" value="${manifest.file.reference.juser-lib.jar}"/>
915 <attribute name="jar-17-Extension-Name" value="${manifest.file.reference.juser-login-core.jar}"/>
916 <attribute name="jar-18-Extension-Name" value="${manifest.file.reference.juser-login-lib.jar}"/>
917 <attribute name="jar-19-Extension-Name" value="${manifest.file.reference.juser-activity-core.jar}"/>
918 <attribute name="jar-20-Extension-Name" value="${manifest.file.reference.juser-activity-lib.jar}"/>
919 <attribute name="jar-21-Extension-Name" value="${manifest.file.reference.jbonuscard-core.jar}"/>
920 <attribute name="jar-22-Extension-Name" value="${manifest.file.reference.jbonuscard-lib.jar}"/>
921 <attribute name="jar-23-Extension-Name" value="${manifest.file.reference.jmailer-ee.jar}"/>
922 <attribute name="jar-24-Extension-Name" value="${manifest.reference.jfinancials-core.jar}"/>
923 <attribute name="jar-25-Extension-Name" value="${manifest.reference.jfinancials-lib.jar}"/>
924 <attribute name="jar-26-Extension-Name" value="${manifest.reference.jfinancials-mailer-lib.jar}"/>
925 <attribute name="jar-27-Extension-Name" value="${manifest.file.reference.cdi-api.jar}"/>
928 <target depends="compile" name="library-inclusion-in-manifest">
929 <copyfiles files="${file.reference.jcoreee.jar}" todir="${dist.ear.dir}/lib"/>
930 <copyfiles files="${file.reference.jcore-logger-lib.jar}" todir="${dist.ear.dir}/lib"/>
931 <copyfiles files="${file.reference.jcountry-core.jar}" todir="${dist.ear.dir}/lib"/>
932 <copyfiles files="${file.reference.jcountry-lib.jar}" todir="${dist.ear.dir}/lib"/>
933 <copyfiles files="${file.reference.jphone-core.jar}" todir="${dist.ear.dir}/lib"/>
934 <copyfiles files="${file.reference.jphone-lib.jar}" todir="${dist.ear.dir}/lib"/>
935 <copyfiles files="${file.reference.jcontacts-core.jar}" todir="${dist.ear.dir}/lib"/>
936 <copyfiles files="${file.reference.jcontacts-lib.jar}" todir="${dist.ear.dir}/lib"/>
937 <copyfiles files="${file.reference.jcontacts-business-core.jar}" todir="${dist.ear.dir}/lib"/>
938 <copyfiles files="${file.reference.jcontacts-business-lib.jar}" todir="${dist.ear.dir}/lib"/>
939 <copyfiles files="${file.reference.jproduct-core.jar}" todir="${dist.ear.dir}/lib"/>
940 <copyfiles files="${file.reference.jproduct-lib.jar}" todir="${dist.ear.dir}/lib"/>
941 <copyfiles files="${file.reference.jcustomer-core.jar}" todir="${dist.ear.dir}/lib"/>
942 <copyfiles files="${file.reference.jcustomer-lib.jar}" todir="${dist.ear.dir}/lib"/>
943 <copyfiles files="${file.reference.juser-core.jar}" todir="${dist.ear.dir}/lib"/>
944 <copyfiles files="${file.reference.juser-lib.jar}" todir="${dist.ear.dir}/lib"/>
945 <copyfiles files="${file.reference.juser-login-core.jar}" todir="${dist.ear.dir}/lib"/>
946 <copyfiles files="${file.reference.juser-login-lib.jar}" todir="${dist.ear.dir}/lib"/>
947 <copyfiles files="${file.reference.juser-activity-core.jar}" todir="${dist.ear.dir}/lib"/>
948 <copyfiles files="${file.reference.juser-activity-lib.jar}" todir="${dist.ear.dir}/lib"/>
949 <copyfiles files="${file.reference.jbonuscard-core.jar}" todir="${dist.ear.dir}/lib"/>
950 <copyfiles files="${file.reference.jbonuscard-lib.jar}" todir="${dist.ear.dir}/lib"/>
951 <copyfiles files="${file.reference.jmailer-ee.jar}" todir="${dist.ear.dir}/lib"/>
952 <copyfiles files="${reference.jfinancials-core.jar}" todir="${dist.ear.dir}/lib"/>
953 <copyfiles files="${reference.jfinancials-lib.jar}" todir="${dist.ear.dir}/lib"/>
954 <copyfiles files="${reference.jfinancials-mailer-lib.jar}" todir="${dist.ear.dir}/lib"/>
955 <copyfiles files="${file.reference.cdi-api.jar}" todir="${dist.ear.dir}/lib"/>
956 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
958 <target name="-copy-meta-inf">
959 <copy todir="${classes.dir}">
960 <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
962 <copy todir="${classes.dir}/META-INF">
963 <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
966 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
967 <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
968 <copy todir="${classes.dir}">
969 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
972 <target name="-post-compile">
973 <!-- Empty placeholder for easier customization. -->
974 <!-- You can override this target in the ../build.xml file. -->
976 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
977 <target name="-pre-compile-single">
978 <!-- Empty placeholder for easier customization. -->
979 <!-- You can override this target in the ../build.xml file. -->
981 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
982 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
983 <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
985 <target name="-post-compile-single">
986 <!-- Empty placeholder for easier customization. -->
987 <!-- You can override this target in the ../build.xml file. -->
989 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
991 DIST BUILDING SECTION
993 <target name="-pre-dist">
994 <!-- Empty placeholder for easier customization. -->
995 <!-- You can override this target in the ../build.xml file. -->
997 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
998 <dirname file="${dist.jar}" property="dist.jar.dir"/>
999 <mkdir dir="${dist.jar.dir}"/>
1000 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
1001 <fileset dir="${build.classes.dir}"/>
1004 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
1005 <dirname file="${dist.jar}" property="dist.jar.dir"/>
1006 <mkdir dir="${dist.jar.dir}"/>
1007 <jar compress="${jar.compress}" jarfile="${dist.jar}">
1008 <fileset dir="${build.classes.dir}"/>
1012 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
1014 <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">
1015 <dirname file="${dist.jar}" property="dist.jar.dir"/>
1016 <mkdir dir="${dist.jar.dir}"/>
1017 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
1018 <fileset dir="${build.classes.dir}"/>
1021 <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">
1022 <dirname file="${dist.jar}" property="dist.jar.dir"/>
1023 <mkdir dir="${dist.jar.dir}"/>
1024 <jar compress="${jar.compress}" jarfile="${dist.jar}">
1025 <fileset dir="${build.classes.dir}"/>
1028 <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"/>
1029 <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"/>
1031 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
1033 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
1034 <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
1035 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
1036 <mkdir dir="${dist.jar.dir}"/>
1037 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
1038 <fileset dir="${build.ear.classes.dir}"/>
1041 <target name="-post-dist">
1042 <!-- Empty placeholder for easier customization. -->
1043 <!-- You can override this target in the ../build.xml file. -->
1045 <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
1046 <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"/>
1050 <target depends="run-deploy" description="Deploy to server." name="run"/>
1051 <target name="-init-deploy">
1052 <property name="include.jar.manifest" value=""/>
1054 <target name="pre-run-deploy">
1055 <!-- Empty placeholder for easier customization. -->
1056 <!-- You can override this target in the ../build.xml file. -->
1058 <target name="post-run-deploy">
1059 <!-- Empty placeholder for easier customization. -->
1060 <!-- You can override this target in the ../build.xml file. -->
1062 <target name="-pre-nbmodule-run-deploy">
1063 <!-- Empty placeholder for easier customization. -->
1064 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
1066 <target name="-post-nbmodule-run-deploy">
1067 <!-- Empty placeholder for easier customization. -->
1068 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
1070 <target name="-run-deploy-am">
1071 <!-- Task to deploy to the Access Manager runtime. -->
1073 <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"/>
1074 <target if="netbeans.home" name="-run-deploy-nb">
1075 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
1077 <target name="-init-deploy-ant" unless="netbeans.home">
1078 <property name="deploy.ant.archive" value="${dist.jar}"/>
1079 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
1080 <property name="deploy.ant.enabled" value="true"/>
1082 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
1083 <target if="netbeans.home" name="-run-undeploy-nb">
1084 <fail message="Undeploy is not supported from within the IDE"/>
1086 <target depends="dist" name="verify">
1087 <nbverify file="${dist.jar}"/>
1089 <target depends="init,compile-single" name="run-main">
1090 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1091 <ejbjarproject3:java classname="${run.class}"/>
1093 <target depends="init" if="netbeans.home" name="-do-update-breakpoints">
1094 <ejbjarproject1:nbjpdaappreloaded/>
1099 <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
1100 <nbdeploy debugmode="true"/>
1101 <antcall target="connect-debugger"/>
1103 <target name="connect-debugger" unless="is.debugged">
1104 <condition property="listeningcp" value="sourcepath">
1105 <istrue value="${j2ee.compile.on.save}"/>
1107 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${name}" transport="${jpda.transport}">
1109 <path path="${debug.classpath}"/>
1112 <path path="${web.docbase.dir}"/>
1116 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1117 <ejbjarproject1:nbjpdastart/>
1119 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1120 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
1121 <ejbjarproject1:debug/>
1123 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
1124 <target depends="init" name="-pre-debug-fix">
1125 <fail unless="fix.includes">Must set fix.includes</fail>
1126 <property name="javac.includes" value="${fix.includes}.java"/>
1128 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1129 <ejbjarproject1:nbjpdareload/>
1131 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1138 pre NB7.2 profiling section; consider it deprecated
1140 <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1141 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1142 <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
1143 <isset property="profiler.info.jvmargs.extra"/>
1145 <antcall target="${profiler.startserver.target}"/>
1146 <antcall target="run"/>
1147 <antcall target="-profile-start-loadgen"/>
1149 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1150 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1153 <path path="${run.test.classpath}"/>
1154 <path path="${j2ee.platform.classpath}"/>
1157 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1158 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1159 <jvmarg value="${profiler.info.jvmargs.agent}"/>
1160 <jvmarg line="${profiler.info.jvmargs}"/>
1161 <test name="${profile.class}"/>
1163 <path path="${run.test.classpath}"/>
1164 <path path="${j2ee.platform.classpath}"/>
1167 <propertyref prefix="test-sys-prop."/>
1168 <mapper from="test-sys-prop.*" to="*" type="glob"/>
1170 <formatter type="brief" usefile="false"/>
1171 <formatter type="xml"/>
1174 <target name="start-profiled-server">
1175 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
1176 <jvmarg value="${profiler.info.jvmargs.agent}"/>
1177 <jvmarg value="${profiler.j2ee.agentID}"/>
1178 </nbstartprofiledserver>
1180 <target name="start-profiled-server-extraargs">
1181 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
1182 <jvmarg value="${profiler.info.jvmargs.extra}"/>
1183 <jvmarg value="${profiler.info.jvmargs.agent}"/>
1184 <jvmarg value="${profiler.j2ee.agentID}"/>
1185 </nbstartprofiledserver>
1188 end of pre NB7.2 profiling section
1190 <target if="netbeans.home" name="-profile-check">
1191 <condition property="profiler.configured">
1193 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1194 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1198 <target depends="init,compile,dist-directory-deploy" name="-do-profile">
1200 <nbstartserver profilemode="true"/>
1201 <nbdeploy clientUrlPart="$" forceRedeploy="true" profilemode="true"/>
1202 <antcall target="-profile-start-loadgen"/>
1204 <target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1205 <antcall target="-do-profile"/>
1207 <target depends="-profile-test-single-pre72" name="profile-test-single"/>
1208 <target depends="-profile-check" if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs.agent">
1210 <antcall target="test-single"/>
1212 <target if="profiler.loadgen.path" name="-profile-start-loadgen">
1213 <loadgenstart path="${profiler.loadgen.path}"/>
1218 <target depends="init" if="have.sources" name="javadoc-build">
1219 <mkdir dir="${dist.javadoc.dir}"/>
1220 <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}">
1222 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
1224 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1225 <filename name="**/*.java"/>
1227 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1228 <include name="**/*.java"/>
1231 <copy todir="${dist.javadoc.dir}">
1232 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1233 <filename name="**/doc-files/**"/>
1235 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1236 <include name="**/doc-files/**"/>
1240 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
1241 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1243 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
1245 TEST COMPILATION SECTION
1247 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1248 <mkdir dir="${build.test.classes.dir}"/>
1249 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
1251 <target name="-pre-compile-test">
1252 <!-- Empty placeholder for easier customization. -->
1253 <!-- You can override this target in the ../build.xml file. -->
1255 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
1256 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1257 <copy todir="${build.test.classes.dir}">
1258 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1261 <target name="-post-compile-test">
1262 <!-- Empty placeholder for easier customization. -->
1263 <!-- You can override this target in the ../build.xml file. -->
1265 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1266 <target name="-pre-compile-test-single">
1267 <!-- Empty placeholder for easier customization. -->
1268 <!-- You can override this target in the ../build.xml file. -->
1270 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1271 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1272 <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}"/>
1274 <target name="-post-compile-test-single">
1275 <!-- Empty placeholder for easier customization. -->
1276 <!-- You can override this target in the ../build.xml file. -->
1278 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1280 TEST EXECUTION SECTION
1282 <target depends="init" if="have.tests" name="-pre-test-run">
1283 <mkdir dir="${build.test.results.dir}"/>
1285 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1286 <ejbjarproject2:test includes="${includes}" testincludes="**/*Test.java"/>
1288 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1289 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1291 <target depends="init" if="have.tests" name="test-report"/>
1292 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1293 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1294 <target depends="init" if="have.tests" name="-pre-test-run-single">
1295 <mkdir dir="${build.test.results.dir}"/>
1297 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1298 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1299 <ejbjarproject2:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1301 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1302 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1304 <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"/>
1305 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1306 <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1307 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1308 <ejbjarproject2:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1310 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1311 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1313 <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"/>
1315 TEST DEBUGGING SECTION
1317 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
1318 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1319 <ejbjarproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
1321 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
1322 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1323 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1324 <ejbjarproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
1326 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1327 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1329 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1330 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1331 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1332 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1334 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1338 <target depends="init" name="deps-clean" unless="no.deps">
1339 <ant antfile="${project.jfinancials-core}/build.xml" inheritall="false" target="clean"/>
1340 <ant antfile="${project.jfinancials-lib}/build.xml" inheritall="false" target="clean"/>
1341 <ant antfile="${project.jfinancials-mailer-lib}/build.xml" inheritall="false" target="clean"/>
1343 <target depends="init" name="-do-clean">
1344 <delete dir="${build.dir}"/>
1345 <delete dir="${dist.dir}"/>
1347 <target name="-post-clean">
1348 <!-- Empty placeholder for easier customization. -->
1349 <!-- You can override this target in the ../build.xml file. -->
1351 <target depends="init" if="netbeans.home" name="undeploy-clean">
1352 <nbundeploy failOnError="false" startServer="false"/>
1354 <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1355 <target depends="clean" name="clean-ear"/>