]> git.mxchange.org Git - pizzaservice.git/blob - PizzaService-ejb/nbproject/build-impl.xml
Changed jcore-ee-logger to a EJB (not really, but maybe this way it works???)
[pizzaservice.git] / PizzaService-ejb / 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 line="${debug-args-line}"/>
526                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
527                     <customize/>
528                 </junit>
529             </sequential>
530         </macrodef>
531     </target>
532     <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
533         <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
534             <attribute default="${includes}" name="includes"/>
535             <attribute default="${excludes}" name="excludes"/>
536             <attribute default="**" name="testincludes"/>
537             <attribute default="" name="testmethods"/>
538             <element name="customize" optional="true"/>
539             <sequential>
540                 <property name="run.jvmargs.ide" value=""/>
541                 <junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
542                     <batchtest todir="${build.test.results.dir}">
543                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
544                             <filename name="@{testincludes}"/>
545                         </fileset>
546                         <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
547                             <filename name="${test.binarytestincludes}"/>
548                         </fileset>
549                     </batchtest>
550                     <syspropertyset>
551                         <propertyref prefix="test-sys-prop."/>
552                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
553                     </syspropertyset>
554                     <formatter type="brief" usefile="false"/>
555                     <formatter type="xml"/>
556                     <jvmarg value="-ea"/>
557                     <jvmarg line="${run.jvmargs.ide}"/>
558                     <jvmarg line="${debug-args-line}"/>
559                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
560                     <customize/>
561                 </junit>
562             </sequential>
563         </macrodef>
564     </target>
565     <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
566         <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
567             <attribute default="${includes}" name="includes"/>
568             <attribute default="${excludes}" name="excludes"/>
569             <attribute default="**" name="testincludes"/>
570             <attribute default="" name="testmethods"/>
571             <element implicit="true" name="customize" optional="true"/>
572             <sequential>
573                 <ejbjarproject2:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
574                     <customize/>
575                 </ejbjarproject2:junit-debug>
576             </sequential>
577         </macrodef>
578     </target>
579     <target if="${testng.available}" name="-init-macrodef-testng-debug">
580         <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
581             <attribute default="${main.class}" name="testClass"/>
582             <attribute default="" name="testMethod"/>
583             <element name="customize2" optional="true"/>
584             <sequential>
585                 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
586                     <isset property="test.method"/>
587                 </condition>
588                 <condition else="-suitename PizzaService-ejb -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
589                     <matches pattern=".*\.xml" string="@{testClass}"/>
590                 </condition>
591                 <delete dir="${build.test.results.dir}" quiet="true"/>
592                 <mkdir dir="${build.test.results.dir}"/>
593                 <ejbjarproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG" classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
594                     <customize>
595                         <customize2/>
596                         <jvmarg value="-ea"/>
597                         <arg line="${testng.debug.mode}"/>
598                         <arg line="-d ${build.test.results.dir}"/>
599                         <arg line="-listener org.testng.reporters.VerboseReporter"/>
600                     </customize>
601                 </ejbjarproject1:debug>
602             </sequential>
603         </macrodef>
604     </target>
605     <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
606         <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
607             <attribute default="${main.class}" name="testClass"/>
608             <attribute default="" name="testMethod"/>
609             <element implicit="true" name="customize2" optional="true"/>
610             <sequential>
611                 <ejbjarproject2:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
612                     <customize2/>
613                 </ejbjarproject2:testng-debug>
614             </sequential>
615         </macrodef>
616     </target>
617     <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
618         <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
619             <attribute default="${includes}" name="includes"/>
620             <attribute default="${excludes}" name="excludes"/>
621             <attribute default="**" name="testincludes"/>
622             <attribute default="" name="testmethods"/>
623             <attribute default="${main.class}" name="testClass"/>
624             <attribute default="" name="testMethod"/>
625             <sequential>
626                 <ejbjarproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
627                     <customize>
628                         <classpath>
629                             <path path="${run.test.classpath}"/>
630                             <path path="${j2ee.platform.classpath}"/>
631                             <path path="${j2ee.platform.embeddableejb.classpath}"/>
632                         </classpath>
633                         <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
634                         <jvmarg line="${runmain.jvmargs}"/>
635                     </customize>
636                 </ejbjarproject2:test-debug-impl>
637             </sequential>
638         </macrodef>
639     </target>
640     <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
641         <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/2">
642             <attribute default="${includes}" name="includes"/>
643             <attribute default="${excludes}" name="excludes"/>
644             <attribute default="**" name="testincludes"/>
645             <attribute default="" name="testmethods"/>
646             <attribute default="${main.class}" name="testClass"/>
647             <attribute default="" name="testMethod"/>
648             <sequential>
649                 <ejbjarproject2:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
650                     <customize2>
651                         <syspropertyset>
652                             <propertyref prefix="test-sys-prop."/>
653                             <mapper from="test-sys-prop.*" to="*" type="glob"/>
654                         </syspropertyset>
655                     </customize2>
656                 </ejbjarproject2:testng-debug-impl>
657             </sequential>
658         </macrodef>
659     </target>
660     <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
661     <target name="-init-macrodef-java">
662         <macrodef name="java" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/3">
663             <attribute default="${main.class}" name="classname"/>
664             <element name="customize" optional="true"/>
665             <sequential>
666                 <java classname="@{classname}" fork="true">
667                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
668                     <jvmarg line="${runmain.jvmargs}"/>
669                     <classpath>
670                         <path path="${build.classes.dir}:${javac.classpath}:${j2ee.platform.classpath}"/>
671                     </classpath>
672                     <syspropertyset>
673                         <propertyref prefix="run-sys-prop."/>
674                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
675                     </syspropertyset>
676                     <customize/>
677                 </java>
678             </sequential>
679         </macrodef>
680     </target>
681     <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
682         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
683             <attribute default="${main.class}" name="name"/>
684             <attribute default="${debug.classpath}" name="classpath"/>
685             <sequential>
686                 <nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
687                     <classpath>
688                         <path path="@{classpath}"/>
689                     </classpath>
690                 </nbjpdastart>
691             </sequential>
692         </macrodef>
693         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
694             <attribute default="${build.classes.dir}" name="dir"/>
695             <sequential>
696                 <nbjpdareload>
697                     <fileset dir="@{dir}" includes="${fix.classes}">
698                         <include name="${fix.includes}*.class"/>
699                     </fileset>
700                 </nbjpdareload>
701             </sequential>
702         </macrodef>
703         <macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
704             <sequential>
705                 <nbjpdaappreloaded/>
706             </sequential>
707         </macrodef>
708     </target>
709     <target name="-init-debug-args">
710         <property name="version-output" value="java version &quot;${ant.java.version}"/>
711         <condition property="have-jdk-older-than-1.4">
712             <or>
713                 <contains string="${version-output}" substring="java version &quot;1.0"/>
714                 <contains string="${version-output}" substring="java version &quot;1.1"/>
715                 <contains string="${version-output}" substring="java version &quot;1.2"/>
716                 <contains string="${version-output}" substring="java version &quot;1.3"/>
717             </or>
718         </condition>
719         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
720             <istrue value="${have-jdk-older-than-1.4}"/>
721         </condition>
722         <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
723             <os family="windows"/>
724         </condition>
725         <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
726             <isset property="debug.transport"/>
727         </condition>
728     </target>
729     <target depends="-init-debug-args" name="-init-macrodef-debug">
730         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
731             <attribute default="${main.class}" name="classname"/>
732             <attribute default="${debug.classpath}" name="classpath"/>
733             <attribute default="${application.args}" name="args"/>
734             <element name="customize" optional="true"/>
735             <sequential>
736                 <java classname="@{classname}" fork="true">
737                     <jvmarg line="${debug-args-line}"/>
738                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
739                     <jvmarg line="${runmain.jvmargs}"/>
740                     <classpath>
741                         <path path="@{classpath}"/>
742                     </classpath>
743                     <arg line="@{args}"/>
744                     <customize/>
745                 </java>
746             </sequential>
747         </macrodef>
748     </target>
749     <target name="-init-taskdefs">
750         <fail unless="libs.CopyLibs.classpath">
751 The libs.CopyLibs.classpath property is not set up.
752 This property must point to 
753 org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
754 of NetBeans IDE installation and is usually located at 
755 &lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
756 Either open the project in the IDE and make sure CopyLibs library
757 exists or setup the property manually. For example like this:
758  ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
759                 </fail>
760         <taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
761     </target>
762     <target name="-init-ap-cmdline-properties">
763         <property name="annotation.processing.enabled" value="true"/>
764         <property name="annotation.processing.processors.list" value=""/>
765         <property name="annotation.processing.run.all.processors" value="true"/>
766         <property name="javac.processorpath" value="${javac.classpath}"/>
767         <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
768         <condition property="ap.supported.internal" value="true">
769             <not>
770                 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
771             </not>
772         </condition>
773     </target>
774     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
775         <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
776             <isfalse value="${annotation.processing.run.all.processors}"/>
777         </condition>
778         <condition else="" property="ap.proc.none.internal" value="-proc:none">
779             <isfalse value="${annotation.processing.enabled}"/>
780         </condition>
781     </target>
782     <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
783         <property name="ap.cmd.line.internal" value=""/>
784     </target>
785     <!--
786                 pre NB7.2 profiling section; consider it deprecated
787             -->
788     <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
789     <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
790         <!-- Empty placeholder for easier customization. -->
791         <!-- You can override this target in the ../build.xml file. -->
792     </target>
793     <target if="profiler.info.jvmargs.agent" name="-profile-post-init">
794         <!-- Empty placeholder for easier customization. -->
795         <!-- You can override this target in the ../build.xml file. -->
796     </target>
797     <target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
798         <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
799         <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
800     </target>
801     <!--
802                 end of pre NB7.2 profiling section
803             -->
804     <target depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
805     <!--
806                 COMPILATION SECTION
807             -->
808     <target depends="init" if="no.dist.ear.dir" name="-deps-module-jar" unless="no.deps">
809         <ant antfile="${project.PizzaService-lib}/build.xml" inheritall="false" target="jar">
810             <property name="deploy.on.save" value="false"/>
811         </ant>
812     </target>
813     <target depends="init" if="dist.ear.dir" name="-deps-ear-jar" unless="no.deps">
814         <ant antfile="${project.PizzaService-lib}/build.xml" inheritall="false" target="jar">
815             <property name="deploy.on.save" value="false"/>
816         </ant>
817     </target>
818     <target depends="init, -deps-module-jar, -deps-ear-jar" name="deps-jar"/>
819     <target depends="init,deps-jar" name="-pre-pre-compile">
820         <mkdir dir="${build.classes.dir}"/>
821         <mkdir dir="${build.ear.classes.dir}"/>
822     </target>
823     <target name="-pre-compile">
824         <!-- Empty placeholder for easier customization. -->
825         <!-- You can override this target in the ../build.xml file. -->
826     </target>
827     <target depends="compile,-library-inclusion-in-archive-weblogic,-library-inclusion-in-archive-by-user" name="library-inclusion-in-archive"/>
828     <target if="is.jars.in.ejbjar" name="-library-inclusion-in-archive-by-user">
829         <copyfiles files="${file.reference.jcoreee.jar}" todir="${build.classes.dir}"/>
830         <copyfiles files="${file.reference.jshop-core.jar}" todir="${build.classes.dir}"/>
831         <copyfiles files="${file.reference.jshop-ee-lib.jar}" todir="${build.classes.dir}"/>
832         <copyfiles files="${reference.PizzaService-lib.jar}" todir="${build.classes.dir}"/>
833         <copyfiles files="${file.reference.cdi-api.jar}" todir="${build.classes.dir}"/>
834     </target>
835     <target if="is.server.weblogic" name="-library-inclusion-in-archive-weblogic">
836         <basename file="${file.reference.jcoreee.jar}" property="manifest.file.reference.jcoreee.jar"/>
837         <basename file="${file.reference.jshop-core.jar}" property="manifest.file.reference.jshop-core.jar"/>
838         <basename file="${file.reference.jshop-ee-lib.jar}" property="manifest.file.reference.jshop-ee-lib.jar"/>
839         <basename file="${reference.PizzaService-lib.jar}" property="manifest.reference.PizzaService-lib.jar"/>
840         <basename file="${file.reference.cdi-api.jar}" property="manifest.file.reference.cdi-api.jar"/>
841         <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update">
842             <attribute name="Extension-List" value="jar-1 jar-2 jar-3 jar-4 jar-5 jar-6 "/>
843             <attribute name="jar-2-Extension-Name" value="${manifest.file.reference.jcoreee.jar}"/>
844             <attribute name="jar-3-Extension-Name" value="${manifest.file.reference.jshop-core.jar}"/>
845             <attribute name="jar-4-Extension-Name" value="${manifest.file.reference.jshop-ee-lib.jar}"/>
846             <attribute name="jar-5-Extension-Name" value="${manifest.reference.PizzaService-lib.jar}"/>
847             <attribute name="jar-6-Extension-Name" value="${manifest.file.reference.cdi-api.jar}"/>
848         </manifest>
849     </target>
850     <target depends="compile" name="library-inclusion-in-manifest">
851         <copyfiles files="${file.reference.jcoreee.jar}" todir="${dist.ear.dir}/lib"/>
852         <copyfiles files="${file.reference.jshop-core.jar}" todir="${dist.ear.dir}/lib"/>
853         <copyfiles files="${file.reference.jshop-ee-lib.jar}" todir="${dist.ear.dir}/lib"/>
854         <copyfiles files="${reference.PizzaService-lib.jar}" todir="${dist.ear.dir}/lib"/>
855         <copyfiles files="${file.reference.cdi-api.jar}" todir="${dist.ear.dir}/lib"/>
856         <manifest file="${build.ear.classes.dir}/META-INF/MANIFEST.MF" mode="update"/>
857     </target>
858     <target name="-copy-meta-inf">
859         <copy todir="${classes.dir}">
860             <fileset dir="${meta.inf}" includes="**/*.dbschema"/>
861         </copy>
862         <copy todir="${classes.dir}/META-INF">
863             <fileset dir="${meta.inf}" excludes="**/*.dbschema **/xml-resources/** ${meta.inf.excludes}"/>
864         </copy>
865     </target>
866     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-copy-meta-inf" if="have.sources" name="-do-compile">
867         <ejbjarproject2:javac destdir="${classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
868         <copy todir="${classes.dir}">
869             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
870         </copy>
871     </target>
872     <target name="-post-compile">
873         <!-- Empty placeholder for easier customization. -->
874         <!-- You can override this target in the ../build.xml file. -->
875     </target>
876     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
877     <target name="-pre-compile-single">
878         <!-- Empty placeholder for easier customization. -->
879         <!-- You can override this target in the ../build.xml file. -->
880     </target>
881     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
882         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
883         <ejbjarproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
884     </target>
885     <target name="-post-compile-single">
886         <!-- Empty placeholder for easier customization. -->
887         <!-- You can override this target in the ../build.xml file. -->
888     </target>
889     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
890     <!--
891                 DIST BUILDING SECTION
892             -->
893     <target name="-pre-dist">
894         <!-- Empty placeholder for easier customization. -->
895         <!-- You can override this target in the ../build.xml file. -->
896     </target>
897     <target depends="init,compile,-pre-dist,library-inclusion-in-archive" if="has.custom.manifest" name="-do-dist-with-manifest">
898         <dirname file="${dist.jar}" property="dist.jar.dir"/>
899         <mkdir dir="${dist.jar.dir}"/>
900         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
901             <fileset dir="${build.classes.dir}"/>
902         </jar>
903     </target>
904     <target depends="init,compile,-pre-dist,library-inclusion-in-archive" name="-do-dist-without-manifest" unless="has.custom.manifest">
905         <dirname file="${dist.jar}" property="dist.jar.dir"/>
906         <mkdir dir="${dist.jar.dir}"/>
907         <jar compress="${jar.compress}" jarfile="${dist.jar}">
908             <fileset dir="${build.classes.dir}"/>
909         </jar>
910     </target>
911     <!--
912                 TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
913             -->
914     <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">
915         <dirname file="${dist.jar}" property="dist.jar.dir"/>
916         <mkdir dir="${dist.jar.dir}"/>
917         <jar compress="${jar.compress}" jarfile="${dist.jar}" manifest="${build.classes.dir}/META-INF/MANIFEST.MF">
918             <fileset dir="${build.classes.dir}"/>
919         </jar>
920     </target>
921     <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">
922         <dirname file="${dist.jar}" property="dist.jar.dir"/>
923         <mkdir dir="${dist.jar.dir}"/>
924         <jar compress="${jar.compress}" jarfile="${dist.jar}">
925             <fileset dir="${build.classes.dir}"/>
926         </jar>
927     </target>
928     <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"/>
929     <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"/>
930     <!--
931                 END TARGETS NEEDED TO SUPPORT DIRECTORY DEPLOYMENT
932             -->
933     <target depends="init,compile,-pre-dist,library-inclusion-in-archive, -do-dist-without-manifest, -do-dist-with-manifest" name="-do-dist"/>
934     <target depends="init,compile,-pre-dist,library-inclusion-in-manifest" name="-do-ear-dist">
935         <dirname file="${dist.ear.jar}" property="dist.jar.dir"/>
936         <mkdir dir="${dist.jar.dir}"/>
937         <jar compress="${jar.compress}" jarfile="${dist.ear.jar}" manifest="${build.ear.classes.dir}/META-INF/MANIFEST.MF">
938             <fileset dir="${build.ear.classes.dir}"/>
939         </jar>
940     </target>
941     <target name="-post-dist">
942         <!-- Empty placeholder for easier customization. -->
943         <!-- You can override this target in the ../build.xml file. -->
944     </target>
945     <target depends="init,compile,-pre-dist,-do-dist,-post-dist" description="Build distribution (JAR)." name="dist"/>
946     <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"/>
947     <!--
948                 EXECUTION SECTION
949             -->
950     <target depends="run-deploy" description="Deploy to server." name="run"/>
951     <target name="-init-deploy">
952         <property name="include.jar.manifest" value=""/>
953     </target>
954     <target name="pre-run-deploy">
955         <!-- Empty placeholder for easier customization. -->
956         <!-- You can override this target in the ../build.xml file. -->
957     </target>
958     <target name="post-run-deploy">
959         <!-- Empty placeholder for easier customization. -->
960         <!-- You can override this target in the ../build.xml file. -->
961     </target>
962     <target name="-pre-nbmodule-run-deploy">
963         <!-- Empty placeholder for easier customization. -->
964         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
965     </target>
966     <target name="-post-nbmodule-run-deploy">
967         <!-- Empty placeholder for easier customization. -->
968         <!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
969     </target>
970     <target name="-run-deploy-am">
971         <!-- Task to deploy to the Access Manager runtime. -->
972     </target>
973     <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"/>
974     <target if="netbeans.home" name="-run-deploy-nb">
975         <nbdeploy debugmode="false" forceRedeploy="${forceRedeploy}"/>
976     </target>
977     <target name="-init-deploy-ant" unless="netbeans.home">
978         <property name="deploy.ant.archive" value="${dist.jar}"/>
979         <property name="deploy.ant.resource.dir" value="${resource.dir}"/>
980         <property name="deploy.ant.enabled" value="true"/>
981     </target>
982     <target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
983     <target if="netbeans.home" name="-run-undeploy-nb">
984         <fail message="Undeploy is not supported from within the IDE"/>
985     </target>
986     <target depends="dist" name="verify">
987         <nbverify file="${dist.jar}"/>
988     </target>
989     <target depends="init,compile-single" name="run-main">
990         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
991         <ejbjarproject3:java classname="${run.class}"/>
992     </target>
993     <target depends="init" if="netbeans.home" name="-do-update-breakpoints">
994         <ejbjarproject1:nbjpdaappreloaded/>
995     </target>
996     <!--
997                 DEBUGGING SECTION
998             -->
999     <target depends="init,compile,dist-directory-deploy" description="Debug project in IDE." if="netbeans.home" name="debug">
1000         <nbdeploy debugmode="true"/>
1001         <antcall target="connect-debugger"/>
1002     </target>
1003     <target name="connect-debugger" unless="is.debugged">
1004         <condition property="listeningcp" value="sourcepath">
1005             <istrue value="${j2ee.compile.on.save}"/>
1006         </condition>
1007         <nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${name}" transport="${jpda.transport}">
1008             <classpath>
1009                 <path path="${debug.classpath}"/>
1010             </classpath>
1011             <sourcepath>
1012                 <path path="${web.docbase.dir}"/>
1013             </sourcepath>
1014         </nbjpdaconnect>
1015     </target>
1016     <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1017         <ejbjarproject1:nbjpdastart/>
1018     </target>
1019     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1020         <fail unless="main.class">Must select one file in the IDE or set main.class</fail>
1021         <ejbjarproject1:debug/>
1022     </target>
1023     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
1024     <target depends="init" name="-pre-debug-fix">
1025         <fail unless="fix.includes">Must set fix.includes</fail>
1026         <property name="javac.includes" value="${fix.includes}.java"/>
1027     </target>
1028     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1029         <ejbjarproject1:nbjpdareload/>
1030     </target>
1031     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1032     <!--
1033             =================
1034             PROFILING SECTION
1035             =================
1036             -->
1037     <!--
1038                 pre NB7.2 profiling section; consider it deprecated
1039             -->
1040     <target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
1041         <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1042         <condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
1043             <isset property="profiler.info.jvmargs.extra"/>
1044         </condition>
1045         <antcall target="${profiler.startserver.target}"/>
1046         <antcall target="run"/>
1047         <antcall target="-profile-start-loadgen"/>
1048     </target>
1049     <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
1050         <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
1051         <nbprofiledirect>
1052             <classpath>
1053                 <path path="${run.test.classpath}"/>
1054                 <path path="${j2ee.platform.classpath}"/>
1055             </classpath>
1056         </nbprofiledirect>
1057         <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
1058             <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
1059             <jvmarg value="${profiler.info.jvmargs.agent}"/>
1060             <jvmarg line="${profiler.info.jvmargs}"/>
1061             <test name="${profile.class}"/>
1062             <classpath>
1063                 <path path="${run.test.classpath}"/>
1064                 <path path="${j2ee.platform.classpath}"/>
1065             </classpath>
1066             <syspropertyset>
1067                 <propertyref prefix="test-sys-prop."/>
1068                 <mapper from="test-sys-prop.*" to="*" type="glob"/>
1069             </syspropertyset>
1070             <formatter type="brief" usefile="false"/>
1071             <formatter type="xml"/>
1072         </junit>
1073     </target>
1074     <target name="start-profiled-server">
1075         <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
1076             <jvmarg value="${profiler.info.jvmargs.agent}"/>
1077             <jvmarg value="${profiler.j2ee.agentID}"/>
1078         </nbstartprofiledserver>
1079     </target>
1080     <target name="start-profiled-server-extraargs">
1081         <nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
1082             <jvmarg value="${profiler.info.jvmargs.extra}"/>
1083             <jvmarg value="${profiler.info.jvmargs.agent}"/>
1084             <jvmarg value="${profiler.j2ee.agentID}"/>
1085         </nbstartprofiledserver>
1086     </target>
1087     <!--
1088                 end of pre NB7.2 profiling section
1089             -->
1090     <target if="netbeans.home" name="-profile-check">
1091         <condition property="profiler.configured">
1092             <or>
1093                 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
1094                 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
1095             </or>
1096         </condition>
1097     </target>
1098     <target depends="init,compile,dist-directory-deploy" name="-do-profile">
1099         <startprofiler/>
1100         <nbstartserver profilemode="true"/>
1101         <nbdeploy clientUrlPart="$" forceRedeploy="true" profilemode="true"/>
1102         <antcall target="-profile-start-loadgen"/>
1103     </target>
1104     <target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
1105         <antcall target="-do-profile"/>
1106     </target>
1107     <target depends="-profile-test-single-pre72" name="profile-test-single"/>
1108     <target depends="-profile-check" if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs.agent">
1109         <startprofiler/>
1110         <antcall target="test-single"/>
1111     </target>
1112     <target if="profiler.loadgen.path" name="-profile-start-loadgen">
1113         <loadgenstart path="${profiler.loadgen.path}"/>
1114     </target>
1115     <!--
1116                 JAVADOC SECTION
1117             -->
1118     <target depends="init" if="have.sources" name="javadoc-build">
1119         <mkdir dir="${dist.javadoc.dir}"/>
1120         <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}">
1121             <classpath>
1122                 <path path="${javac.classpath}:${j2ee.platform.classpath}"/>
1123             </classpath>
1124             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1125                 <filename name="**/*.java"/>
1126             </fileset>
1127             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1128                 <include name="**/*.java"/>
1129             </fileset>
1130         </javadoc>
1131         <copy todir="${dist.javadoc.dir}">
1132             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
1133                 <filename name="**/doc-files/**"/>
1134             </fileset>
1135             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
1136                 <include name="**/doc-files/**"/>
1137             </fileset>
1138         </copy>
1139     </target>
1140     <target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
1141         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1142     </target>
1143     <target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
1144     <!--
1145                 TEST COMPILATION SECTION
1146             -->
1147     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1148         <mkdir dir="${build.test.classes.dir}"/>
1149         <property name="j2ee.platform.embeddableejb.classpath" value=""/>
1150     </target>
1151     <target name="-pre-compile-test">
1152         <!-- Empty placeholder for easier customization. -->
1153         <!-- You can override this target in the ../build.xml file. -->
1154     </target>
1155     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
1156         <ejbjarproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1157         <copy todir="${build.test.classes.dir}">
1158             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
1159         </copy>
1160     </target>
1161     <target name="-post-compile-test">
1162         <!-- Empty placeholder for easier customization. -->
1163         <!-- You can override this target in the ../build.xml file. -->
1164     </target>
1165     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1166     <target name="-pre-compile-test-single">
1167         <!-- Empty placeholder for easier customization. -->
1168         <!-- You can override this target in the ../build.xml file. -->
1169     </target>
1170     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1171         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1172         <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}"/>
1173     </target>
1174     <target name="-post-compile-test-single">
1175         <!-- Empty placeholder for easier customization. -->
1176         <!-- You can override this target in the ../build.xml file. -->
1177     </target>
1178     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1179     <!--
1180                 TEST EXECUTION SECTION
1181             -->
1182     <target depends="init" if="have.tests" name="-pre-test-run">
1183         <mkdir dir="${build.test.results.dir}"/>
1184     </target>
1185     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1186         <ejbjarproject2:test includes="${includes}" testincludes="**/*Test.java"/>
1187     </target>
1188     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1189         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1190     </target>
1191     <target depends="init" if="have.tests" name="test-report"/>
1192     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1193     <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1194     <target depends="init" if="have.tests" name="-pre-test-run-single">
1195         <mkdir dir="${build.test.results.dir}"/>
1196     </target>
1197     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1198         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1199         <ejbjarproject2:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
1200     </target>
1201     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1202         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1203     </target>
1204     <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"/>
1205     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
1206         <fail unless="test.class">Must select some files in the IDE or set test.class</fail>
1207         <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1208         <ejbjarproject2:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
1209     </target>
1210     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
1211         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
1212     </target>
1213     <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"/>
1214     <!--
1215                 TEST DEBUGGING SECTION
1216             -->
1217     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
1218         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1219         <ejbjarproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
1220     </target>
1221     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
1222         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1223         <fail unless="test.method">Must select some method in the IDE or set test.method</fail>
1224         <ejbjarproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
1225     </target>
1226     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1227         <ejbjarproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1228     </target>
1229     <target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1230     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
1231     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1232         <ejbjarproject1:nbjpdareload dir="${build.test.classes.dir}"/>
1233     </target>
1234     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1235     <!--
1236                 CLEANUP SECTION
1237             -->
1238     <target depends="init" name="deps-clean" unless="no.deps">
1239         <ant antfile="${project.PizzaService-lib}/build.xml" inheritall="false" target="clean"/>
1240     </target>
1241     <target depends="init" name="-do-clean">
1242         <delete dir="${build.dir}"/>
1243         <delete dir="${dist.dir}"/>
1244     </target>
1245     <target name="-post-clean">
1246         <!-- Empty placeholder for easier customization. -->
1247         <!-- You can override this target in the ../build.xml file. -->
1248     </target>
1249     <target depends="init" if="netbeans.home" name="undeploy-clean">
1250         <nbundeploy failOnError="false" startServer="false"/>
1251     </target>
1252     <target depends="init,undeploy-clean,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1253     <target depends="clean" name="clean-ear"/>
1254 </project>