]> AND Private Git Repository - hdrcouchot.git/blob - bittar/Final5/nbproject/build-impl.xml
Logo AND Algorithmique Numérique Distribuée

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