1 <?xml version="1.0" encoding="UTF-8"?>
\r
3 *** GENERATED FROM project.xml - DO NOT EDIT ***
\r
4 *** EDIT ../build.xml INSTEAD ***
\r
6 For the purpose of easier reading the script
\r
7 is divided into following sections:
\r
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="jcore-logger-ejb-impl">
\r
19 <import file="ant-deploy.xml"/>
\r
20 <fail message="Please build using Ant 1.7.1 or higher.">
\r
23 <antversion atleast="1.7.1"/>
\r
27 <target depends="dist,javadoc" description="Build whole project." name="default"/>
\r
29 INITIALIZATION SECTION
\r
31 <target name="-pre-init">
\r
32 <!-- Empty placeholder for easier customization. -->
\r
33 <!-- You can override this target in the ../build.xml file. -->
\r
35 <target depends="-pre-init" name="-init-private">
\r
36 <property file="nbproject/private/private.properties"/>
\r
38 <target name="-pre-init-libraries">
\r
39 <property location="./lib/nblibraries.properties" name="libraries.path"/>
\r
40 <dirname file="${libraries.path}" property="libraries.dir.nativedirsep"/>
\r
41 <pathconvert dirsep="/" property="libraries.dir">
\r
42 <path path="${libraries.dir.nativedirsep}"/>
\r
44 <basename file="${libraries.path}" property="libraries.basename" suffix=".properties"/>
\r
45 <available file="${libraries.dir}/${libraries.basename}-private.properties" property="private.properties.available"/>
\r
47 <target depends="-pre-init-libraries" if="private.properties.available" name="-init-private-libraries">
\r
48 <loadproperties encoding="ISO-8859-1" srcfile="${libraries.dir}/${libraries.basename}-private.properties">
\r
50 <replacestring from="$${base}" to="${libraries.dir}"/>
\r
55 <target depends="-pre-init,-init-private,-init-private-libraries" name="-init-libraries">
\r
56 <loadproperties encoding="ISO-8859-1" srcfile="${libraries.path}">
\r
58 <replacestring from="$${base}" to="${libraries.dir}"/>
\r
63 <target depends="-pre-init,-init-private,-init-libraries" name="-init-userdir">
\r
64 <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
\r
66 <target depends="-pre-init,-init-private,-init-libraries,-init-userdir" name="-init-user">
\r
67 <property file="${user.properties.file}"/>
\r
68 <!-- The two properties below are usually overridden -->
\r
69 <!-- by the active platform. Just a fallback. -->
\r
70 <property name="default.javac.source" value="1.4"/>
\r
71 <property name="default.javac.target" value="1.4"/>
\r
73 <target depends="-pre-init,-init-private,-init-libraries,-init-userdir,-init-user" name="-init-project">
\r
74 <property file="nbproject/project.properties"/>
\r
76 <target depends="-pre-init,-init-private,-init-libraries,-init-userdir,-init-user,-init-project,-init-macrodef-property" name="-do-init">
\r
77 <!-- Ensure configuration directory exists. -->
\r
78 <mkdir dir="${meta.inf}"/>
\r
79 <property name="runmain.jvmargs" value=""/>
\r
80 <condition property="have.tests">
\r
82 <available file="${test.src.dir}"/>
\r
85 <condition property="have.sources">
\r
87 <available file="${src.dir}"/>
\r
90 <condition property="netbeans.home+have.tests">
\r
92 <isset property="netbeans.home"/>
\r
93 <isset property="have.tests"/>
\r
96 <condition property="no.javadoc.preview">
\r
97 <isfalse value="${javadoc.preview}"/>
\r
99 <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
\r
101 Variables needed to support directory deployment.
\r
103 <condition property="do.package.with.custom.manifest.not.directory.deploy">
\r
105 <isset property="has.custom.manifest"/>
\r
106 <isfalse value="${directory.deployment.supported}"/>
\r
109 <condition property="do.package.without.custom.manifest.not.directory.deploy">
\r
112 <isset property="has.custom.manifest"/>
\r
114 <isfalse value="${directory.deployment.supported}"/>
\r
117 <!--End Variables needed to support directory deployment.-->
\r
118 <condition property="classes.dir" value="${build.ear.classes.dir}">
\r
119 <isset property="dist.ear.dir"/>
\r
121 <property name="classes.dir" value="${build.classes.dir}"/>
\r
122 <condition property="no.deps">
\r
124 <istrue value="${no.dependencies}"/>
\r
127 <condition property="no.dist.ear.dir">
\r
129 <isset property="dist.ear.dir"/>
\r
132 <property name="source.encoding" value="${file.encoding}"/>
\r
133 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
\r
135 <isset property="javadoc.encoding"/>
\r
137 <equals arg1="${javadoc.encoding}" arg2=""/>
\r
141 <property name="javadoc.encoding.used" value="${source.encoding}"/>
\r
142 <property name="includes" value="**"/>
\r
143 <property name="excludes" value=""/>
\r
144 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
\r
145 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
\r
147 <isset property="endorsed.classpath"/>
\r
148 <length length="0" string="${endorsed.classpath}" when="greater"/>
\r
151 <condition property="is.server.weblogic" value="true">
\r
152 <equals arg1="${j2ee.server.type}" arg2="WebLogic9"/>
\r
154 <condition property="is.jars.in.ejbjar" value="true">
\r
155 <equals arg1="${jars.in.ejbjar}" arg2="true"/>
\r
157 <condition else="false" property="jdkBug6558476">
\r
159 <matches pattern="1\.[56]" string="${java.specification.version}"/>
\r
161 <os family="unix"/>
\r
165 <property name="javac.fork" value="${jdkBug6558476}"/>
\r
166 <condition property="junit.available">
\r
168 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
\r
169 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
\r
172 <condition property="testng.available">
\r
173 <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
\r
175 <condition property="junit+testng.available">
\r
177 <istrue value="${junit.available}"/>
\r
178 <istrue value="${testng.available}"/>
\r
181 <condition else="testng" property="testng.mode" value="mixed">
\r
182 <istrue value="${junit+testng.available}"/>
\r
184 <condition else="" property="testng.debug.mode" value="-mixed">
\r
185 <istrue value="${junit+testng.available}"/>
\r
188 <target depends="init" name="-init-cos" unless="deploy.on.save">
\r
189 <condition property="deploy.on.save" value="true">
\r
191 <istrue value="${j2ee.deploy.on.save}"/>
\r
192 <istrue value="${j2ee.compile.on.save}"/>
\r
196 <target name="-post-init">
\r
197 <!-- Empty placeholder for easier customization. -->
\r
198 <!-- You can override this target in the ../build.xml file. -->
\r
200 <target depends="-pre-init,-init-private,-init-libraries,-init-userdir,-init-user,-init-project,-do-init" name="-init-check">
\r
201 <fail unless="src.dir">Must set src.dir</fail>
\r
202 <fail unless="test.src.dir">Must set test.src.dir</fail>
\r
203 <fail unless="build.dir">Must set build.dir</fail>
\r
204 <fail unless="build.generated.dir">Must set build.generated.dir</fail>
\r
205 <fail unless="dist.dir">Must set dist.dir</fail>
\r
206 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
\r
207 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
\r
208 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
\r
209 <fail unless="dist.jar">Must set dist.jar</fail>
\r
210 <condition property="missing.j2ee.server.home">
\r
212 <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
\r
214 <isset property="j2ee.server.home"/>
\r
218 <fail if="missing.j2ee.server.home">
\r
219 The Java EE server classpath is not correctly set up - server home directory is missing.
\r
220 Either open the project in the IDE and assign the server or setup the server classpath manually.
\r
221 For example like this:
\r
222 ant -Dj2ee.server.home=<app_server_installation_directory>
\r
224 <fail unless="j2ee.platform.classpath">
\r
225 The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
\r
226 Either open the project in the IDE and assign the server or setup the server classpath manually.
\r
227 For example like this:
\r
228 ant -Duser.properties.file=<path_to_property_file> (where you put the property "j2ee.platform.classpath" in a .properties file)
\r
229 or ant -Dj2ee.platform.classpath=<server_classpath> (where no properties file is used)
\r
232 <target name="-init-macrodef-property">
\r
233 <macrodef name="property" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
\r
234 <attribute name="name"/>
\r
235 <attribute name="value"/>
\r
237 <property name="@{name}" value="${@{value}}"/>
\r
241 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
\r
242 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
243 <attribute default="${src.dir}" name="srcdir"/>
\r
244 <attribute default="${build.classes.dir}" name="destdir"/>
\r
245 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
\r
246 <attribute default="${javac.processorpath}" name="processorpath"/>
\r
247 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
\r
248 <attribute default="${includes}" name="includes"/>
\r
249 <attribute default="${excludes}" name="excludes"/>
\r
250 <attribute default="${javac.debug}" name="debug"/>
\r
251 <attribute default="${empty.dir}" name="gensrcdir"/>
\r
252 <element name="customize" optional="true"/>
\r
254 <property name="javac.compilerargs" value=""/>
\r
255 <property location="${build.dir}/empty" name="empty.dir"/>
\r
256 <mkdir dir="${empty.dir}"/>
\r
257 <mkdir dir="@{apgeneratedsrcdir}"/>
\r
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}">
\r
260 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
\r
261 <include name="*"/>
\r
265 <path path="@{classpath}"/>
\r
267 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
268 <compilerarg line="${javac.compilerargs}"/>
\r
269 <compilerarg value="-processorpath"/>
\r
270 <compilerarg path="@{processorpath}:${empty.dir}"/>
\r
271 <compilerarg line="${ap.processors.internal}"/>
\r
272 <compilerarg value="-s"/>
\r
273 <compilerarg path="@{apgeneratedsrcdir}"/>
\r
274 <compilerarg line="${ap.proc.none.internal}"/>
\r
280 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
\r
281 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
282 <attribute default="${src.dir}" name="srcdir"/>
\r
283 <attribute default="${build.classes.dir}" name="destdir"/>
\r
284 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
\r
285 <attribute default="${javac.processorpath}" name="processorpath"/>
\r
286 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
\r
287 <attribute default="${includes}" name="includes"/>
\r
288 <attribute default="${excludes}" name="excludes"/>
\r
289 <attribute default="${javac.debug}" name="debug"/>
\r
290 <attribute default="${empty.dir}" name="gensrcdir"/>
\r
291 <element name="customize" optional="true"/>
\r
293 <property name="javac.compilerargs" value=""/>
\r
294 <property location="${build.dir}/empty" name="empty.dir"/>
\r
295 <mkdir dir="${empty.dir}"/>
\r
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}">
\r
298 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
\r
299 <include name="*"/>
\r
303 <path path="@{classpath}"/>
\r
305 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
306 <compilerarg line="${javac.compilerargs}"/>
\r
312 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
\r
313 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
314 <attribute default="${src.dir}" name="srcdir"/>
\r
315 <attribute default="${build.classes.dir}" name="destdir"/>
\r
316 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
\r
318 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
\r
320 <path path="@{classpath}"/>
\r
325 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
326 <attribute default="${build.classes.dir}" name="destdir"/>
\r
328 <fail unless="javac.includes">Must set javac.includes</fail>
\r
329 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
\r
331 <filelist dir="@{destdir}" files="${javac.includes}"/>
\r
333 <globmapper from="*.java" to="*.class"/>
\r
335 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
\r
336 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
\r
338 <files includesfile="${javac.includesfile.binary}"/>
\r
340 <delete file="${javac.includesfile.binary}"/>
\r
344 <target if="${junit.available}" name="-init-macrodef-junit-init">
\r
345 <condition else="false" property="nb.junit.batch" value="true">
\r
347 <istrue value="${junit.available}"/>
\r
349 <isset property="test.method"/>
\r
353 <condition else="false" property="nb.junit.single" value="true">
\r
355 <istrue value="${junit.available}"/>
\r
356 <isset property="test.method"/>
\r
360 <target name="-init-test-properties">
\r
361 <property name="test.binaryincludes" value="<nothing>"/>
\r
362 <property name="test.binarytestincludes" value=""/>
\r
363 <property name="test.binaryexcludes" value=""/>
\r
365 <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
\r
366 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
367 <attribute default="${includes}" name="includes"/>
\r
368 <attribute default="${excludes}" name="excludes"/>
\r
369 <attribute default="**" name="testincludes"/>
\r
370 <attribute default="" name="testmethods"/>
\r
371 <element name="customize" optional="true"/>
\r
373 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
\r
374 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
\r
376 <propertyref prefix="test-sys-prop."/>
\r
377 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
379 <formatter type="brief" usefile="false"/>
\r
380 <formatter type="xml"/>
\r
381 <jvmarg value="-ea"/>
\r
387 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
\r
388 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
389 <attribute default="${includes}" name="includes"/>
\r
390 <attribute default="${excludes}" name="excludes"/>
\r
391 <attribute default="**" name="testincludes"/>
\r
392 <attribute default="" name="testmethods"/>
\r
393 <element name="customize" optional="true"/>
\r
395 <property name="run.jvmargs.ide" value=""/>
\r
396 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
\r
397 <batchtest todir="${build.test.results.dir}">
\r
398 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
\r
399 <filename name="@{testincludes}"/>
\r
401 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
\r
402 <filename name="${test.binarytestincludes}"/>
\r
406 <propertyref prefix="test-sys-prop."/>
\r
407 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
409 <formatter type="brief" usefile="false"/>
\r
410 <formatter type="xml"/>
\r
411 <jvmarg value="-ea"/>
\r
412 <jvmarg line="${run.jvmargs.ide}"/>
\r
418 <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
\r
419 <target if="${testng.available}" name="-init-macrodef-testng">
\r
420 <macrodef name="testng" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
421 <attribute default="${includes}" name="includes"/>
\r
422 <attribute default="${excludes}" name="excludes"/>
\r
423 <attribute default="**" name="testincludes"/>
\r
424 <attribute default="" name="testmethods"/>
\r
425 <element name="customize" optional="true"/>
\r
427 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
\r
428 <isset property="test.method"/>
\r
430 <union id="test.set">
\r
431 <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
\r
432 <filename name="@{testincludes}"/>
\r
435 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
\r
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="jcore-logger-ejb" testname="TestNG tests" workingDir="${basedir}">
\r
437 <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
\r
439 <propertyref prefix="test-sys-prop."/>
\r
440 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
447 <target name="-init-macrodef-test-impl">
\r
448 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
449 <attribute default="${includes}" name="includes"/>
\r
450 <attribute default="${excludes}" name="excludes"/>
\r
451 <attribute default="**" name="testincludes"/>
\r
452 <attribute default="" name="testmethods"/>
\r
453 <element implicit="true" name="customize" optional="true"/>
\r
455 <echo>No tests executed.</echo>
\r
459 <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
\r
460 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
461 <attribute default="${includes}" name="includes"/>
\r
462 <attribute default="${excludes}" name="excludes"/>
\r
463 <attribute default="**" name="testincludes"/>
\r
464 <attribute default="" name="testmethods"/>
\r
465 <element implicit="true" name="customize" optional="true"/>
\r
467 <ejbjarproject2:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
\r
469 </ejbjarproject2:junit>
\r
473 <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
\r
474 <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
475 <attribute default="${includes}" name="includes"/>
\r
476 <attribute default="${excludes}" name="excludes"/>
\r
477 <attribute default="**" name="testincludes"/>
\r
478 <attribute default="" name="testmethods"/>
\r
479 <element implicit="true" name="customize" optional="true"/>
\r
481 <ejbjarproject2:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
\r
483 </ejbjarproject2:testng>
\r
487 <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
\r
488 <macrodef name="test" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
489 <attribute default="${includes}" name="includes"/>
\r
490 <attribute default="${excludes}" name="excludes"/>
\r
491 <attribute default="**" name="testincludes"/>
\r
492 <attribute default="" name="testmethods"/>
\r
494 <ejbjarproject2:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
\r
497 <path path="${run.test.classpath}"/>
\r
498 <path path="${j2ee.platform.classpath}"/>
\r
499 <path path="${j2ee.platform.embeddableejb.classpath}"/>
\r
501 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
502 <jvmarg line="${runmain.jvmargs}"/>
\r
504 </ejbjarproject2:test-impl>
\r
508 <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
\r
509 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
510 <attribute default="${includes}" name="includes"/>
\r
511 <attribute default="${excludes}" name="excludes"/>
\r
512 <attribute default="**" name="testincludes"/>
\r
513 <attribute default="" name="testmethods"/>
\r
514 <element name="customize" optional="true"/>
\r
516 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${java.io.tmpdir}">
\r
517 <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
\r
519 <propertyref prefix="test-sys-prop."/>
\r
520 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
522 <formatter type="brief" usefile="false"/>
\r
523 <formatter type="xml"/>
\r
524 <jvmarg value="-ea"/>
\r
525 <jvmarg line="${debug-args-line}"/>
\r
526 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
\r
532 <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
\r
533 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
534 <attribute default="${includes}" name="includes"/>
\r
535 <attribute default="${excludes}" name="excludes"/>
\r
536 <attribute default="**" name="testincludes"/>
\r
537 <attribute default="" name="testmethods"/>
\r
538 <element name="customize" optional="true"/>
\r
540 <property name="run.jvmargs.ide" value=""/>
\r
541 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
\r
542 <batchtest todir="${build.test.results.dir}">
\r
543 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
\r
544 <filename name="@{testincludes}"/>
\r
546 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
\r
547 <filename name="${test.binarytestincludes}"/>
\r
551 <propertyref prefix="test-sys-prop."/>
\r
552 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
554 <formatter type="brief" usefile="false"/>
\r
555 <formatter type="xml"/>
\r
556 <jvmarg value="-ea"/>
\r
557 <jvmarg line="${run.jvmargs.ide}"/>
\r
558 <jvmarg line="${debug-args-line}"/>
\r
559 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
\r
565 <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
\r
566 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
567 <attribute default="${includes}" name="includes"/>
\r
568 <attribute default="${excludes}" name="excludes"/>
\r
569 <attribute default="**" name="testincludes"/>
\r
570 <attribute default="" name="testmethods"/>
\r
571 <element implicit="true" name="customize" optional="true"/>
\r
573 <ejbjarproject2:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
\r
575 </ejbjarproject2:junit-debug>
\r
579 <target if="${testng.available}" name="-init-macrodef-testng-debug">
\r
580 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
581 <attribute default="${main.class}" name="testClass"/>
\r
582 <attribute default="" name="testMethod"/>
\r
583 <element name="customize2" optional="true"/>
\r
585 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
\r
586 <isset property="test.method"/>
\r
588 <condition else="-suitename jcore-logger-ejb -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
\r
589 <matches pattern=".*\.xml" string="@{testClass}"/>
\r
591 <delete dir="${build.test.results.dir}" quiet="true"/>
\r
592 <mkdir dir="${build.test.results.dir}"/>
\r
593 <ejbjarproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG" classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
\r
596 <jvmarg value="-ea"/>
\r
597 <arg line="${testng.debug.mode}"/>
\r
598 <arg line="-d ${build.test.results.dir}"/>
\r
599 <arg line="-listener org.testng.reporters.VerboseReporter"/>
\r
601 </ejbjarproject1:debug>
\r
605 <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
\r
606 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
607 <attribute default="${main.class}" name="testClass"/>
\r
608 <attribute default="" name="testMethod"/>
\r
609 <element implicit="true" name="customize2" optional="true"/>
\r
611 <ejbjarproject2:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
\r
613 </ejbjarproject2:testng-debug>
\r
617 <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
\r
618 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
619 <attribute default="${includes}" name="includes"/>
\r
620 <attribute default="${excludes}" name="excludes"/>
\r
621 <attribute default="**" name="testincludes"/>
\r
622 <attribute default="" name="testmethods"/>
\r
623 <attribute default="${main.class}" name="testClass"/>
\r
624 <attribute default="" name="testMethod"/>
\r
626 <ejbjarproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
\r
629 <path path="${run.test.classpath}"/>
\r
630 <path path="${j2ee.platform.classpath}"/>
\r
631 <path path="${j2ee.platform.embeddableejb.classpath}"/>
\r
633 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
634 <jvmarg line="${runmain.jvmargs}"/>
\r
636 </ejbjarproject2:test-debug-impl>
\r
640 <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
\r
641 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
\r
642 <attribute default="${includes}" name="includes"/>
\r
643 <attribute default="${excludes}" name="excludes"/>
\r
644 <attribute default="**" name="testincludes"/>
\r
645 <attribute default="" name="testmethods"/>
\r
646 <attribute default="${main.class}" name="testClass"/>
\r
647 <attribute default="" name="testMethod"/>
\r
649 <ejbjarproject2:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
\r
652 <propertyref prefix="test-sys-prop."/>
\r
653 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
656 </ejbjarproject2:testng-debug-impl>
\r
660 <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
\r
661 <target name="-init-macrodef-java">
\r
662 <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
\r
663 <attribute default="${main.class}" name="classname"/>
\r
664 <element name="customize" optional="true"/>
\r
666 <java classname="@{classname}" fork="true">
\r
667 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
\r
668 <jvmarg line="${runmain.jvmargs}"/>
\r
670 <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
\r
673 <propertyref prefix="run-sys-prop."/>
\r
674 <mapper from="run-sys-prop.*" to="*" type="glob"/>
\r
681 <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
\r
682 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
\r
683 <attribute default="${main.class}" name="name"/>
\r
684 <attribute default="${debug.classpath}" name="classpath"/>
\r
686 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
\r
688 <path path="@{classpath}"/>
\r
693 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
\r
694 <attribute default="${build.classes.dir}" name="dir"/>
\r
697 <fileset dir="@{dir}" includes="${fix.classes}">
\r
698 <include name="${fix.includes}*.class"/>
\r
703 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
\r
705 <nbjpdaappreloaded/>
\r
709 <target name="-init-debug-args">
\r
710 <property name="version-output" value="java version "${ant.java.version}"/>
\r
711 <condition property="have-jdk-older-than-1.4">
\r
713 <contains string="${version-output}" substring="java version "1.0"/>
\r
714 <contains string="${version-output}" substring="java version "1.1"/>
\r
715 <contains string="${version-output}" substring="java version "1.2"/>
\r
716 <contains string="${version-output}" substring="java version "1.3"/>
\r
719 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
\r
720 <istrue value="${have-jdk-older-than-1.4}"/>
\r
722 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
\r
723 <os family="windows"/>
\r
725 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
\r
726 <isset property="debug.transport"/>
\r
729 <target depends="-init-debug-args" name="-init-macrodef-debug">
\r
730 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
\r
731 <attribute default="${main.class}" name="classname"/>
\r
732 <attribute default="${debug.classpath}" name="classpath"/>
\r
733 <attribute default="${application.args}" name="args"/>
\r
734 <element name="customize" optional="true"/>
\r
736 <java classname="@{classname}" fork="true">
\r
737 <jvmarg line="${debug-args-line}"/>
\r
738 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
\r
739 <jvmarg line="${runmain.jvmargs}"/>
\r
741 <path path="@{classpath}"/>
\r
743 <arg line="@{args}"/>
\r
749 <target name="-init-taskdefs">
\r
750 <fail unless="libs.CopyLibs.classpath">
\r
751 The libs.CopyLibs.classpath property is not set up.
\r
752 This property must point to
\r
753 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
\r
754 of NetBeans IDE installation and is usually located at
\r
755 <netbeans_installation>/java<version>/ant/extra folder.
\r
756 Either open the project in the IDE and make sure CopyLibs library
\r
757 exists or setup the property manually. For example like this:
\r
758 ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
\r
760 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
\r
762 <target name="-init-ap-cmdline-properties">
\r
763 <property name="annotation.processing.enabled" value="true"/>
\r
764 <property name="annotation.processing.processors.list" value=""/>
\r
765 <property name="annotation.processing.run.all.processors" value="true"/>
\r
766 <property name="javac.processorpath" value="${javac.classpath}"/>
\r
767 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
\r
768 <condition property="ap.supported.internal" value="true">
\r
770 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
\r
774 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
\r
775 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
\r
776 <isfalse value="${annotation.processing.run.all.processors}"/>
\r
778 <condition else="" property="ap.proc.none.internal" value="-proc:none">
\r
779 <isfalse value="${annotation.processing.enabled}"/>
\r
782 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
\r
783 <property name="ap.cmd.line.internal" value=""/>
\r
786 pre NB7.2 profiling section; consider it deprecated
\r
788 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
\r
789 <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
\r
790 <!-- Empty placeholder for easier customization. -->
\r
791 <!-- You can override this target in the ../build.xml file. -->
\r
793 <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
\r
794 <!-- Empty placeholder for easier customization. -->
\r
795 <!-- You can override this target in the ../build.xml file. -->
\r
797 <target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
\r
798 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
\r
799 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
\r
802 end of pre NB7.2 profiling section
\r
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"/>
\r
806 COMPILATION SECTION
\r
808 <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps"/>
\r
809 <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps"/>
\r
810 <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
\r
811 <target depends="init,deps-jar" name="-pre-pre-compile">
\r
812 <mkdir dir="${build.classes.dir}"/>
\r
813 <mkdir dir="${build.ear.classes.dir}"/>
\r
815 <target name="-pre-compile">
\r
816 <!-- Empty placeholder for easier customization. -->
\r
817 <!-- You can override this target in the ../build.xml file. -->
\r
819 <target depends="compile,-library-inclusion-in-archive-weblogic,-library-inclusion-in-archive-by-user" name="library-inclusion-in-archive"/>
\r
820 <target if="is.jars.in.ejbjar" name="-library-inclusion-in-archive-by-user">
\r
821 <copyfiles files="${file.reference.jcore-logger-lib.jar}" todir="${build.classes.dir}"/>
\r
822 <copyfiles files="${file.reference.cdi-api.jar}" todir="${build.classes.dir}"/>
\r
823 <copyfiles files="${file.reference.log4j-api-2.6.2.jar}" todir="${build.classes.dir}"/>
\r
824 <copyfiles files="${file.reference.log4j-core-2.6.2.jar}" todir="${build.classes.dir}"/>
\r
825 <copyfiles files="${file.reference.log4j-web-2.6.2.jar}" todir="${build.classes.dir}"/>
\r
827 <target if="is.server.weblogic" name="-library-inclusion-in-archive-weblogic">
\r
828 <basename file="${file.reference.jcore-logger-lib.jar}" property="manifest.file.reference.jcore-logger-lib.jar"/>
\r
829 <basename file="${file.reference.cdi-api.jar}" property="manifest.file.reference.cdi-api.jar"/>
\r
830 <basename file="${file.reference.log4j-api-2.6.2.jar}" property="manifest.file.reference.log4j-api-2.6.2.jar"/>
\r
831 <basename file="${file.reference.log4j-core-2.6.2.jar}" property="manifest.file.reference.log4j-core-2.6.2.jar"/>
\r
832 <basename file="${file.reference.log4j-web-2.6.2.jar}" property="manifest.file.reference.log4j-web-2.6.2.jar"/>
\r
833 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
\r
834 <attribute name="Extension-List" value="jar-1 jar-2 jar-3 jar-4 jar-5 "/>
\r
835 <attribute name="jar-1-Extension-Name" value="${manifest.file.reference.jcore-logger-lib.jar}"/>
\r
836 <attribute name="jar-2-Extension-Name" value="${manifest.file.reference.cdi-api.jar}"/>
\r
837 <attribute name="jar-3-Extension-Name" value="${manifest.file.reference.log4j-api-2.6.2.jar}"/>
\r
838 <attribute name="jar-4-Extension-Name" value="${manifest.file.reference.log4j-core-2.6.2.jar}"/>
\r
839 <attribute name="jar-5-Extension-Name" value="${manifest.file.reference.log4j-web-2.6.2.jar}"/>
\r
842 <target depends="compile" name="library-inclusion-in-manifest">
\r
843 <copyfiles files="${file.reference.jcore-logger-lib.jar}" todir="${dist.ear.dir}/lib"/>
\r
844 <copyfiles files="${file.reference.cdi-api.jar}" todir="${dist.ear.dir}/lib"/>
\r
845 <copyfiles files="${file.reference.log4j-api-2.6.2.jar}" todir="${dist.ear.dir}/lib"/>
\r
846 <copyfiles files="${file.reference.log4j-core-2.6.2.jar}" todir="${dist.ear.dir}/lib"/>
\r
847 <copyfiles files="${file.reference.log4j-web-2.6.2.jar}" todir="${dist.ear.dir}/lib"/>
\r
848 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
\r
850 <target name="-copy-meta-inf">
\r
851 <copy todir="${classes.dir}">
\r
852 <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
\r
854 <copy todir="${classes.dir}/META-INF">
\r
855 <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
\r
858 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
\r
859 <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
\r
860 <copy todir="${classes.dir}">
\r
861 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
864 <target name="-post-compile">
\r
865 <!-- Empty placeholder for easier customization. -->
\r
866 <!-- You can override this target in the ../build.xml file. -->
\r
868 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
\r
869 <target name="-pre-compile-single">
\r
870 <!-- Empty placeholder for easier customization. -->
\r
871 <!-- You can override this target in the ../build.xml file. -->
\r
873 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
\r
874 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
\r
875 <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
\r
877 <target name="-post-compile-single">
\r
878 <!-- Empty placeholder for easier customization. -->
\r
879 <!-- You can override this target in the ../build.xml file. -->
\r
881 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
\r
883 DIST BUILDING SECTION
\r
885 <target name="-pre-dist">
\r
886 <!-- Empty placeholder for easier customization. -->
\r
887 <!-- You can override this target in the ../build.xml file. -->
\r
889 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
\r
890 <dirname file="${dist.jar}" property="dist.jar.dir"/>
\r
891 <mkdir dir="${dist.jar.dir}"/>
\r
892 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
\r
893 <fileset dir="${build.classes.dir}"/>
\r
896 <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
\r
897 <dirname file="${dist.jar}" property="dist.jar.dir"/>
\r
898 <mkdir dir="${dist.jar.dir}"/>
\r
899 <jar compress="${jar.compress}" jarfile="${dist.jar}">
\r
900 <fileset dir="${build.classes.dir}"/>
\r
904 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
\r
906 <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">
\r
907 <dirname file="${dist.jar}" property="dist.jar.dir"/>
\r
908 <mkdir dir="${dist.jar.dir}"/>
\r
909 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
\r
910 <fileset dir="${build.classes.dir}"/>
\r
913 <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">
\r
914 <dirname file="${dist.jar}" property="dist.jar.dir"/>
\r
915 <mkdir dir="${dist.jar.dir}"/>
\r
916 <jar compress="${jar.compress}" jarfile="${dist.jar}">
\r
917 <fileset dir="${build.classes.dir}"/>
\r
920 <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"/>
\r
921 <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"/>
\r
923 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
\r
925 <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
\r
926 <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
\r
927 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
\r
928 <mkdir dir="${dist.jar.dir}"/>
\r
929 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
\r
930 <fileset dir="${build.ear.classes.dir}"/>
\r
933 <target name="-post-dist">
\r
934 <!-- Empty placeholder for easier customization. -->
\r
935 <!-- You can override this target in the ../build.xml file. -->
\r
937 <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
\r
938 <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"/>
\r
942 <target depends="run-deploy" description="Deploy to server." name="run"/>
\r
943 <target name="-init-deploy">
\r
944 <property name="include.jar.manifest" value=""/>
\r
946 <target name="pre-run-deploy">
\r
947 <!-- Empty placeholder for easier customization. -->
\r
948 <!-- You can override this target in the ../build.xml file. -->
\r
950 <target name="post-run-deploy">
\r
951 <!-- Empty placeholder for easier customization. -->
\r
952 <!-- You can override this target in the ../build.xml file. -->
\r
954 <target name="-pre-nbmodule-run-deploy">
\r
955 <!-- Empty placeholder for easier customization. -->
\r
956 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
\r
958 <target name="-post-nbmodule-run-deploy">
\r
959 <!-- Empty placeholder for easier customization. -->
\r
960 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
\r
962 <target name="-run-deploy-am">
\r
963 <!-- Task to deploy to the Access Manager runtime. -->
\r
965 <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"/>
\r
966 <target if="netbeans.home" name="-run-deploy-nb">
\r
967 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
\r
969 <target name="-init-deploy-ant" unless="netbeans.home">
\r
970 <property name="deploy.ant.archive" value="${dist.jar}"/>
\r
971 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
\r
972 <property name="deploy.ant.enabled" value="true"/>
\r
974 <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
\r
975 <target if="netbeans.home" name="-run-undeploy-nb">
\r
976 <fail message="Undeploy is not supported from within the IDE"/>
\r
978 <target depends="dist" name="verify">
\r
979 <nbverify file="${dist.jar}"/>
\r
981 <target depends="init,compile-single" name="run-main">
\r
982 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
\r
983 <ejbjarproject3:java classname="${run.class}"/>
\r
985 <target depends="init" if="netbeans.home" name="-do-update-breakpoints">
\r
986 <ejbjarproject1:nbjpdaappreloaded/>
\r
991 <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
\r
992 <nbdeploy debugmode="true"/>
\r
993 <antcall target="connect-debugger"/>
\r
995 <target name="connect-debugger" unless="is.debugged">
\r
996 <condition property="listeningcp" value="sourcepath">
\r
997 <istrue value="${j2ee.compile.on.save}"/>
\r
999 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${name}" transport="${jpda.transport}">
\r
1001 <path path="${debug.classpath}"/>
\r
1004 <path path="${web.docbase.dir}"/>
\r
1008 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
\r
1009 <ejbjarproject1:nbjpdastart/>
\r
1011 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
\r
1012 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
\r
1013 <ejbjarproject1:debug/>
\r
1015 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
\r
1016 <target depends="init" name="-pre-debug-fix">
\r
1017 <fail unless="fix.includes">Must set fix.includes</fail>
\r
1018 <property name="javac.includes" value="${fix.includes}.java"/>
\r
1020 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
\r
1021 <ejbjarproject1:nbjpdareload/>
\r
1023 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
\r
1030 pre NB7.2 profiling section; consider it deprecated
\r
1032 <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
\r
1033 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
\r
1034 <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
\r
1035 <isset property="profiler.info.jvmargs.extra"/>
\r
1037 <antcall target="${profiler.startserver.target}"/>
\r
1038 <antcall target="run"/>
\r
1039 <antcall target="-profile-start-loadgen"/>
\r
1041 <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
\r
1042 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
\r
1045 <path path="${run.test.classpath}"/>
\r
1046 <path path="${j2ee.platform.classpath}"/>
\r
1048 </nbprofiledirect>
\r
1049 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
\r
1050 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
\r
1051 <jvmarg value="${profiler.info.jvmargs.agent}"/>
\r
1052 <jvmarg line="${profiler.info.jvmargs}"/>
\r
1053 <test name="${profile.class}"/>
\r
1055 <path path="${run.test.classpath}"/>
\r
1056 <path path="${j2ee.platform.classpath}"/>
\r
1059 <propertyref prefix="test-sys-prop."/>
\r
1060 <mapper from="test-sys-prop.*" to="*" type="glob"/>
\r
1062 <formatter type="brief" usefile="false"/>
\r
1063 <formatter type="xml"/>
\r
1066 <target name="start-profiled-server">
\r
1067 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
\r
1068 <jvmarg value="${profiler.info.jvmargs.agent}"/>
\r
1069 <jvmarg value="${profiler.j2ee.agentID}"/>
\r
1070 </nbstartprofiledserver>
\r
1072 <target name="start-profiled-server-extraargs">
\r
1073 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
\r
1074 <jvmarg value="${profiler.info.jvmargs.extra}"/>
\r
1075 <jvmarg value="${profiler.info.jvmargs.agent}"/>
\r
1076 <jvmarg value="${profiler.j2ee.agentID}"/>
\r
1077 </nbstartprofiledserver>
\r
1080 end of pre NB7.2 profiling section
\r
1082 <target if="netbeans.home" name="-profile-check">
\r
1083 <condition property="profiler.configured">
\r
1085 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
\r
1086 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
\r
1090 <target depends="init,compile,dist-directory-deploy" name="-do-profile">
\r
1092 <nbstartserver profilemode="true"/>
\r
1093 <nbdeploy clientUrlPart="$" forceRedeploy="true" profilemode="true"/>
\r
1094 <antcall target="-profile-start-loadgen"/>
\r
1096 <target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
\r
1097 <antcall target="-do-profile"/>
\r
1099 <target depends="-profile-test-single-pre72" name="profile-test-single"/>
\r
1100 <target depends="-profile-check" if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs.agent">
\r
1102 <antcall target="test-single"/>
\r
1104 <target if="profiler.loadgen.path" name="-profile-start-loadgen">
\r
1105 <loadgenstart path="${profiler.loadgen.path}"/>
\r
1110 <target depends="init" if="have.sources" name="javadoc-build">
\r
1111 <mkdir dir="${dist.javadoc.dir}"/>
\r
1112 <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}">
\r
1114 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
\r
1116 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
\r
1117 <filename name="**/*.java"/>
\r
1119 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
\r
1120 <include name="**/*.java"/>
\r
1123 <copy todir="${dist.javadoc.dir}">
\r
1124 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
\r
1125 <filename name="**/doc-files/**"/>
\r
1127 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
\r
1128 <include name="**/doc-files/**"/>
\r
1132 <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
\r
1133 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
\r
1135 <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
\r
1137 TEST COMPILATION SECTION
\r
1139 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
\r
1140 <mkdir dir="${build.test.classes.dir}"/>
\r
1141 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
\r
1143 <target name="-pre-compile-test">
\r
1144 <!-- Empty placeholder for easier customization. -->
\r
1145 <!-- You can override this target in the ../build.xml file. -->
\r
1147 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
\r
1148 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
\r
1149 <copy todir="${build.test.classes.dir}">
\r
1150 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
\r
1153 <target name="-post-compile-test">
\r
1154 <!-- Empty placeholder for easier customization. -->
\r
1155 <!-- You can override this target in the ../build.xml file. -->
\r
1157 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
\r
1158 <target name="-pre-compile-test-single">
\r
1159 <!-- Empty placeholder for easier customization. -->
\r
1160 <!-- You can override this target in the ../build.xml file. -->
\r
1162 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
\r
1163 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
\r
1164 <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}"/>
\r
1166 <target name="-post-compile-test-single">
\r
1167 <!-- Empty placeholder for easier customization. -->
\r
1168 <!-- You can override this target in the ../build.xml file. -->
\r
1170 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
\r
1172 TEST EXECUTION SECTION
\r
1174 <target depends="init" if="have.tests" name="-pre-test-run">
\r
1175 <mkdir dir="${build.test.results.dir}"/>
\r
1177 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
\r
1178 <ejbjarproject2:test includes="${includes}" testincludes="**/*Test.java"/>
\r
1180 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
\r
1181 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
\r
1183 <target depends="init" if="have.tests" name="test-report"/>
\r
1184 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
\r
1185 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
\r
1186 <target depends="init" if="have.tests" name="-pre-test-run-single">
\r
1187 <mkdir dir="${build.test.results.dir}"/>
\r
1189 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
\r
1190 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
\r
1191 <ejbjarproject2:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
\r
1193 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
\r
1194 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
\r
1196 <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"/>
\r
1197 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
\r
1198 <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
\r
1199 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
\r
1200 <ejbjarproject2:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
\r
1202 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
\r
1203 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
\r
1205 <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"/>
\r
1207 TEST DEBUGGING SECTION
\r
1209 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
\r
1210 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
\r
1211 <ejbjarproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
\r
1213 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
\r
1214 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
\r
1215 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
\r
1216 <ejbjarproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
\r
1218 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
\r
1219 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
\r
1221 <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
\r
1222 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
\r
1223 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
\r
1224 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
\r
1226 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
\r
1230 <target depends="init" name="deps-clean" unless="no.deps"/>
\r
1231 <target depends="init" name="-do-clean">
\r
1232 <delete dir="${build.dir}"/>
\r
1233 <delete dir="${dist.dir}"/>
\r
1235 <target name="-post-clean">
\r
1236 <!-- Empty placeholder for easier customization. -->
\r
1237 <!-- You can override this target in the ../build.xml file. -->
\r
1239 <target depends="init" if="netbeans.home" name="undeploy-clean">
\r
1240 <nbundeploy failOnError="false" startServer="false"/>
\r
1242 <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
\r
1243 <target depends="clean" name="clean-ear"/>
\r