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