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