]> git.mxchange.org Git - pizzaservice-ejb.git/blob - nbproject/build-impl.xml
0877a367e4357d15b8587eb328f8756cf166c77c
[pizzaservice-ejb.git] / nbproject / build-impl.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 *** GENERATED FROM project.xml - DO NOT EDIT  ***
4 ***         EDIT ../build.xml INSTEAD         ***
5
6 For the purpose of easier reading the script
7 is divided into following sections:
8
9 - initialization
10 - compilation
11 - dist
12 - execution
13 - debugging
14 - javadoc
15 - cleanup
16
17 -->
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="pizzaservice-ejb-impl">
19         <import file="ant-deploy.xml"/>
20         <fail message="Please build using Ant 1.7.1 or higher.">
21                 <condition>
22                         <not>
23                                 <antversion atleast="1.7.1"/>
24                         </not>
25                 </condition>
26         </fail>
27         <target depends="dist,javadoc" description="Build whole project." name="default"/>
28         <!--
29                 INITIALIZATION SECTION
30         -->
31         <target name="-pre-init">
32                 <!-- Empty placeholder for easier customization. -->
33                 <!-- You can override this target in the ../build.xml file. -->
34         </target>
35         <target depends="-pre-init" name="-init-private">
36                 <property file="nbproject/private/private.properties"/>
37         </target>
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}"/>
43                 </pathconvert>
44                 <basename file="${libraries.path}" property="libraries.basename" suffix=".properties"/>
45                 <available file="${libraries.dir}/${libraries.basename}-private.properties" property="private.properties.available"/>
46         </target>
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">
49                         <filterchain>
50                                 <replacestring from="$${base}" to="${libraries.dir}"/>
51                                 <escapeunicode/>
52                         </filterchain>
53                 </loadproperties>
54         </target>
55         <target depends="-pre-init,-init-private,-init-private-libraries" name="-init-libraries">
56                 <loadproperties encoding="ISO-8859-1" srcfile="${libraries.path}">
57                         <filterchain>
58                                 <replacestring from="$${base}" to="${libraries.dir}"/>
59                                 <escapeunicode/>
60                         </filterchain>
61                 </loadproperties>
62         </target>
63         <target depends="-pre-init,-init-private,-init-libraries" name="-init-userdir">
64                 <property location="${netbeans.user}/build.properties" name="user.properties.file"/>
65         </target>
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"/>
72         </target>
73         <target depends="-pre-init,-init-private,-init-libraries,-init-userdir,-init-user" name="-init-project">
74                 <property file="nbproject/project.properties"/>
75         </target>
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">
81                         <or>
82                                 <available file="${test.src.dir}"/>
83                         </or>
84                 </condition>
85                 <condition property="have.sources">
86                         <or>
87                                 <available file="${src.dir}"/>
88                         </or>
89                 </condition>
90                 <condition property="netbeans.home+have.tests">
91                         <and>
92                                 <isset property="netbeans.home"/>
93                                 <isset property="have.tests"/>
94                         </and>
95                 </condition>
96                 <condition property="no.javadoc.preview">
97                         <isfalse value="${javadoc.preview}"/>
98                 </condition>
99                 <available file="${meta.inf}/MANIFEST.MF" property="has.custom.manifest"/>
100                 <!--
101                         Variables needed to support directory deployment.
102                 -->
103                 <condition property="do.package.with.custom.manifest.not.directory.deploy">
104                         <and>
105                                 <isset property="has.custom.manifest"/>
106                                 <isfalse value="${directory.deployment.supported}"/>
107                         </and>
108                 </condition>
109                 <condition property="do.package.without.custom.manifest.not.directory.deploy">
110                         <and>
111                                 <not>
112                                         <isset property="has.custom.manifest"/>
113                                 </not>
114                                 <isfalse value="${directory.deployment.supported}"/>
115                         </and>
116                 </condition>
117                 <!--End Variables needed to support directory deployment.-->
118                 <condition property="classes.dir" value="${build.ear.classes.dir}">
119                         <isset property="dist.ear.dir"/>
120                 </condition>
121                 <property name="classes.dir" value="${build.classes.dir}"/>
122                 <condition property="no.deps">
123                         <and>
124                                 <istrue value="${no.dependencies}"/>
125                         </and>
126                 </condition>
127                 <condition property="no.dist.ear.dir">
128                         <not>
129                                 <isset property="dist.ear.dir"/>
130                         </not>
131                 </condition>
132                 <property name="source.encoding" value="${file.encoding}"/>
133                 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
134                         <and>
135                                 <isset property="javadoc.encoding"/>
136                                 <not>
137                                         <equals arg1="${javadoc.encoding}" arg2=""/>
138                                 </not>
139                         </and>
140                 </condition>
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}'">
146                         <and>
147                                 <isset property="endorsed.classpath"/>
148                                 <length length="0" string="${endorsed.classpath}" when="greater"/>
149                         </and>
150                 </condition>
151                 <condition property="is.server.weblogic" value="true">
152                         <equals arg1="${j2ee.server.type}" arg2="WebLogic9"/>
153                 </condition>
154                 <condition property="is.jars.in.ejbjar" value="true">
155                         <equals arg1="${jars.in.ejbjar}" arg2="true"/>
156                 </condition>
157                 <condition else="false" property="jdkBug6558476">
158                         <and>
159                                 <matches pattern="1\.[56]" string="${java.specification.version}"/>
160                                 <not>
161                                         <os family="unix"/>
162                                 </not>
163                         </and>
164                 </condition>
165                 <property name="javac.fork" value="${jdkBug6558476}"/>
166                 <condition property="junit.available">
167                         <or>
168                                 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>
169                                 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
170                         </or>
171                 </condition>
172                 <condition property="testng.available">
173                         <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
174                 </condition>
175                 <condition property="junit+testng.available">
176                         <and>
177                                 <istrue value="${junit.available}"/>
178                                 <istrue value="${testng.available}"/>
179                         </and>
180                 </condition>
181                 <condition else="testng" property="testng.mode" value="mixed">
182                         <istrue value="${junit+testng.available}"/>
183                 </condition>
184                 <condition else="" property="testng.debug.mode" value="-mixed">
185                         <istrue value="${junit+testng.available}"/>
186                 </condition>
187         </target>
188         <target depends="init" name="-init-cos" unless="deploy.on.save">
189                 <condition property="deploy.on.save" value="true">
190                         <or>
191                                 <istrue value="${j2ee.deploy.on.save}"/>
192                                 <istrue value="${j2ee.compile.on.save}"/>
193                         </or>
194                 </condition>
195         </target>
196         <target name="-post-init">
197                 <!-- Empty placeholder for easier customization. -->
198                 <!-- You can override this target in the ../build.xml file. -->
199         </target>
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">
211                         <and>
212                                 <matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
213                                 <not>
214                                         <isset property="j2ee.server.home"/>
215                                 </not>
216                         </and>
217                 </condition>
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=&lt;app_server_installation_directory&gt;
223                 </fail>
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=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
229                         or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
230                 </fail>
231         </target>
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"/>
236                         <sequential>
237                                 <property name="@{name}" value="${@{value}}"/>
238                         </sequential>
239                 </macrodef>
240         </target>
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"/>
253                         <sequential>
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}">
259                                         <src>
260                                                 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
261                                                         <include name="*"/>
262                                                 </dirset>
263                                         </src>
264                                         <classpath>
265                                                 <path path="@{classpath}"/>
266                                         </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}"/>
275                                         <customize/>
276                                 </javac>
277                         </sequential>
278                 </macrodef>
279         </target>
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"/>
292                         <sequential>
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}">
297                                         <src>
298                                                 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
299                                                         <include name="*"/>
300                                                 </dirset>
301                                         </src>
302                                         <classpath>
303                                                 <path path="@{classpath}"/>
304                                         </classpath>
305                                         <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
306                                         <compilerarg line="${javac.compilerargs}"/>
307                                         <customize/>
308                                 </javac>
309                         </sequential>
310                 </macrodef>
311         </target>
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"/>
317                         <sequential>
318                                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
319                                         <classpath>
320                                                 <path path="@{classpath}"/>
321                                         </classpath>
322                                 </depend>
323                         </sequential>
324                 </macrodef>
325                 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
326                         <attribute default="${build.classes.dir}" name="destdir"/>
327                         <sequential>
328                                 <fail unless="javac.includes">Must set javac.includes</fail>
329                                 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
330                                         <path>
331                                                 <filelist dir="@{destdir}" files="${javac.includes}"/>
332                                         </path>
333                                         <globmapper from="*.java" to="*.class"/>
334                                 </pathconvert>
335                                 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
336                                 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
337                                 <delete>
338                                         <files includesfile="${javac.includesfile.binary}"/>
339                                 </delete>
340                                 <delete file="${javac.includesfile.binary}"/>
341                         </sequential>
342                 </macrodef>
343         </target>
344         <target if="${junit.available}" name="-init-macrodef-junit-init">
345                 <condition else="false" property="nb.junit.batch" value="true">
346                         <and>
347                                 <istrue value="${junit.available}"/>
348                                 <not>
349                                         <isset property="test.method"/>
350                                 </not>
351                         </and>
352                 </condition>
353                 <condition else="false" property="nb.junit.single" value="true">
354                         <and>
355                                 <istrue value="${junit.available}"/>
356                                 <isset property="test.method"/>
357                         </and>
358                 </condition>
359         </target>
360         <target name="-init-test-properties">
361                 <property name="test.binaryincludes" value="&lt;nothing&gt;"/>
362                 <property name="test.binarytestincludes" value=""/>
363                 <property name="test.binaryexcludes" value=""/>
364         </target>
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"/>
372                         <sequential>
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}"/>
375                                         <syspropertyset>
376                                                 <propertyref prefix="test-sys-prop."/>
377                                                 <mapper from="test-sys-prop.*" to="*" type="glob"/>
378                                         </syspropertyset>
379                                         <formatter type="brief" usefile="false"/>
380                                         <formatter type="xml"/>
381                                         <jvmarg value="-ea"/>
382                                         <customize/>
383                                 </junit>
384                         </sequential>
385                 </macrodef>
386         </target>
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"/>
394                         <sequential>
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}"/>
400                                                 </fileset>
401                                                 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
402                                                         <filename name="${test.binarytestincludes}"/>
403                                                 </fileset>
404                                         </batchtest>
405                                         <syspropertyset>
406                                                 <propertyref prefix="test-sys-prop."/>
407                                                 <mapper from="test-sys-prop.*" to="*" type="glob"/>
408                                         </syspropertyset>
409                                         <formatter type="brief" usefile="false"/>
410                                         <formatter type="xml"/>
411                                         <jvmarg value="-ea"/>
412                                         <jvmarg line="${run.jvmargs.ide}"/>
413                                         <customize/>
414                                 </junit>
415                         </sequential>
416                 </macrodef>
417         </target>
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"/>
426                         <sequential>
427                                 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
428                                         <isset property="test.method"/>
429                                 </condition>
430                                 <union id="test.set">
431                                         <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
432                                                 <filename name="@{testincludes}"/>
433                                         </fileset>
434                                 </union>
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="pizzaservice-ejb" testname="TestNG tests" workingDir="${basedir}">
437                                         <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
438                                         <propertyset>
439                                                 <propertyref prefix="test-sys-prop."/>
440                                                 <mapper from="test-sys-prop.*" to="*" type="glob"/>
441                                         </propertyset>
442                                         <customize/>
443                                 </testng>
444                         </sequential>
445                 </macrodef>
446         </target>
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"/>
454                         <sequential>
455                                 <echo>No tests executed.</echo>
456                         </sequential>
457                 </macrodef>
458         </target>
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"/>
466                         <sequential>
467                                 <ejbjarproject2:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
468                                         <customize/>
469                                 </ejbjarproject2:junit>
470                         </sequential>
471                 </macrodef>
472         </target>
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"/>
480                         <sequential>
481                                 <ejbjarproject2:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
482                                         <customize/>
483                                 </ejbjarproject2:testng>
484                         </sequential>
485                 </macrodef>
486         </target>
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"/>
493                         <sequential>
494                                 <ejbjarproject2:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
495                                         <customize>
496                                                 <classpath>
497                                                         <path path="${run.test.classpath}"/>
498                                                         <path path="${j2ee.platform.classpath}"/>
499                                                         <path path="${j2ee.platform.embeddableejb.classpath}"/>
500                                                 </classpath>
501                                                 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
502                                                 <jvmarg line="${runmain.jvmargs}"/>
503                                         </customize>
504                                 </ejbjarproject2:test-impl>
505                         </sequential>
506                 </macrodef>
507         </target>
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"/>
515                         <sequential>
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}"/>
518                                         <syspropertyset>
519                                                 <propertyref prefix="test-sys-prop."/>
520                                                 <mapper from="test-sys-prop.*" to="*" type="glob"/>
521                                         </syspropertyset>
522                                         <formatter type="brief" usefile="false"/>
523                                         <formatter type="xml"/>
524                                         <jvmarg value="-ea"/>
525                                         <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
526                                         <customize/>
527                                 </junit>
528                         </sequential>
529                 </macrodef>
530         </target>
531         <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
532                 <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
533                         <attribute default="${includes}" name="includes"/>
534                         <attribute default="${excludes}" name="excludes"/>
535                         <attribute default="**" name="testincludes"/>
536                         <attribute default="" name="testmethods"/>
537                         <element name="customize" optional="true"/>
538                         <sequential>
539                                 <property name="run.jvmargs.ide" value=""/>
540                                 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
541                                         <batchtest todir="${build.test.results.dir}">
542                                                 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
543                                                         <filename name="@{testincludes}"/>
544                                                 </fileset>
545                                                 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
546                                                         <filename name="${test.binarytestincludes}"/>
547                                                 </fileset>
548                                         </batchtest>
549                                         <syspropertyset>
550                                                 <propertyref prefix="test-sys-prop."/>
551                                                 <mapper from="test-sys-prop.*" to="*" type="glob"/>
552                                         </syspropertyset>
553                                         <formatter type="brief" usefile="false"/>
554                                         <formatter type="xml"/>
555                                         <jvmarg value="-ea"/>
556                                         <jvmarg line="${run.jvmargs.ide}"/>
557                                         <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
558                                         <customize/>
559                                 </junit>
560                         </sequential>
561                 </macrodef>
562         </target>
563         <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
564                 <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
565                         <attribute default="${includes}" name="includes"/>
566                         <attribute default="${excludes}" name="excludes"/>
567                         <attribute default="**" name="testincludes"/>
568                         <attribute default="" name="testmethods"/>
569                         <element implicit="true" name="customize" optional="true"/>
570                         <sequential>
571                                 <ejbjarproject2:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
572                                         <customize/>
573                                 </ejbjarproject2:junit-debug>
574                         </sequential>
575                 </macrodef>
576         </target>
577         <target if="${testng.available}" name="-init-macrodef-testng-debug">
578                 <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
579                         <attribute default="${main.class}" name="testClass"/>
580                         <attribute default="" name="testMethod"/>
581                         <element name="customize2" optional="true"/>
582                         <sequential>
583                                 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
584                                         <isset property="test.method"/>
585                                 </condition>
586                                 <condition else="-suitename pizzaservice-ejb -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
587                                         <matches pattern=".*\.xml" string="@{testClass}"/>
588                                 </condition>
589                                 <delete dir="${build.test.results.dir}" quiet="true"/>
590                                 <mkdir dir="${build.test.results.dir}"/>
591                                 <ejbjarproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG" classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
592                                         <customize>
593                                                 <customize2/>
594                                                 <jvmarg value="-ea"/>
595                                                 <arg line="${testng.debug.mode}"/>
596                                                 <arg line="-d ${build.test.results.dir}"/>
597                                                 <arg line="-listener org.testng.reporters.VerboseReporter"/>
598                                         </customize>
599                                 </ejbjarproject1:debug>
600                         </sequential>
601                 </macrodef>
602         </target>
603         <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
604                 <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
605                         <attribute default="${main.class}" name="testClass"/>
606                         <attribute default="" name="testMethod"/>
607                         <element implicit="true" name="customize2" optional="true"/>
608                         <sequential>
609                                 <ejbjarproject2:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
610                                         <customize2/>
611                                 </ejbjarproject2:testng-debug>
612                         </sequential>
613                 </macrodef>
614         </target>
615         <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
616                 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
617                         <attribute default="${includes}" name="includes"/>
618                         <attribute default="${excludes}" name="excludes"/>
619                         <attribute default="**" name="testincludes"/>
620                         <attribute default="" name="testmethods"/>
621                         <attribute default="${main.class}" name="testClass"/>
622                         <attribute default="" name="testMethod"/>
623                         <sequential>
624                                 <ejbjarproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
625                                         <customize>
626                                                 <classpath>
627                                                         <path path="${run.test.classpath}"/>
628                                                         <path path="${j2ee.platform.classpath}"/>
629                                                         <path path="${j2ee.platform.embeddableejb.classpath}"/>
630                                                 </classpath>
631                                                 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
632                                                 <jvmarg line="${runmain.jvmargs}"/>
633                                         </customize>
634                                 </ejbjarproject2:test-debug-impl>
635                         </sequential>
636                 </macrodef>
637         </target>
638         <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
639                 <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
640                         <attribute default="${includes}" name="includes"/>
641                         <attribute default="${excludes}" name="excludes"/>
642                         <attribute default="**" name="testincludes"/>
643                         <attribute default="" name="testmethods"/>
644                         <attribute default="${main.class}" name="testClass"/>
645                         <attribute default="" name="testMethod"/>
646                         <sequential>
647                                 <ejbjarproject2:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
648                                         <customize2>
649                                                 <syspropertyset>
650                                                         <propertyref prefix="test-sys-prop."/>
651                                                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
652                                                 </syspropertyset>
653                                         </customize2>
654                                 </ejbjarproject2:testng-debug-impl>
655                         </sequential>
656                 </macrodef>
657         </target>
658         <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
659         <target name="-init-macrodef-java">
660                 <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
661                         <attribute default="${main.class}" name="classname"/>
662                         <element name="customize" optional="true"/>
663                         <sequential>
664                                 <java classname="@{classname}" fork="true">
665                                         <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
666                                         <jvmarg line="${runmain.jvmargs}"/>
667                                         <classpath>
668                                                 <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
669                                         </classpath>
670                                         <syspropertyset>
671                                                 <propertyref prefix="run-sys-prop."/>
672                                                 <mapper from="run-sys-prop.*" to="*" type="glob"/>
673                                         </syspropertyset>
674                                         <customize/>
675                                 </java>
676                         </sequential>
677                 </macrodef>
678         </target>
679         <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
680                 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
681                         <attribute default="${main.class}" name="name"/>
682                         <attribute default="${debug.classpath}" name="classpath"/>
683                         <sequential>
684                                 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
685                                         <classpath>
686                                                 <path path="@{classpath}"/>
687                                         </classpath>
688                                 </nbjpdastart>
689                         </sequential>
690                 </macrodef>
691                 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
692                         <attribute default="${build.classes.dir}" name="dir"/>
693                         <sequential>
694                                 <nbjpdareload>
695                                         <fileset dir="@{dir}" includes="${fix.classes}">
696                                                 <include name="${fix.includes}*.class"/>
697                                         </fileset>
698                                 </nbjpdareload>
699                         </sequential>
700                 </macrodef>
701                 <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
702                         <sequential>
703                                 <nbjpdaappreloaded/>
704                         </sequential>
705                 </macrodef>
706         </target>
707         <target name="-init-debug-args">
708                 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
709                         <os family="windows"/>
710                 </condition>
711                 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
712                         <isset property="debug.transport"/>
713                 </condition>
714         </target>
715         <target depends="-init-debug-args" name="-init-macrodef-debug">
716                 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
717                         <attribute default="${main.class}" name="classname"/>
718                         <attribute default="${debug.classpath}" name="classpath"/>
719                         <attribute default="${application.args}" name="args"/>
720                         <element name="customize" optional="true"/>
721                         <sequential>
722                                 <java classname="@{classname}" fork="true">
723                                         <jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
724                                         <jvmarg line="${runmain.jvmargs}"/>
725                                         <classpath>
726                                                 <path path="@{classpath}"/>
727                                         </classpath>
728                                         <arg line="@{args}"/>
729                                         <customize/>
730                                 </java>
731                         </sequential>
732                 </macrodef>
733         </target>
734         <target name="-init-taskdefs">
735                 <fail unless="libs.CopyLibs.classpath">
736                         The libs.CopyLibs.classpath property is not set up.
737                         This property must point to
738                         org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
739                         of NetBeans IDE installation and is usually located at
740 &lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
741                         Either open the project in the IDE and make sure CopyLibs library
742                         exists or setup the property manually. For example like this:
743                         ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
744                 </fail>
745                 <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
746         </target>
747         <target name="-init-ap-cmdline-properties">
748                 <property name="annotation.processing.enabled" value="true"/>
749                 <property name="annotation.processing.processors.list" value=""/>
750                 <property name="annotation.processing.run.all.processors" value="true"/>
751                 <property name="javac.processorpath" value="${javac.classpath}"/>
752                 <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
753                 <condition property="ap.supported.internal" value="true">
754                         <not>
755                                 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
756                         </not>
757                 </condition>
758         </target>
759         <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
760                 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
761                         <isfalse value="${annotation.processing.run.all.processors}"/>
762                 </condition>
763                 <condition else="" property="ap.proc.none.internal" value="-proc:none">
764                         <isfalse value="${annotation.processing.enabled}"/>
765                 </condition>
766         </target>
767         <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
768                 <property name="ap.cmd.line.internal" value=""/>
769         </target>
770         <!--
771                 pre NB7.2 profiling section; consider it deprecated
772         -->
773         <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
774         <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
775                 <!-- Empty placeholder for easier customization. -->
776                 <!-- You can override this target in the ../build.xml file. -->
777         </target>
778         <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
779                 <!-- Empty placeholder for easier customization. -->
780                 <!-- You can override this target in the ../build.xml file. -->
781         </target>
782         <target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
783                 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
784                 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
785         </target>
786         <!--
787                 end of pre NB7.2 profiling section
788         -->
789         <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"/>
790         <!--
791                 COMPILATION SECTION
792         -->
793         <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
794                 <ant antfile="${project.pizzaservice-core}/build.xml" inheritall="false" target="jar">
795                         <property name="deploy.on.save" value="false"/>
796                 </ant>
797                 <ant antfile="${project.pizzaservice-lib}/build.xml" inheritall="false" target="jar">
798                         <property name="deploy.on.save" value="false"/>
799                 </ant>
800                 <ant antfile="${project.pizzaservice-mailer-lib}/build.xml" inheritall="false" target="jar">
801                         <property name="deploy.on.save" value="false"/>
802                 </ant>
803                 <ant antfile="${project.juser-core}/build.xml" inheritall="false" target="jar">
804                         <property name="deploy.on.save" value="false"/>
805                 </ant>
806         </target>
807         <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
808                 <ant antfile="${project.pizzaservice-core}/build.xml" inheritall="false" target="jar">
809                         <property name="deploy.on.save" value="false"/>
810                 </ant>
811                 <ant antfile="${project.pizzaservice-lib}/build.xml" inheritall="false" target="jar">
812                         <property name="deploy.on.save" value="false"/>
813                 </ant>
814                 <ant antfile="${project.pizzaservice-mailer-lib}/build.xml" inheritall="false" target="jar">
815                         <property name="deploy.on.save" value="false"/>
816                 </ant>
817                 <ant antfile="${project.juser-core}/build.xml" inheritall="false" target="jar">
818                         <property name="deploy.on.save" value="false"/>
819                 </ant>
820         </target>
821         <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
822         <target depends="init,deps-jar" name="-pre-pre-compile">
823                 <mkdir dir="${build.classes.dir}"/>
824                 <mkdir dir="${build.ear.classes.dir}"/>
825         </target>
826         <target name="-pre-compile">
827                 <!-- Empty placeholder for easier customization. -->
828                 <!-- You can override this target in the ../build.xml file. -->
829         </target>
830         <target depends="compile,-library-inclusion-in-archive-weblogic,-library-inclusion-in-archive-by-user" name="library-inclusion-in-archive"/>
831         <target if="is.jars.in.ejbjar" name="-library-inclusion-in-archive-by-user">
832                 <copyfiles files="${file.reference.jcoreee.jar}" todir="${build.classes.dir}"/>
833                 <copyfiles files="${file.reference.jcore-logger-lib.jar}" todir="${build.classes.dir}"/>
834                 <copyfiles files="${file.reference.jcontacts-core.jar}" todir="${build.classes.dir}"/>
835                 <copyfiles files="${file.reference.jcontacts-lib.jar}" todir="${build.classes.dir}"/>
836                 <copyfiles files="${file.reference.jcontacts-business-core.jar}" todir="${build.classes.dir}"/>
837                 <copyfiles files="${file.reference.jcontacts-business-lib.jar}" todir="${build.classes.dir}"/>
838                 <copyfiles files="${file.reference.jcountry-core.jar}" todir="${build.classes.dir}"/>
839                 <copyfiles files="${file.reference.jcountry-lib.jar}" todir="${build.classes.dir}"/>
840                 <copyfiles files="${file.reference.jphone-core.jar}" todir="${build.classes.dir}"/>
841                 <copyfiles files="${file.reference.jphone-lib.jar}" todir="${build.classes.dir}"/>
842                 <copyfiles files="${file.reference.juser-core.jar}" todir="${build.classes.dir}"/>
843                 <copyfiles files="${file.reference.juser-lib.jar}" todir="${build.classes.dir}"/>
844                 <copyfiles files="${file.reference.juser-login-core.jar}" todir="${build.classes.dir}"/>
845                 <copyfiles files="${file.reference.juser-login-lib.jar}" todir="${build.classes.dir}"/>
846                 <copyfiles files="${file.reference.juser-activity-core.jar}" todir="${build.classes.dir}"/>
847                 <copyfiles files="${file.reference.juser-activity-lib.jar}" todir="${build.classes.dir}"/>
848                 <copyfiles files="${file.reference.jmailer-ee.jar}" todir="${build.classes.dir}"/>
849                 <copyfiles files="${reference.pizzaservice-core.jar}" todir="${build.classes.dir}"/>
850                 <copyfiles files="${reference.pizzaservice-lib.jar}" todir="${build.classes.dir}"/>
851                 <copyfiles files="${reference.pizzaservice-mailer-lib.jar}" todir="${build.classes.dir}"/>
852                 <copyfiles files="${file.reference.cdi-api.jar}" todir="${build.classes.dir}"/>
853         </target>
854         <target if="is.server.weblogic" name="-library-inclusion-in-archive-weblogic">
855                 <basename file="${file.reference.jcoreee.jar}" property="manifest.file.reference.jcoreee.jar"/>
856                 <basename file="${file.reference.jcore-logger-lib.jar}" property="manifest.file.reference.jcore-logger-lib.jar"/>
857                 <basename file="${file.reference.jcontacts-core.jar}" property="manifest.file.reference.jcontacts-core.jar"/>
858                 <basename file="${file.reference.jcontacts-lib.jar}" property="manifest.file.reference.jcontacts-lib.jar"/>
859                 <basename file="${file.reference.jcontacts-business-core.jar}" property="manifest.file.reference.jcontacts-business-core.jar"/>
860                 <basename file="${file.reference.jcontacts-business-lib.jar}" property="manifest.file.reference.jcontacts-business-lib.jar"/>
861                 <basename file="${file.reference.jcountry-core.jar}" property="manifest.file.reference.jcountry-core.jar"/>
862                 <basename file="${file.reference.jcountry-lib.jar}" property="manifest.file.reference.jcountry-lib.jar"/>
863                 <basename file="${file.reference.jphone-core.jar}" property="manifest.file.reference.jphone-core.jar"/>
864                 <basename file="${file.reference.jphone-lib.jar}" property="manifest.file.reference.jphone-lib.jar"/>
865                 <basename file="${file.reference.juser-core.jar}" property="manifest.file.reference.juser-core.jar"/>
866                 <basename file="${file.reference.juser-lib.jar}" property="manifest.file.reference.juser-lib.jar"/>
867                 <basename file="${file.reference.juser-login-core.jar}" property="manifest.file.reference.juser-login-core.jar"/>
868                 <basename file="${file.reference.juser-login-lib.jar}" property="manifest.file.reference.juser-login-lib.jar"/>
869                 <basename file="${file.reference.juser-activity-core.jar}" property="manifest.file.reference.juser-activity-core.jar"/>
870                 <basename file="${file.reference.juser-activity-lib.jar}" property="manifest.file.reference.juser-activity-lib.jar"/>
871                 <basename file="${file.reference.jmailer-ee.jar}" property="manifest.file.reference.jmailer-ee.jar"/>
872                 <basename file="${reference.pizzaservice-core.jar}" property="manifest.reference.pizzaservice-core.jar"/>
873                 <basename file="${reference.pizzaservice-lib.jar}" property="manifest.reference.pizzaservice-lib.jar"/>
874                 <basename file="${reference.pizzaservice-mailer-lib.jar}" property="manifest.reference.pizzaservice-mailer-lib.jar"/>
875                 <basename file="${file.reference.cdi-api.jar}" property="manifest.file.reference.cdi-api.jar"/>
876                 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
877                         <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 "/>
878                         <attribute name="jar-1-Extension-Name" value="${manifest.file.reference.jcoreee.jar}"/>
879                         <attribute name="jar-2-Extension-Name" value="${manifest.file.reference.jcore-logger-lib.jar}"/>
880                         <attribute name="jar-3-Extension-Name" value="${manifest.file.reference.jcontacts-core.jar}"/>
881                         <attribute name="jar-4-Extension-Name" value="${manifest.file.reference.jcontacts-lib.jar}"/>
882                         <attribute name="jar-5-Extension-Name" value="${manifest.file.reference.jcontacts-business-core.jar}"/>
883                         <attribute name="jar-6-Extension-Name" value="${manifest.file.reference.jcontacts-business-lib.jar}"/>
884                         <attribute name="jar-7-Extension-Name" value="${manifest.file.reference.jcountry-core.jar}"/>
885                         <attribute name="jar-8-Extension-Name" value="${manifest.file.reference.jcountry-lib.jar}"/>
886                         <attribute name="jar-9-Extension-Name" value="${manifest.file.reference.jphone-core.jar}"/>
887                         <attribute name="jar-10-Extension-Name" value="${manifest.file.reference.jphone-lib.jar}"/>
888                         <attribute name="jar-11-Extension-Name" value="${manifest.file.reference.juser-core.jar}"/>
889                         <attribute name="jar-12-Extension-Name" value="${manifest.file.reference.juser-lib.jar}"/>
890                         <attribute name="jar-13-Extension-Name" value="${manifest.file.reference.juser-login-core.jar}"/>
891                         <attribute name="jar-14-Extension-Name" value="${manifest.file.reference.juser-login-lib.jar}"/>
892                         <attribute name="jar-15-Extension-Name" value="${manifest.file.reference.juser-activity-core.jar}"/>
893                         <attribute name="jar-16-Extension-Name" value="${manifest.file.reference.juser-activity-lib.jar}"/>
894                         <attribute name="jar-17-Extension-Name" value="${manifest.file.reference.jmailer-ee.jar}"/>
895                         <attribute name="jar-18-Extension-Name" value="${manifest.reference.pizzaservice-core.jar}"/>
896                         <attribute name="jar-19-Extension-Name" value="${manifest.reference.pizzaservice-lib.jar}"/>
897                         <attribute name="jar-20-Extension-Name" value="${manifest.reference.pizzaservice-mailer-lib.jar}"/>
898                         <attribute name="jar-21-Extension-Name" value="${manifest.file.reference.cdi-api.jar}"/>
899                 </manifest>
900         </target>
901         <target depends="compile" name="library-inclusion-in-manifest">
902                 <copyfiles files="${file.reference.jcoreee.jar}" todir="${dist.ear.dir}/lib"/>
903                 <copyfiles files="${file.reference.jcore-logger-lib.jar}" todir="${dist.ear.dir}/lib"/>
904                 <copyfiles files="${file.reference.jcontacts-core.jar}" todir="${dist.ear.dir}/lib"/>
905                 <copyfiles files="${file.reference.jcontacts-lib.jar}" todir="${dist.ear.dir}/lib"/>
906                 <copyfiles files="${file.reference.jcontacts-business-core.jar}" todir="${dist.ear.dir}/lib"/>
907                 <copyfiles files="${file.reference.jcontacts-business-lib.jar}" todir="${dist.ear.dir}/lib"/>
908                 <copyfiles files="${file.reference.jcountry-core.jar}" todir="${dist.ear.dir}/lib"/>
909                 <copyfiles files="${file.reference.jcountry-lib.jar}" todir="${dist.ear.dir}/lib"/>
910                 <copyfiles files="${file.reference.jphone-core.jar}" todir="${dist.ear.dir}/lib"/>
911                 <copyfiles files="${file.reference.jphone-lib.jar}" todir="${dist.ear.dir}/lib"/>
912                 <copyfiles files="${file.reference.juser-core.jar}" todir="${dist.ear.dir}/lib"/>
913                 <copyfiles files="${file.reference.juser-lib.jar}" todir="${dist.ear.dir}/lib"/>
914                 <copyfiles files="${file.reference.juser-login-core.jar}" todir="${dist.ear.dir}/lib"/>
915                 <copyfiles files="${file.reference.juser-login-lib.jar}" todir="${dist.ear.dir}/lib"/>
916                 <copyfiles files="${file.reference.juser-activity-core.jar}" todir="${dist.ear.dir}/lib"/>
917                 <copyfiles files="${file.reference.juser-activity-lib.jar}" todir="${dist.ear.dir}/lib"/>
918                 <copyfiles files="${file.reference.jmailer-ee.jar}" todir="${dist.ear.dir}/lib"/>
919                 <copyfiles files="${reference.pizzaservice-core.jar}" todir="${dist.ear.dir}/lib"/>
920                 <copyfiles files="${reference.pizzaservice-lib.jar}" todir="${dist.ear.dir}/lib"/>
921                 <copyfiles files="${reference.pizzaservice-mailer-lib.jar}" todir="${dist.ear.dir}/lib"/>
922                 <copyfiles files="${file.reference.cdi-api.jar}" todir="${dist.ear.dir}/lib"/>
923                 <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
924         </target>
925         <target name="-copy-meta-inf">
926                 <copy todir="${classes.dir}">
927                         <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
928                 </copy>
929                 <copy todir="${classes.dir}/META-INF">
930                         <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
931                 </copy>
932         </target>
933         <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
934                 <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
935                 <copy todir="${classes.dir}">
936                         <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
937                 </copy>
938         </target>
939         <target name="-post-compile">
940                 <!-- Empty placeholder for easier customization. -->
941                 <!-- You can override this target in the ../build.xml file. -->
942         </target>
943         <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
944         <target name="-pre-compile-single">
945                 <!-- Empty placeholder for easier customization. -->
946                 <!-- You can override this target in the ../build.xml file. -->
947         </target>
948         <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
949                 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
950                 <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
951         </target>
952         <target name="-post-compile-single">
953                 <!-- Empty placeholder for easier customization. -->
954                 <!-- You can override this target in the ../build.xml file. -->
955         </target>
956         <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
957         <!--
958                 DIST BUILDING SECTION
959         -->
960         <target name="-pre-dist">
961                 <!-- Empty placeholder for easier customization. -->
962                 <!-- You can override this target in the ../build.xml file. -->
963         </target>
964         <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
965                 <dirname file="${dist.jar}" property="dist.jar.dir"/>
966                 <mkdir dir="${dist.jar.dir}"/>
967                 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
968                         <fileset dir="${build.classes.dir}"/>
969                 </jar>
970         </target>
971         <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
972                 <dirname file="${dist.jar}" property="dist.jar.dir"/>
973                 <mkdir dir="${dist.jar.dir}"/>
974                 <jar compress="${jar.compress}" jarfile="${dist.jar}">
975                         <fileset dir="${build.classes.dir}"/>
976                 </jar>
977         </target>
978         <!--
979                 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
980         -->
981         <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">
982                 <dirname file="${dist.jar}" property="dist.jar.dir"/>
983                 <mkdir dir="${dist.jar.dir}"/>
984                 <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
985                         <fileset dir="${build.classes.dir}"/>
986                 </jar>
987         </target>
988         <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">
989                 <dirname file="${dist.jar}" property="dist.jar.dir"/>
990                 <mkdir dir="${dist.jar.dir}"/>
991                 <jar compress="${jar.compress}" jarfile="${dist.jar}">
992                         <fileset dir="${build.classes.dir}"/>
993                 </jar>
994         </target>
995         <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"/>
996         <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"/>
997         <!--
998                 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
999         -->
1000         <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
1001         <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
1002                 <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
1003                 <mkdir dir="${dist.jar.dir}"/>
1004                 <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
1005                         <fileset dir="${build.ear.classes.dir}"/>
1006                 </jar>
1007         </target>
1008         <target name="-post-dist">
1009                 <!-- Empty placeholder for easier customization. -->
1010                 <!-- You can override this target in the ../build.xml file. -->
1011         </target>
1012         <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
1013         <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"/>
1014         <!--
1015                 EXECUTION SECTION
1016         -->
1017         <target depends="run-deploy" description="Deploy to server." name="run"/>
1018         <target name="-init-deploy">
1019                 <property name="include.jar.manifest" value=""/>
1020         </target>
1021         <target name="pre-run-deploy">
1022                 <!-- Empty placeholder for easier customization. -->
1023                 <!-- You can override this target in the ../build.xml file. -->
1024         </target>
1025         <target name="post-run-deploy">
1026                 <!-- Empty placeholder for easier customization. -->
1027                 <!-- You can override this target in the ../build.xml file. -->
1028         </target>
1029         <target name="-pre-nbmodule-run-deploy">
1030                 <!-- Empty placeholder for easier customization. -->
1031                 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
1032         </target>
1033         <target name="-post-nbmodule-run-deploy">
1034                 <!-- Empty placeholder for easier customization. -->
1035                 <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
1036         </target>
1037         <target name="-run-deploy-am">
1038                 <!-- Task to deploy to the Access Manager runtime. -->
1039         </target>
1040         <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"/>
1041         <target if="netbeans.home" name="-run-deploy-nb">
1042                 <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
1043         </target>
1044         <target name="-init-deploy-ant" unless="netbeans.home">
1045                 <property name="deploy.ant.archive" value="${dist.jar}"/>
1046                 <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
1047                 <property name="deploy.ant.enabled" value="true"/>
1048         </target>
1049         <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
1050         <target if="netbeans.home" name="-run-undeploy-nb">
1051                 <fail message="Undeploy is not supported from within the IDE"/>
1052         </target>
1053         <target depends="dist" name="verify">
1054                 <nbverify file="${dist.jar}"/>
1055         </target>
1056         <target depends="init,compile-single" name="run-main">
1057                 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1058                 <ejbjarproject3:java classname="${run.class}"/>
1059         </target>
1060         <target depends="init" if="netbeans.home" name="-do-update-breakpoints">
1061                 <ejbjarproject1:nbjpdaappreloaded/>
1062         </target>
1063         <!--
1064                 DEBUGGING SECTION
1065         -->
1066         <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
1067                 <nbdeploy debugmode="true"/>
1068                 <antcall target="connect-debugger"/>
1069         </target>
1070         <target name="connect-debugger" unless="is.debugged">
1071                 <condition property="listeningcp" value="sourcepath">
1072                         <istrue value="${j2ee.compile.on.save}"/>
1073                 </condition>
1074                 <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${name}" transport="${jpda.transport}">
1075                         <classpath>
1076                                 <path path="${debug.classpath}"/>
1077                         </classpath>
1078                         <sourcepath>
1079                                 <path path="${web.docbase.dir}"/>
1080                         </sourcepath>
1081                 </nbjpdaconnect>
1082         </target>
1083         <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1084                 <ejbjarproject1:nbjpdastart/>
1085         </target>
1086         <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1087                 <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
1088                 <ejbjarproject1:debug/>
1089         </target>
1090         <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
1091         <target depends="init" name="-pre-debug-fix">
1092                 <fail unless="fix.includes">Must set fix.includes</fail>
1093                 <property name="javac.includes" value="${fix.includes}.java"/>
1094         </target>
1095         <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1096                 <ejbjarproject1:nbjpdareload/>
1097         </target>
1098         <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1099         <!--
1100         =================
1101         PROFILING SECTION
1102         =================
1103         -->
1104         <!--
1105                 pre NB7.2 profiling section; consider it deprecated
1106         -->
1107         <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1108                 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1109                 <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
1110                         <isset property="profiler.info.jvmargs.extra"/>
1111                 </condition>
1112                 <antcall target="${profiler.startserver.target}"/>
1113                 <antcall target="run"/>
1114                 <antcall target="-profile-start-loadgen"/>
1115         </target>
1116         <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1117                 <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1118                 <nbprofiledirect>
1119                         <classpath>
1120                                 <path path="${run.test.classpath}"/>
1121                                 <path path="${j2ee.platform.classpath}"/>
1122                         </classpath>
1123                 </nbprofiledirect>
1124                 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1125                         <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1126                         <jvmarg value="${profiler.info.jvmargs.agent}"/>
1127                         <jvmarg line="${profiler.info.jvmargs}"/>
1128                         <test name="${profile.class}"/>
1129                         <classpath>
1130                                 <path path="${run.test.classpath}"/>
1131                                 <path path="${j2ee.platform.classpath}"/>
1132                         </classpath>
1133                         <syspropertyset>
1134                                 <propertyref prefix="test-sys-prop."/>
1135                                 <mapper from="test-sys-prop.*" to="*" type="glob"/>
1136                         </syspropertyset>
1137                         <formatter type="brief" usefile="false"/>
1138                         <formatter type="xml"/>
1139                 </junit>
1140         </target>
1141         <target name="start-profiled-server">
1142                 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
1143                         <jvmarg value="${profiler.info.jvmargs.agent}"/>
1144                         <jvmarg value="${profiler.j2ee.agentID}"/>
1145                 </nbstartprofiledserver>
1146         </target>
1147         <target name="start-profiled-server-extraargs">
1148                 <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
1149                         <jvmarg value="${profiler.info.jvmargs.extra}"/>
1150                         <jvmarg value="${profiler.info.jvmargs.agent}"/>
1151                         <jvmarg value="${profiler.j2ee.agentID}"/>
1152                 </nbstartprofiledserver>
1153         </target>
1154         <!--
1155                 end of pre NB7.2 profiling section
1156         -->
1157         <target if="netbeans.home" name="-profile-check">
1158                 <condition property="profiler.configured">
1159                         <or>
1160                                 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1161                                 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1162                         </or>
1163                 </condition>
1164         </target>
1165         <target depends="init,compile,dist-directory-deploy" name="-do-profile">
1166                 <startprofiler/>
1167                 <nbstartserver profilemode="true"/>
1168                 <nbdeploy clientUrlPart="$" forceRedeploy="true" profilemode="true"/>
1169                 <antcall target="-profile-start-loadgen"/>
1170         </target>
1171         <target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1172                 <antcall target="-do-profile"/>
1173         </target>
1174         <target depends="-profile-test-single-pre72" name="profile-test-single"/>
1175         <target depends="-profile-check" if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs.agent">
1176                 <startprofiler/>
1177                 <antcall target="test-single"/>
1178         </target>
1179         <target if="profiler.loadgen.path" name="-profile-start-loadgen">
1180                 <loadgenstart path="${profiler.loadgen.path}"/>
1181         </target>
1182         <!--
1183                 JAVADOC SECTION
1184         -->
1185         <target depends="init" if="have.sources" name="javadoc-build">
1186                 <mkdir dir="${dist.javadoc.dir}"/>
1187                 <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}">
1188                         <classpath>
1189                                 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
1190                         </classpath>
1191                         <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1192                                 <filename name="**/*.java"/>
1193                         </fileset>
1194                         <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1195                                 <include name="**/*.java"/>
1196                         </fileset>
1197                 </javadoc>
1198                 <copy todir="${dist.javadoc.dir}">
1199                         <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1200                                 <filename name="**/doc-files/**"/>
1201                         </fileset>
1202                         <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1203                                 <include name="**/doc-files/**"/>
1204                         </fileset>
1205                 </copy>
1206         </target>
1207         <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
1208                 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1209         </target>
1210         <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
1211         <!--
1212                 TEST COMPILATION SECTION
1213         -->
1214         <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1215                 <mkdir dir="${build.test.classes.dir}"/>
1216                 <property name="j2ee.platform.embeddableejb.classpath" value=""/>
1217         </target>
1218         <target name="-pre-compile-test">
1219                 <!-- Empty placeholder for easier customization. -->
1220                 <!-- You can override this target in the ../build.xml file. -->
1221         </target>
1222         <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
1223                 <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1224                 <copy todir="${build.test.classes.dir}">
1225                         <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1226                 </copy>
1227         </target>
1228         <target name="-post-compile-test">
1229                 <!-- Empty placeholder for easier customization. -->
1230                 <!-- You can override this target in the ../build.xml file. -->
1231         </target>
1232         <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1233         <target name="-pre-compile-test-single">
1234                 <!-- Empty placeholder for easier customization. -->
1235                 <!-- You can override this target in the ../build.xml file. -->
1236         </target>
1237         <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1238                 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1239                 <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}"/>
1240         </target>
1241         <target name="-post-compile-test-single">
1242                 <!-- Empty placeholder for easier customization. -->
1243                 <!-- You can override this target in the ../build.xml file. -->
1244         </target>
1245         <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1246         <!--
1247                 TEST EXECUTION SECTION
1248         -->
1249         <target depends="init" if="have.tests" name="-pre-test-run">
1250                 <mkdir dir="${build.test.results.dir}"/>
1251         </target>
1252         <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1253                 <ejbjarproject2:test includes="${includes}" testincludes="**/*Test.java"/>
1254         </target>
1255         <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1256                 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1257         </target>
1258         <target depends="init" if="have.tests" name="test-report"/>
1259         <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1260         <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1261         <target depends="init" if="have.tests" name="-pre-test-run-single">
1262                 <mkdir dir="${build.test.results.dir}"/>
1263         </target>
1264         <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1265                 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1266                 <ejbjarproject2:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1267         </target>
1268         <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1269                 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1270         </target>
1271         <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"/>
1272         <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1273                 <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1274                 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1275                 <ejbjarproject2:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1276         </target>
1277         <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1278                 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1279         </target>
1280         <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"/>
1281         <!--
1282                 TEST DEBUGGING SECTION
1283         -->
1284         <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
1285                 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1286                 <ejbjarproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
1287         </target>
1288         <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
1289                 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1290                 <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1291                 <ejbjarproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
1292         </target>
1293         <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1294                 <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1295         </target>
1296         <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1297         <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1298         <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1299                 <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1300         </target>
1301         <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1302         <!--
1303                 CLEANUP SECTION
1304         -->
1305         <target depends="init" name="deps-clean" unless="no.deps">
1306                 <ant antfile="${project.pizzaservice-core}/build.xml" inheritall="false" target="clean"/>
1307                 <ant antfile="${project.pizzaservice-lib}/build.xml" inheritall="false" target="clean"/>
1308                 <ant antfile="${project.pizzaservice-mailer-lib}/build.xml" inheritall="false" target="clean"/>
1309                 <ant antfile="${project.juser-core}/build.xml" inheritall="false" target="clean"/>
1310         </target>
1311         <target depends="init" name="-do-clean">
1312                 <delete dir="${build.dir}"/>
1313                 <delete dir="${dist.dir}"/>
1314         </target>
1315         <target name="-post-clean">
1316                 <!-- Empty placeholder for easier customization. -->
1317                 <!-- You can override this target in the ../build.xml file. -->
1318         </target>
1319         <target depends="init" if="netbeans.home" name="undeploy-clean">
1320                 <nbundeploy failOnError="false" startServer="false"/>
1321         </target>
1322         <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1323         <target depends="clean" name="clean-ear"/>
1324 </project>