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