]> git.mxchange.org Git - jfinancials-lib.git/blob - Addressbook/nbproject/build-impl.xml
Added NetBeans files + ignored only 'private'.
[jfinancials-lib.git] / Addressbook / 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   - jar\r
12   - execution\r
13   - debugging\r
14   - javadoc\r
15   - test compilation\r
16   - test execution\r
17   - test debugging\r
18   - applet\r
19   - cleanup\r
20 \r
21         -->\r
22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="Addressbook-impl">\r
23     <fail message="Please build using Ant 1.8.0 or higher.">\r
24         <condition>\r
25             <not>\r
26                 <antversion atleast="1.8.0"/>\r
27             </not>\r
28         </condition>\r
29     </fail>\r
30     <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>\r
31     <!-- \r
32                 ======================\r
33                 INITIALIZATION SECTION \r
34                 ======================\r
35             -->\r
36     <target name="-pre-init">\r
37         <!-- Empty placeholder for easier customization. -->\r
38         <!-- You can override this target in the ../build.xml file. -->\r
39     </target>\r
40     <target depends="-pre-init" name="-init-private">\r
41         <property file="nbproject/private/config.properties"/>\r
42         <property file="nbproject/private/configs/${config}.properties"/>\r
43         <property file="nbproject/private/private.properties"/>\r
44     </target>\r
45     <target depends="-pre-init,-init-private" name="-init-user">\r
46         <property file="${user.properties.file}"/>\r
47         <!-- The two properties below are usually overridden -->\r
48         <!-- by the active platform. Just a fallback. -->\r
49         <property name="default.javac.source" value="1.4"/>\r
50         <property name="default.javac.target" value="1.4"/>\r
51     </target>\r
52     <target depends="-pre-init,-init-private,-init-user" name="-init-project">\r
53         <property file="nbproject/configs/${config}.properties"/>\r
54         <property file="nbproject/project.properties"/>\r
55     </target>\r
56     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">\r
57         <property name="platform.java" value="${java.home}/bin/java"/>\r
58         <available file="${manifest.file}" property="manifest.available"/>\r
59         <condition property="splashscreen.available">\r
60             <and>\r
61                 <not>\r
62                     <equals arg1="${application.splash}" arg2="" trim="true"/>\r
63                 </not>\r
64                 <available file="${application.splash}"/>\r
65             </and>\r
66         </condition>\r
67         <condition property="main.class.available">\r
68             <and>\r
69                 <isset property="main.class"/>\r
70                 <not>\r
71                     <equals arg1="${main.class}" arg2="" trim="true"/>\r
72                 </not>\r
73             </and>\r
74         </condition>\r
75         <condition property="profile.available">\r
76             <and>\r
77                 <isset property="javac.profile"/>\r
78                 <length length="0" string="${javac.profile}" when="greater"/>\r
79                 <matches pattern="1\.[89](\..*)?" string="${javac.source}"/>\r
80             </and>\r
81         </condition>\r
82         <condition property="do.archive">\r
83             <or>\r
84                 <not>\r
85                     <istrue value="${jar.archive.disabled}"/>\r
86                 </not>\r
87                 <istrue value="${not.archive.disabled}"/>\r
88             </or>\r
89         </condition>\r
90         <condition property="do.mkdist">\r
91             <and>\r
92                 <isset property="do.archive"/>\r
93                 <isset property="libs.CopyLibs.classpath"/>\r
94                 <not>\r
95                     <istrue value="${mkdist.disabled}"/>\r
96                 </not>\r
97             </and>\r
98         </condition>\r
99         <condition property="do.archive+manifest.available">\r
100             <and>\r
101                 <isset property="manifest.available"/>\r
102                 <istrue value="${do.archive}"/>\r
103             </and>\r
104         </condition>\r
105         <condition property="do.archive+main.class.available">\r
106             <and>\r
107                 <isset property="main.class.available"/>\r
108                 <istrue value="${do.archive}"/>\r
109             </and>\r
110         </condition>\r
111         <condition property="do.archive+splashscreen.available">\r
112             <and>\r
113                 <isset property="splashscreen.available"/>\r
114                 <istrue value="${do.archive}"/>\r
115             </and>\r
116         </condition>\r
117         <condition property="do.archive+profile.available">\r
118             <and>\r
119                 <isset property="profile.available"/>\r
120                 <istrue value="${do.archive}"/>\r
121             </and>\r
122         </condition>\r
123         <condition property="have.tests">\r
124             <or>\r
125                 <available file="${test.src.dir}"/>\r
126             </or>\r
127         </condition>\r
128         <condition property="have.sources">\r
129             <or>\r
130                 <available file="${src.dir}"/>\r
131             </or>\r
132         </condition>\r
133         <condition property="netbeans.home+have.tests">\r
134             <and>\r
135                 <isset property="netbeans.home"/>\r
136                 <isset property="have.tests"/>\r
137             </and>\r
138         </condition>\r
139         <condition property="no.javadoc.preview">\r
140             <and>\r
141                 <isset property="javadoc.preview"/>\r
142                 <isfalse value="${javadoc.preview}"/>\r
143             </and>\r
144         </condition>\r
145         <property name="run.jvmargs" value=""/>\r
146         <property name="run.jvmargs.ide" value=""/>\r
147         <property name="javac.compilerargs" value=""/>\r
148         <property name="work.dir" value="${basedir}"/>\r
149         <condition property="no.deps">\r
150             <and>\r
151                 <istrue value="${no.dependencies}"/>\r
152             </and>\r
153         </condition>\r
154         <property name="javac.debug" value="true"/>\r
155         <property name="javadoc.preview" value="true"/>\r
156         <property name="application.args" value=""/>\r
157         <property name="source.encoding" value="${file.encoding}"/>\r
158         <property name="runtime.encoding" value="${source.encoding}"/>\r
159         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">\r
160             <and>\r
161                 <isset property="javadoc.encoding"/>\r
162                 <not>\r
163                     <equals arg1="${javadoc.encoding}" arg2=""/>\r
164                 </not>\r
165             </and>\r
166         </condition>\r
167         <property name="javadoc.encoding.used" value="${source.encoding}"/>\r
168         <property name="includes" value="**"/>\r
169         <property name="excludes" value=""/>\r
170         <property name="do.depend" value="false"/>\r
171         <condition property="do.depend.true">\r
172             <istrue value="${do.depend}"/>\r
173         </condition>\r
174         <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>\r
175         <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">\r
176             <and>\r
177                 <isset property="endorsed.classpath"/>\r
178                 <not>\r
179                     <equals arg1="${endorsed.classpath}" arg2="" trim="true"/>\r
180                 </not>\r
181             </and>\r
182         </condition>\r
183         <condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">\r
184             <isset property="profile.available"/>\r
185         </condition>\r
186         <condition else="false" property="jdkBug6558476">\r
187             <and>\r
188                 <matches pattern="1\.[56]" string="${java.specification.version}"/>\r
189                 <not>\r
190                     <os family="unix"/>\r
191                 </not>\r
192             </and>\r
193         </condition>\r
194         <property name="javac.fork" value="${jdkBug6558476}"/>\r
195         <property name="jar.index" value="false"/>\r
196         <property name="jar.index.metainf" value="${jar.index}"/>\r
197         <property name="copylibs.rebase" value="true"/>\r
198         <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>\r
199         <condition property="junit.available">\r
200             <or>\r
201                 <available classname="org.junit.Test" classpath="${run.test.classpath}"/>\r
202                 <available classname="junit.framework.Test" classpath="${run.test.classpath}"/>\r
203             </or>\r
204         </condition>\r
205         <condition property="testng.available">\r
206             <available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>\r
207         </condition>\r
208         <condition property="junit+testng.available">\r
209             <and>\r
210                 <istrue value="${junit.available}"/>\r
211                 <istrue value="${testng.available}"/>\r
212             </and>\r
213         </condition>\r
214         <condition else="testng" property="testng.mode" value="mixed">\r
215             <istrue value="${junit+testng.available}"/>\r
216         </condition>\r
217         <condition else="" property="testng.debug.mode" value="-mixed">\r
218             <istrue value="${junit+testng.available}"/>\r
219         </condition>\r
220     </target>\r
221     <target name="-post-init">\r
222         <!-- Empty placeholder for easier customization. -->\r
223         <!-- You can override this target in the ../build.xml file. -->\r
224     </target>\r
225     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">\r
226         <fail unless="src.dir">Must set src.dir</fail>\r
227         <fail unless="test.src.dir">Must set test.src.dir</fail>\r
228         <fail unless="build.dir">Must set build.dir</fail>\r
229         <fail unless="dist.dir">Must set dist.dir</fail>\r
230         <fail unless="build.classes.dir">Must set build.classes.dir</fail>\r
231         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>\r
232         <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>\r
233         <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>\r
234         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>\r
235         <fail unless="dist.jar">Must set dist.jar</fail>\r
236     </target>\r
237     <target name="-init-macrodef-property">\r
238         <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">\r
239             <attribute name="name"/>\r
240             <attribute name="value"/>\r
241             <sequential>\r
242                 <property name="@{name}" value="${@{value}}"/>\r
243             </sequential>\r
244         </macrodef>\r
245     </target>\r
246     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">\r
247         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">\r
248             <attribute default="${src.dir}" name="srcdir"/>\r
249             <attribute default="${build.classes.dir}" name="destdir"/>\r
250             <attribute default="${javac.classpath}" name="classpath"/>\r
251             <attribute default="${javac.processorpath}" name="processorpath"/>\r
252             <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>\r
253             <attribute default="${includes}" name="includes"/>\r
254             <attribute default="${excludes}" name="excludes"/>\r
255             <attribute default="${javac.debug}" name="debug"/>\r
256             <attribute default="${empty.dir}" name="sourcepath"/>\r
257             <attribute default="${empty.dir}" name="gensrcdir"/>\r
258             <element name="customize" optional="true"/>\r
259             <sequential>\r
260                 <property location="${build.dir}/empty" name="empty.dir"/>\r
261                 <mkdir dir="${empty.dir}"/>\r
262                 <mkdir dir="@{apgeneratedsrcdir}"/>\r
263                 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">\r
264                     <src>\r
265                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">\r
266                             <include name="*"/>\r
267                         </dirset>\r
268                     </src>\r
269                     <classpath>\r
270                         <path path="@{classpath}"/>\r
271                     </classpath>\r
272                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>\r
273                     <compilerarg line="${javac.profile.cmd.line.arg}"/>\r
274                     <compilerarg line="${javac.compilerargs}"/>\r
275                     <compilerarg value="-processorpath"/>\r
276                     <compilerarg path="@{processorpath}:${empty.dir}"/>\r
277                     <compilerarg line="${ap.processors.internal}"/>\r
278                     <compilerarg line="${annotation.processing.processor.options}"/>\r
279                     <compilerarg value="-s"/>\r
280                     <compilerarg path="@{apgeneratedsrcdir}"/>\r
281                     <compilerarg line="${ap.proc.none.internal}"/>\r
282                     <customize/>\r
283                 </javac>\r
284             </sequential>\r
285         </macrodef>\r
286     </target>\r
287     <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">\r
288         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">\r
289             <attribute default="${src.dir}" name="srcdir"/>\r
290             <attribute default="${build.classes.dir}" name="destdir"/>\r
291             <attribute default="${javac.classpath}" name="classpath"/>\r
292             <attribute default="${javac.processorpath}" name="processorpath"/>\r
293             <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>\r
294             <attribute default="${includes}" name="includes"/>\r
295             <attribute default="${excludes}" name="excludes"/>\r
296             <attribute default="${javac.debug}" name="debug"/>\r
297             <attribute default="${empty.dir}" name="sourcepath"/>\r
298             <attribute default="${empty.dir}" name="gensrcdir"/>\r
299             <element name="customize" optional="true"/>\r
300             <sequential>\r
301                 <property location="${build.dir}/empty" name="empty.dir"/>\r
302                 <mkdir dir="${empty.dir}"/>\r
303                 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">\r
304                     <src>\r
305                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">\r
306                             <include name="*"/>\r
307                         </dirset>\r
308                     </src>\r
309                     <classpath>\r
310                         <path path="@{classpath}"/>\r
311                     </classpath>\r
312                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>\r
313                     <compilerarg line="${javac.profile.cmd.line.arg}"/>\r
314                     <compilerarg line="${javac.compilerargs}"/>\r
315                     <customize/>\r
316                 </javac>\r
317             </sequential>\r
318         </macrodef>\r
319     </target>\r
320     <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">\r
321         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">\r
322             <attribute default="${src.dir}" name="srcdir"/>\r
323             <attribute default="${build.classes.dir}" name="destdir"/>\r
324             <attribute default="${javac.classpath}" name="classpath"/>\r
325             <sequential>\r
326                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">\r
327                     <classpath>\r
328                         <path path="@{classpath}"/>\r
329                     </classpath>\r
330                 </depend>\r
331             </sequential>\r
332         </macrodef>\r
333         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">\r
334             <attribute default="${build.classes.dir}" name="destdir"/>\r
335             <sequential>\r
336                 <fail unless="javac.includes">Must set javac.includes</fail>\r
337                 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">\r
338                     <path>\r
339                         <filelist dir="@{destdir}" files="${javac.includes}"/>\r
340                     </path>\r
341                     <globmapper from="*.java" to="*.class"/>\r
342                 </pathconvert>\r
343                 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>\r
344                 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>\r
345                 <delete>\r
346                     <files includesfile="${javac.includesfile.binary}"/>\r
347                 </delete>\r
348                 <delete>\r
349                     <fileset file="${javac.includesfile.binary}"/>\r
350                 </delete>\r
351             </sequential>\r
352         </macrodef>\r
353     </target>\r
354     <target if="${junit.available}" name="-init-macrodef-junit-init">\r
355         <condition else="false" property="nb.junit.batch" value="true">\r
356             <and>\r
357                 <istrue value="${junit.available}"/>\r
358                 <not>\r
359                     <isset property="test.method"/>\r
360                 </not>\r
361             </and>\r
362         </condition>\r
363         <condition else="false" property="nb.junit.single" value="true">\r
364             <and>\r
365                 <istrue value="${junit.available}"/>\r
366                 <isset property="test.method"/>\r
367             </and>\r
368         </condition>\r
369     </target>\r
370     <target name="-init-test-properties">\r
371         <property name="test.binaryincludes" value="&lt;nothing&gt;"/>\r
372         <property name="test.binarytestincludes" value=""/>\r
373         <property name="test.binaryexcludes" value=""/>\r
374     </target>\r
375     <target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">\r
376         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">\r
377             <attribute default="${includes}" name="includes"/>\r
378             <attribute default="${excludes}" name="excludes"/>\r
379             <attribute default="**" name="testincludes"/>\r
380             <attribute default="" name="testmethods"/>\r
381             <element name="customize" optional="true"/>\r
382             <sequential>\r
383                 <property name="junit.forkmode" value="perTest"/>\r
384                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">\r
385                     <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>\r
386                     <syspropertyset>\r
387                         <propertyref prefix="test-sys-prop."/>\r
388                         <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
389                     </syspropertyset>\r
390                     <formatter type="brief" usefile="false"/>\r
391                     <formatter type="xml"/>\r
392                     <jvmarg value="-ea"/>\r
393                     <customize/>\r
394                 </junit>\r
395             </sequential>\r
396         </macrodef>\r
397     </target>\r
398     <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">\r
399         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">\r
400             <attribute default="${includes}" name="includes"/>\r
401             <attribute default="${excludes}" name="excludes"/>\r
402             <attribute default="**" name="testincludes"/>\r
403             <attribute default="" name="testmethods"/>\r
404             <element name="customize" optional="true"/>\r
405             <sequential>\r
406                 <property name="junit.forkmode" value="perTest"/>\r
407                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">\r
408                     <batchtest todir="${build.test.results.dir}">\r
409                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">\r
410                             <filename name="@{testincludes}"/>\r
411                         </fileset>\r
412                         <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">\r
413                             <filename name="${test.binarytestincludes}"/>\r
414                         </fileset>\r
415                     </batchtest>\r
416                     <syspropertyset>\r
417                         <propertyref prefix="test-sys-prop."/>\r
418                         <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
419                     </syspropertyset>\r
420                     <formatter type="brief" usefile="false"/>\r
421                     <formatter type="xml"/>\r
422                     <jvmarg value="-ea"/>\r
423                     <customize/>\r
424                 </junit>\r
425             </sequential>\r
426         </macrodef>\r
427     </target>\r
428     <target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>\r
429     <target if="${testng.available}" name="-init-macrodef-testng">\r
430         <macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">\r
431             <attribute default="${includes}" name="includes"/>\r
432             <attribute default="${excludes}" name="excludes"/>\r
433             <attribute default="**" name="testincludes"/>\r
434             <attribute default="" name="testmethods"/>\r
435             <element name="customize" optional="true"/>\r
436             <sequential>\r
437                 <condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">\r
438                     <isset property="test.method"/>\r
439                 </condition>\r
440                 <union id="test.set">\r
441                     <fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">\r
442                         <filename name="@{testincludes}"/>\r
443                     </fileset>\r
444                 </union>\r
445                 <taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>\r
446                 <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="Addressbook" testname="TestNG tests" workingDir="${work.dir}">\r
447                     <xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>\r
448                     <propertyset>\r
449                         <propertyref prefix="test-sys-prop."/>\r
450                         <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
451                     </propertyset>\r
452                     <customize/>\r
453                 </testng>\r
454             </sequential>\r
455         </macrodef>\r
456     </target>\r
457     <target name="-init-macrodef-test-impl">\r
458         <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">\r
459             <attribute default="${includes}" name="includes"/>\r
460             <attribute default="${excludes}" name="excludes"/>\r
461             <attribute default="**" name="testincludes"/>\r
462             <attribute default="" name="testmethods"/>\r
463             <element implicit="true" name="customize" optional="true"/>\r
464             <sequential>\r
465                 <echo>No tests executed.</echo>\r
466             </sequential>\r
467         </macrodef>\r
468     </target>\r
469     <target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">\r
470         <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">\r
471             <attribute default="${includes}" name="includes"/>\r
472             <attribute default="${excludes}" name="excludes"/>\r
473             <attribute default="**" name="testincludes"/>\r
474             <attribute default="" name="testmethods"/>\r
475             <element implicit="true" name="customize" optional="true"/>\r
476             <sequential>\r
477                 <j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">\r
478                     <customize/>\r
479                 </j2seproject3:junit>\r
480             </sequential>\r
481         </macrodef>\r
482     </target>\r
483     <target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">\r
484         <macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">\r
485             <attribute default="${includes}" name="includes"/>\r
486             <attribute default="${excludes}" name="excludes"/>\r
487             <attribute default="**" name="testincludes"/>\r
488             <attribute default="" name="testmethods"/>\r
489             <element implicit="true" name="customize" optional="true"/>\r
490             <sequential>\r
491                 <j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">\r
492                     <customize/>\r
493                 </j2seproject3:testng>\r
494             </sequential>\r
495         </macrodef>\r
496     </target>\r
497     <target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">\r
498         <macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">\r
499             <attribute default="${includes}" name="includes"/>\r
500             <attribute default="${excludes}" name="excludes"/>\r
501             <attribute default="**" name="testincludes"/>\r
502             <attribute default="" name="testmethods"/>\r
503             <sequential>\r
504                 <j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">\r
505                     <customize>\r
506                         <classpath>\r
507                             <path path="${run.test.classpath}"/>\r
508                         </classpath>\r
509                         <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
510                         <jvmarg line="${run.jvmargs}"/>\r
511                         <jvmarg line="${run.jvmargs.ide}"/>\r
512                     </customize>\r
513                 </j2seproject3:test-impl>\r
514             </sequential>\r
515         </macrodef>\r
516     </target>\r
517     <target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">\r
518         <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">\r
519             <attribute default="${includes}" name="includes"/>\r
520             <attribute default="${excludes}" name="excludes"/>\r
521             <attribute default="**" name="testincludes"/>\r
522             <attribute default="" name="testmethods"/>\r
523             <element name="customize" optional="true"/>\r
524             <sequential>\r
525                 <property name="junit.forkmode" value="perTest"/>\r
526                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">\r
527                     <test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>\r
528                     <syspropertyset>\r
529                         <propertyref prefix="test-sys-prop."/>\r
530                         <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
531                     </syspropertyset>\r
532                     <formatter type="brief" usefile="false"/>\r
533                     <formatter type="xml"/>\r
534                     <jvmarg value="-ea"/>\r
535                     <jvmarg line="${debug-args-line}"/>\r
536                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>\r
537                     <customize/>\r
538                 </junit>\r
539             </sequential>\r
540         </macrodef>\r
541     </target>\r
542     <target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">\r
543         <macrodef name="junit-debug" uri="http://www.netbeans.org/ns/j2se-project/3">\r
544             <attribute default="${includes}" name="includes"/>\r
545             <attribute default="${excludes}" name="excludes"/>\r
546             <attribute default="**" name="testincludes"/>\r
547             <attribute default="" name="testmethods"/>\r
548             <element name="customize" optional="true"/>\r
549             <sequential>\r
550                 <property name="junit.forkmode" value="perTest"/>\r
551                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">\r
552                     <batchtest todir="${build.test.results.dir}">\r
553                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">\r
554                             <filename name="@{testincludes}"/>\r
555                         </fileset>\r
556                         <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">\r
557                             <filename name="${test.binarytestincludes}"/>\r
558                         </fileset>\r
559                     </batchtest>\r
560                     <syspropertyset>\r
561                         <propertyref prefix="test-sys-prop."/>\r
562                         <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
563                     </syspropertyset>\r
564                     <formatter type="brief" usefile="false"/>\r
565                     <formatter type="xml"/>\r
566                     <jvmarg value="-ea"/>\r
567                     <jvmarg line="${debug-args-line}"/>\r
568                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>\r
569                     <customize/>\r
570                 </junit>\r
571             </sequential>\r
572         </macrodef>\r
573     </target>\r
574     <target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">\r
575         <macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">\r
576             <attribute default="${includes}" name="includes"/>\r
577             <attribute default="${excludes}" name="excludes"/>\r
578             <attribute default="**" name="testincludes"/>\r
579             <attribute default="" name="testmethods"/>\r
580             <element implicit="true" name="customize" optional="true"/>\r
581             <sequential>\r
582                 <j2seproject3:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">\r
583                     <customize/>\r
584                 </j2seproject3:junit-debug>\r
585             </sequential>\r
586         </macrodef>\r
587     </target>\r
588     <target if="${testng.available}" name="-init-macrodef-testng-debug">\r
589         <macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">\r
590             <attribute default="${main.class}" name="testClass"/>\r
591             <attribute default="" name="testMethod"/>\r
592             <element name="customize2" optional="true"/>\r
593             <sequential>\r
594                 <condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">\r
595                     <isset property="test.method"/>\r
596                 </condition>\r
597                 <condition else="-suitename Addressbook -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">\r
598                     <matches pattern=".*\.xml" string="@{testClass}"/>\r
599                 </condition>\r
600                 <delete dir="${build.test.results.dir}" quiet="true"/>\r
601                 <mkdir dir="${build.test.results.dir}"/>\r
602                 <j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">\r
603                     <customize>\r
604                         <customize2/>\r
605                         <jvmarg value="-ea"/>\r
606                         <arg line="${testng.debug.mode}"/>\r
607                         <arg line="-d ${build.test.results.dir}"/>\r
608                         <arg line="-listener org.testng.reporters.VerboseReporter"/>\r
609                         <arg line="${testng.cmd.args}"/>\r
610                     </customize>\r
611                 </j2seproject3:debug>\r
612             </sequential>\r
613         </macrodef>\r
614     </target>\r
615     <target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">\r
616         <macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">\r
617             <attribute default="${main.class}" name="testClass"/>\r
618             <attribute default="" name="testMethod"/>\r
619             <element implicit="true" name="customize2" optional="true"/>\r
620             <sequential>\r
621                 <j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">\r
622                     <customize2/>\r
623                 </j2seproject3:testng-debug>\r
624             </sequential>\r
625         </macrodef>\r
626     </target>\r
627     <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">\r
628         <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">\r
629             <attribute default="${includes}" name="includes"/>\r
630             <attribute default="${excludes}" name="excludes"/>\r
631             <attribute default="**" name="testincludes"/>\r
632             <attribute default="" name="testmethods"/>\r
633             <attribute default="${main.class}" name="testClass"/>\r
634             <attribute default="" name="testMethod"/>\r
635             <sequential>\r
636                 <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">\r
637                     <customize>\r
638                         <classpath>\r
639                             <path path="${run.test.classpath}"/>\r
640                         </classpath>\r
641                         <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
642                         <jvmarg line="${run.jvmargs}"/>\r
643                         <jvmarg line="${run.jvmargs.ide}"/>\r
644                     </customize>\r
645                 </j2seproject3:test-debug-impl>\r
646             </sequential>\r
647         </macrodef>\r
648     </target>\r
649     <target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">\r
650         <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">\r
651             <attribute default="${includes}" name="includes"/>\r
652             <attribute default="${excludes}" name="excludes"/>\r
653             <attribute default="**" name="testincludes"/>\r
654             <attribute default="" name="testmethods"/>\r
655             <attribute default="${main.class}" name="testClass"/>\r
656             <attribute default="" name="testMethod"/>\r
657             <sequential>\r
658                 <j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">\r
659                     <customize2>\r
660                         <syspropertyset>\r
661                             <propertyref prefix="test-sys-prop."/>\r
662                             <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
663                         </syspropertyset>\r
664                     </customize2>\r
665                 </j2seproject3:testng-debug-impl>\r
666             </sequential>\r
667         </macrodef>\r
668     </target>\r
669     <target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>\r
670     <!--\r
671                 pre NB7.2 profiling section; consider it deprecated\r
672             -->\r
673     <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>\r
674     <target if="profiler.info.jvmargs.agent" name="-profile-pre-init">\r
675         <!-- Empty placeholder for easier customization. -->\r
676         <!-- You can override this target in the ../build.xml file. -->\r
677     </target>\r
678     <target if="profiler.info.jvmargs.agent" name="-profile-post-init">\r
679         <!-- Empty placeholder for easier customization. -->\r
680         <!-- You can override this target in the ../build.xml file. -->\r
681     </target>\r
682     <target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">\r
683         <macrodef name="resolve">\r
684             <attribute name="name"/>\r
685             <attribute name="value"/>\r
686             <sequential>\r
687                 <property name="@{name}" value="${env.@{value}}"/>\r
688             </sequential>\r
689         </macrodef>\r
690         <macrodef name="profile">\r
691             <attribute default="${main.class}" name="classname"/>\r
692             <element name="customize" optional="true"/>\r
693             <sequential>\r
694                 <property environment="env"/>\r
695                 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>\r
696                 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">\r
697                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
698                     <jvmarg value="${profiler.info.jvmargs.agent}"/>\r
699                     <jvmarg line="${profiler.info.jvmargs}"/>\r
700                     <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>\r
701                     <arg line="${application.args}"/>\r
702                     <classpath>\r
703                         <path path="${run.classpath}"/>\r
704                     </classpath>\r
705                     <syspropertyset>\r
706                         <propertyref prefix="run-sys-prop."/>\r
707                         <mapper from="run-sys-prop.*" to="*" type="glob"/>\r
708                     </syspropertyset>\r
709                     <customize/>\r
710                 </java>\r
711             </sequential>\r
712         </macrodef>\r
713     </target>\r
714     <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">\r
715         <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>\r
716         <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>\r
717     </target>\r
718     <!--\r
719                 end of pre NB7.2 profiling section\r
720             -->\r
721     <target depends="-init-debug-args" name="-init-macrodef-nbjpda">\r
722         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">\r
723             <attribute default="${main.class}" name="name"/>\r
724             <attribute default="${debug.classpath}" name="classpath"/>\r
725             <attribute default="" name="stopclassname"/>\r
726             <sequential>\r
727                 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">\r
728                     <classpath>\r
729                         <path path="@{classpath}"/>\r
730                     </classpath>\r
731                 </nbjpdastart>\r
732             </sequential>\r
733         </macrodef>\r
734         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">\r
735             <attribute default="${build.classes.dir}" name="dir"/>\r
736             <sequential>\r
737                 <nbjpdareload>\r
738                     <fileset dir="@{dir}" includes="${fix.classes}">\r
739                         <include name="${fix.includes}*.class"/>\r
740                     </fileset>\r
741                 </nbjpdareload>\r
742             </sequential>\r
743         </macrodef>\r
744     </target>\r
745     <target name="-init-debug-args">\r
746         <property name="version-output" value="java version &quot;${ant.java.version}"/>\r
747         <condition property="have-jdk-older-than-1.4">\r
748             <or>\r
749                 <contains string="${version-output}" substring="java version &quot;1.0"/>\r
750                 <contains string="${version-output}" substring="java version &quot;1.1"/>\r
751                 <contains string="${version-output}" substring="java version &quot;1.2"/>\r
752                 <contains string="${version-output}" substring="java version &quot;1.3"/>\r
753             </or>\r
754         </condition>\r
755         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">\r
756             <istrue value="${have-jdk-older-than-1.4}"/>\r
757         </condition>\r
758         <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">\r
759             <os family="windows"/>\r
760         </condition>\r
761         <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">\r
762             <isset property="debug.transport"/>\r
763         </condition>\r
764     </target>\r
765     <target depends="-init-debug-args" name="-init-macrodef-debug">\r
766         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">\r
767             <attribute default="${main.class}" name="classname"/>\r
768             <attribute default="${debug.classpath}" name="classpath"/>\r
769             <element name="customize" optional="true"/>\r
770             <sequential>\r
771                 <java classname="@{classname}" dir="${work.dir}" fork="true">\r
772                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
773                     <jvmarg line="${debug-args-line}"/>\r
774                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>\r
775                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>\r
776                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>\r
777                     <jvmarg line="${run.jvmargs}"/>\r
778                     <jvmarg line="${run.jvmargs.ide}"/>\r
779                     <classpath>\r
780                         <path path="@{classpath}"/>\r
781                     </classpath>\r
782                     <syspropertyset>\r
783                         <propertyref prefix="run-sys-prop."/>\r
784                         <mapper from="run-sys-prop.*" to="*" type="glob"/>\r
785                     </syspropertyset>\r
786                     <customize/>\r
787                 </java>\r
788             </sequential>\r
789         </macrodef>\r
790     </target>\r
791     <target name="-init-macrodef-java">\r
792         <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">\r
793             <attribute default="${main.class}" name="classname"/>\r
794             <attribute default="${run.classpath}" name="classpath"/>\r
795             <attribute default="jvm" name="jvm"/>\r
796             <element name="customize" optional="true"/>\r
797             <sequential>\r
798                 <java classname="@{classname}" dir="${work.dir}" fork="true">\r
799                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
800                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>\r
801                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>\r
802                     <jvmarg line="${run.jvmargs}"/>\r
803                     <jvmarg line="${run.jvmargs.ide}"/>\r
804                     <classpath>\r
805                         <path path="@{classpath}"/>\r
806                     </classpath>\r
807                     <syspropertyset>\r
808                         <propertyref prefix="run-sys-prop."/>\r
809                         <mapper from="run-sys-prop.*" to="*" type="glob"/>\r
810                     </syspropertyset>\r
811                     <customize/>\r
812                 </java>\r
813             </sequential>\r
814         </macrodef>\r
815     </target>\r
816     <target name="-init-macrodef-copylibs">\r
817         <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">\r
818             <attribute default="${manifest.file}" name="manifest"/>\r
819             <element name="customize" optional="true"/>\r
820             <sequential>\r
821                 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
822                 <pathconvert property="run.classpath.without.build.classes.dir">\r
823                     <path path="${run.classpath}"/>\r
824                     <map from="${build.classes.dir.resolved}" to=""/>\r
825                 </pathconvert>\r
826                 <pathconvert pathsep=" " property="jar.classpath">\r
827                     <path path="${run.classpath.without.build.classes.dir}"/>\r
828                     <chainedmapper>\r
829                         <flattenmapper/>\r
830                         <filtermapper>\r
831                             <replacestring from=" " to="%20"/>\r
832                         </filtermapper>\r
833                         <globmapper from="*" to="lib/*"/>\r
834                     </chainedmapper>\r
835                 </pathconvert>\r
836                 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>\r
837                 <copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">\r
838                     <fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>\r
839                     <manifest>\r
840                         <attribute name="Class-Path" value="${jar.classpath}"/>\r
841                         <customize/>\r
842                     </manifest>\r
843                 </copylibs>\r
844             </sequential>\r
845         </macrodef>\r
846     </target>\r
847     <target name="-init-presetdef-jar">\r
848         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">\r
849             <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">\r
850                 <j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>\r
851             </jar>\r
852         </presetdef>\r
853     </target>\r
854     <target name="-init-ap-cmdline-properties">\r
855         <property name="annotation.processing.enabled" value="true"/>\r
856         <property name="annotation.processing.processors.list" value=""/>\r
857         <property name="annotation.processing.processor.options" value=""/>\r
858         <property name="annotation.processing.run.all.processors" value="true"/>\r
859         <property name="javac.processorpath" value="${javac.classpath}"/>\r
860         <property name="javac.test.processorpath" value="${javac.test.classpath}"/>\r
861         <condition property="ap.supported.internal" value="true">\r
862             <not>\r
863                 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>\r
864             </not>\r
865         </condition>\r
866     </target>\r
867     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">\r
868         <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">\r
869             <isfalse value="${annotation.processing.run.all.processors}"/>\r
870         </condition>\r
871         <condition else="" property="ap.proc.none.internal" value="-proc:none">\r
872             <isfalse value="${annotation.processing.enabled}"/>\r
873         </condition>\r
874     </target>\r
875     <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">\r
876         <property name="ap.cmd.line.internal" value=""/>\r
877     </target>\r
878     <target depends="-pre-init,-init-private,-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-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>\r
879     <!--\r
880                 ===================\r
881                 COMPILATION SECTION\r
882                 ===================\r
883             -->\r
884     <target name="-deps-jar-init" unless="built-jar.properties">\r
885         <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>\r
886         <delete file="${built-jar.properties}" quiet="true"/>\r
887     </target>\r
888     <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">\r
889         <echo level="warn" message="Cycle detected: Addressbook was already built"/>\r
890     </target>\r
891     <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">\r
892         <mkdir dir="${build.dir}"/>\r
893         <touch file="${built-jar.properties}" verbose="false"/>\r
894         <property file="${built-jar.properties}" prefix="already.built.jar."/>\r
895         <antcall target="-warn-already-built-jar"/>\r
896         <propertyfile file="${built-jar.properties}">\r
897             <entry key="${basedir}" value=""/>\r
898         </propertyfile>\r
899         <antcall target="-maybe-call-dep">\r
900             <param name="call.built.properties" value="${built-jar.properties}"/>\r
901             <param location="${project.jcore}" name="call.subproject"/>\r
902             <param location="${project.jcore}/build.xml" name="call.script"/>\r
903             <param name="call.target" value="jar"/>\r
904             <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>\r
905             <param name="transfer.not.archive.disabled" value="true"/>\r
906         </antcall>\r
907     </target>\r
908     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>\r
909     <target depends="init" name="-check-automatic-build">\r
910         <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>\r
911     </target>\r
912     <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">\r
913         <antcall target="clean"/>\r
914     </target>\r
915     <target depends="init,deps-jar" name="-pre-pre-compile">\r
916         <mkdir dir="${build.classes.dir}"/>\r
917     </target>\r
918     <target name="-pre-compile">\r
919         <!-- Empty placeholder for easier customization. -->\r
920         <!-- You can override this target in the ../build.xml file. -->\r
921     </target>\r
922     <target if="do.depend.true" name="-compile-depend">\r
923         <pathconvert property="build.generated.subdirs">\r
924             <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
925                 <include name="*"/>\r
926             </dirset>\r
927         </pathconvert>\r
928         <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>\r
929     </target>\r
930     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">\r
931         <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>\r
932         <copy todir="${build.classes.dir}">\r
933             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
934         </copy>\r
935     </target>\r
936     <target if="has.persistence.xml" name="-copy-persistence-xml">\r
937         <mkdir dir="${build.classes.dir}/META-INF"/>\r
938         <copy todir="${build.classes.dir}/META-INF">\r
939             <fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>\r
940         </copy>\r
941     </target>\r
942     <target name="-post-compile">\r
943         <!-- Empty placeholder for easier customization. -->\r
944         <!-- You can override this target in the ../build.xml file. -->\r
945     </target>\r
946     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>\r
947     <target name="-pre-compile-single">\r
948         <!-- Empty placeholder for easier customization. -->\r
949         <!-- You can override this target in the ../build.xml file. -->\r
950     </target>\r
951     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">\r
952         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
953         <j2seproject3:force-recompile/>\r
954         <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>\r
955     </target>\r
956     <target name="-post-compile-single">\r
957         <!-- Empty placeholder for easier customization. -->\r
958         <!-- You can override this target in the ../build.xml file. -->\r
959     </target>\r
960     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>\r
961     <!--\r
962                 ====================\r
963                 JAR BUILDING SECTION\r
964                 ====================\r
965             -->\r
966     <target depends="init" name="-pre-pre-jar">\r
967         <dirname file="${dist.jar}" property="dist.jar.dir"/>\r
968         <mkdir dir="${dist.jar.dir}"/>\r
969     </target>\r
970     <target name="-pre-jar">\r
971         <!-- Empty placeholder for easier customization. -->\r
972         <!-- You can override this target in the ../build.xml file. -->\r
973     </target>\r
974     <target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">\r
975         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>\r
976         <touch file="${tmp.manifest.file}" verbose="false"/>\r
977     </target>\r
978     <target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">\r
979         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>\r
980         <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>\r
981     </target>\r
982     <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">\r
983         <manifest file="${tmp.manifest.file}" mode="update">\r
984             <attribute name="Main-Class" value="${main.class}"/>\r
985         </manifest>\r
986     </target>\r
987     <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">\r
988         <manifest file="${tmp.manifest.file}" mode="update">\r
989             <attribute name="Profile" value="${javac.profile}"/>\r
990         </manifest>\r
991     </target>\r
992     <target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">\r
993         <basename file="${application.splash}" property="splashscreen.basename"/>\r
994         <mkdir dir="${build.classes.dir}/META-INF"/>\r
995         <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>\r
996         <manifest file="${tmp.manifest.file}" mode="update">\r
997             <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>\r
998         </manifest>\r
999     </target>\r
1000     <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.mkdist" name="-do-jar-copylibs">\r
1001         <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>\r
1002         <echo level="info">To run this application from the command line without Ant, try:</echo>\r
1003         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
1004         <echo level="info">java -jar "${dist.jar.resolved}"</echo>\r
1005     </target>\r
1006     <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen" if="do.archive" name="-do-jar-jar" unless="do.mkdist">\r
1007         <j2seproject1:jar manifest="${tmp.manifest.file}"/>\r
1008         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
1009         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
1010         <pathconvert property="run.classpath.with.dist.jar">\r
1011             <path path="${run.classpath}"/>\r
1012             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>\r
1013         </pathconvert>\r
1014         <condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java} -cp ${run.classpath.with.dist.jar} ${main.class}">\r
1015             <isset property="main.class.available"/>\r
1016         </condition>\r
1017         <condition else="debug" property="jar.usage.level" value="info">\r
1018             <isset property="main.class.available"/>\r
1019         </condition>\r
1020         <echo level="${jar.usage.level}" message="${jar.usage.message}"/>\r
1021     </target>\r
1022     <target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">\r
1023         <delete>\r
1024             <fileset file="${tmp.manifest.file}"/>\r
1025         </delete>\r
1026     </target>\r
1027     <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>\r
1028     <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>\r
1029     <target name="-post-jar">\r
1030         <!-- Empty placeholder for easier customization. -->\r
1031         <!-- You can override this target in the ../build.xml file. -->\r
1032     </target>\r
1033     <target depends="init,compile,-pre-jar,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>\r
1034     <target depends="init,compile,-pre-jar,-do-jar,-post-jar" description="Build JAR." name="jar"/>\r
1035     <!--\r
1036                 =================\r
1037                 EXECUTION SECTION\r
1038                 =================\r
1039             -->\r
1040     <target depends="init,compile" description="Run a main class." name="run">\r
1041         <j2seproject1:java>\r
1042             <customize>\r
1043                 <arg line="${application.args}"/>\r
1044             </customize>\r
1045         </j2seproject1:java>\r
1046     </target>\r
1047     <target name="-do-not-recompile">\r
1048         <property name="javac.includes.binary" value=""/>\r
1049     </target>\r
1050     <target depends="init,compile-single" name="run-single">\r
1051         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
1052         <j2seproject1:java classname="${run.class}"/>\r
1053     </target>\r
1054     <target depends="init,compile-test-single" name="run-test-with-main">\r
1055         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
1056         <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>\r
1057     </target>\r
1058     <!--\r
1059                 =================\r
1060                 DEBUGGING SECTION\r
1061                 =================\r
1062             -->\r
1063     <target depends="init" if="netbeans.home" name="-debug-start-debugger">\r
1064         <j2seproject1:nbjpdastart name="${debug.class}"/>\r
1065     </target>\r
1066     <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">\r
1067         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>\r
1068     </target>\r
1069     <target depends="init,compile" name="-debug-start-debuggee">\r
1070         <j2seproject3:debug>\r
1071             <customize>\r
1072                 <arg line="${application.args}"/>\r
1073             </customize>\r
1074         </j2seproject3:debug>\r
1075     </target>\r
1076     <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>\r
1077     <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">\r
1078         <j2seproject1:nbjpdastart stopclassname="${main.class}"/>\r
1079     </target>\r
1080     <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>\r
1081     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">\r
1082         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
1083         <j2seproject3:debug classname="${debug.class}"/>\r
1084     </target>\r
1085     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>\r
1086     <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">\r
1087         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
1088         <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>\r
1089     </target>\r
1090     <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>\r
1091     <target depends="init" name="-pre-debug-fix">\r
1092         <fail unless="fix.includes">Must set fix.includes</fail>\r
1093         <property name="javac.includes" value="${fix.includes}.java"/>\r
1094     </target>\r
1095     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">\r
1096         <j2seproject1:nbjpdareload/>\r
1097     </target>\r
1098     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>\r
1099     <!--\r
1100                 =================\r
1101                 PROFILING SECTION\r
1102                 =================\r
1103             -->\r
1104     <!--\r
1105                 pre NB7.2 profiler integration\r
1106             -->\r
1107     <target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">\r
1108         <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>\r
1109         <nbprofiledirect>\r
1110             <classpath>\r
1111                 <path path="${run.classpath}"/>\r
1112             </classpath>\r
1113         </nbprofiledirect>\r
1114         <profile/>\r
1115     </target>\r
1116     <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">\r
1117         <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>\r
1118         <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>\r
1119         <nbprofiledirect>\r
1120             <classpath>\r
1121                 <path path="${run.classpath}"/>\r
1122             </classpath>\r
1123         </nbprofiledirect>\r
1124         <profile classname="${profile.class}"/>\r
1125     </target>\r
1126     <target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">\r
1127         <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>\r
1128         <nbprofiledirect>\r
1129             <classpath>\r
1130                 <path path="${run.classpath}"/>\r
1131             </classpath>\r
1132         </nbprofiledirect>\r
1133         <profile classname="sun.applet.AppletViewer">\r
1134             <customize>\r
1135                 <arg value="${applet.url}"/>\r
1136             </customize>\r
1137         </profile>\r
1138     </target>\r
1139     <target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">\r
1140         <fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>\r
1141         <nbprofiledirect>\r
1142             <classpath>\r
1143                 <path path="${run.test.classpath}"/>\r
1144             </classpath>\r
1145         </nbprofiledirect>\r
1146         <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">\r
1147             <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>\r
1148             <jvmarg value="${profiler.info.jvmargs.agent}"/>\r
1149             <jvmarg line="${profiler.info.jvmargs}"/>\r
1150             <test name="${profile.class}"/>\r
1151             <classpath>\r
1152                 <path path="${run.test.classpath}"/>\r
1153             </classpath>\r
1154             <syspropertyset>\r
1155                 <propertyref prefix="test-sys-prop."/>\r
1156                 <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
1157             </syspropertyset>\r
1158             <formatter type="brief" usefile="false"/>\r
1159             <formatter type="xml"/>\r
1160         </junit>\r
1161     </target>\r
1162     <!--\r
1163                 end of pre NB72 profiling section\r
1164             -->\r
1165     <target if="netbeans.home" name="-profile-check">\r
1166         <condition property="profiler.configured">\r
1167             <or>\r
1168                 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>\r
1169                 <contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>\r
1170             </or>\r
1171         </condition>\r
1172     </target>\r
1173     <target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">\r
1174         <startprofiler/>\r
1175         <antcall target="run"/>\r
1176     </target>\r
1177     <target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">\r
1178         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
1179         <startprofiler/>\r
1180         <antcall target="run-single"/>\r
1181     </target>\r
1182     <target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>\r
1183     <target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">\r
1184         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>\r
1185         <startprofiler/>\r
1186         <antcall target="test-single"/>\r
1187     </target>\r
1188     <target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">\r
1189         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
1190         <startprofiler/>\r
1191         <antcal target="run-test-with-main"/>\r
1192     </target>\r
1193     <target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">\r
1194         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
1195         <startprofiler/>\r
1196         <antcall target="run-applet"/>\r
1197     </target>\r
1198     <!--\r
1199                 ===============\r
1200                 JAVADOC SECTION\r
1201                 ===============\r
1202             -->\r
1203     <target depends="init" if="have.sources" name="-javadoc-build">\r
1204         <mkdir dir="${dist.javadoc.dir}"/>\r
1205         <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">\r
1206             <and>\r
1207                 <isset property="endorsed.classpath.cmd.line.arg"/>\r
1208                 <not>\r
1209                     <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>\r
1210                 </not>\r
1211             </and>\r
1212         </condition>\r
1213         <condition else="" property="bug5101868workaround" value="*.java">\r
1214             <matches pattern="1\.[56](\..*)?" string="${java.version}"/>\r
1215         </condition>\r
1216         <javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${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
1217             <classpath>\r
1218                 <path path="${javac.classpath}"/>\r
1219             </classpath>\r
1220             <fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">\r
1221                 <filename name="**/*.java"/>\r
1222             </fileset>\r
1223             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
1224                 <include name="**/*.java"/>\r
1225                 <exclude name="*.java"/>\r
1226             </fileset>\r
1227             <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>\r
1228         </javadoc>\r
1229         <copy todir="${dist.javadoc.dir}">\r
1230             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">\r
1231                 <filename name="**/doc-files/**"/>\r
1232             </fileset>\r
1233             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
1234                 <include name="**/doc-files/**"/>\r
1235             </fileset>\r
1236         </copy>\r
1237     </target>\r
1238     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">\r
1239         <nbbrowse file="${dist.javadoc.dir}/index.html"/>\r
1240     </target>\r
1241     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>\r
1242     <!--\r
1243                 =========================\r
1244                 TEST COMPILATION SECTION\r
1245                 =========================\r
1246             -->\r
1247     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">\r
1248         <mkdir dir="${build.test.classes.dir}"/>\r
1249     </target>\r
1250     <target name="-pre-compile-test">\r
1251         <!-- Empty placeholder for easier customization. -->\r
1252         <!-- You can override this target in the ../build.xml file. -->\r
1253     </target>\r
1254     <target if="do.depend.true" name="-compile-test-depend">\r
1255         <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>\r
1256     </target>\r
1257     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">\r
1258         <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>\r
1259         <copy todir="${build.test.classes.dir}">\r
1260             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
1261         </copy>\r
1262     </target>\r
1263     <target name="-post-compile-test">\r
1264         <!-- Empty placeholder for easier customization. -->\r
1265         <!-- You can override this target in the ../build.xml file. -->\r
1266     </target>\r
1267     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>\r
1268     <target name="-pre-compile-test-single">\r
1269         <!-- Empty placeholder for easier customization. -->\r
1270         <!-- You can override this target in the ../build.xml file. -->\r
1271     </target>\r
1272     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">\r
1273         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
1274         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>\r
1275         <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>\r
1276         <copy todir="${build.test.classes.dir}">\r
1277             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
1278         </copy>\r
1279     </target>\r
1280     <target name="-post-compile-test-single">\r
1281         <!-- Empty placeholder for easier customization. -->\r
1282         <!-- You can override this target in the ../build.xml file. -->\r
1283     </target>\r
1284     <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
1285     <!--\r
1286                 =======================\r
1287                 TEST EXECUTION SECTION\r
1288                 =======================\r
1289             -->\r
1290     <target depends="init" if="have.tests" name="-pre-test-run">\r
1291         <mkdir dir="${build.test.results.dir}"/>\r
1292     </target>\r
1293     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">\r
1294         <j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>\r
1295     </target>\r
1296     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">\r
1297         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
1298     </target>\r
1299     <target depends="init" if="have.tests" name="test-report"/>\r
1300     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>\r
1301     <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
1302     <target depends="init" if="have.tests" name="-pre-test-run-single">\r
1303         <mkdir dir="${build.test.results.dir}"/>\r
1304     </target>\r
1305     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">\r
1306         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>\r
1307         <j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>\r
1308     </target>\r
1309     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">\r
1310         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
1311     </target>\r
1312     <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
1313     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">\r
1314         <fail unless="test.class">Must select some files in the IDE or set test.class</fail>\r
1315         <fail unless="test.method">Must select some method in the IDE or set test.method</fail>\r
1316         <j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>\r
1317     </target>\r
1318     <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
1319         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
1320     </target>\r
1321     <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
1322     <!--\r
1323                 =======================\r
1324                 TEST DEBUGGING SECTION\r
1325                 =======================\r
1326             -->\r
1327     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">\r
1328         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>\r
1329         <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>\r
1330     </target>\r
1331     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">\r
1332         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>\r
1333         <fail unless="test.method">Must select some method in the IDE or set test.method</fail>\r
1334         <j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>\r
1335     </target>\r
1336     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">\r
1337         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>\r
1338     </target>\r
1339     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>\r
1340     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>\r
1341     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">\r
1342         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>\r
1343     </target>\r
1344     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>\r
1345     <!--\r
1346                 =========================\r
1347                 APPLET EXECUTION SECTION\r
1348                 =========================\r
1349             -->\r
1350     <target depends="init,compile-single" name="run-applet">\r
1351         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
1352         <j2seproject1:java classname="sun.applet.AppletViewer">\r
1353             <customize>\r
1354                 <arg value="${applet.url}"/>\r
1355             </customize>\r
1356         </j2seproject1:java>\r
1357     </target>\r
1358     <!--\r
1359                 =========================\r
1360                 APPLET DEBUGGING  SECTION\r
1361                 =========================\r
1362             -->\r
1363     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">\r
1364         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
1365         <j2seproject3:debug classname="sun.applet.AppletViewer">\r
1366             <customize>\r
1367                 <arg value="${applet.url}"/>\r
1368             </customize>\r
1369         </j2seproject3:debug>\r
1370     </target>\r
1371     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>\r
1372     <!--\r
1373                 ===============\r
1374                 CLEANUP SECTION\r
1375                 ===============\r
1376             -->\r
1377     <target name="-deps-clean-init" unless="built-clean.properties">\r
1378         <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>\r
1379         <delete file="${built-clean.properties}" quiet="true"/>\r
1380     </target>\r
1381     <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">\r
1382         <echo level="warn" message="Cycle detected: Addressbook was already built"/>\r
1383     </target>\r
1384     <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">\r
1385         <mkdir dir="${build.dir}"/>\r
1386         <touch file="${built-clean.properties}" verbose="false"/>\r
1387         <property file="${built-clean.properties}" prefix="already.built.clean."/>\r
1388         <antcall target="-warn-already-built-clean"/>\r
1389         <propertyfile file="${built-clean.properties}">\r
1390             <entry key="${basedir}" value=""/>\r
1391         </propertyfile>\r
1392         <antcall target="-maybe-call-dep">\r
1393             <param name="call.built.properties" value="${built-clean.properties}"/>\r
1394             <param location="${project.jcore}" name="call.subproject"/>\r
1395             <param location="${project.jcore}/build.xml" name="call.script"/>\r
1396             <param name="call.target" value="clean"/>\r
1397             <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>\r
1398             <param name="transfer.not.archive.disabled" value="true"/>\r
1399         </antcall>\r
1400     </target>\r
1401     <target depends="init" name="-do-clean">\r
1402         <delete dir="${build.dir}"/>\r
1403         <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>\r
1404     </target>\r
1405     <target name="-post-clean">\r
1406         <!-- Empty placeholder for easier customization. -->\r
1407         <!-- You can override this target in the ../build.xml file. -->\r
1408     </target>\r
1409     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>\r
1410     <target name="-check-call-dep">\r
1411         <property file="${call.built.properties}" prefix="already.built."/>\r
1412         <condition property="should.call.dep">\r
1413             <and>\r
1414                 <not>\r
1415                     <isset property="already.built.${call.subproject}"/>\r
1416                 </not>\r
1417                 <available file="${call.script}"/>\r
1418             </and>\r
1419         </condition>\r
1420     </target>\r
1421     <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">\r
1422         <ant antfile="${call.script}" inheritall="false" target="${call.target}">\r
1423             <propertyset>\r
1424                 <propertyref prefix="transfer."/>\r
1425                 <mapper from="transfer.*" to="*" type="glob"/>\r
1426             </propertyset>\r
1427         </ant>\r
1428     </target>\r
1429 </project>\r