OSDN Git Service

watchページアクセス時に動画タイトルも取得しておく(inqubus用)
[coroid/NicoBrowser.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   - junit compilation\r
16   - junit execution\r
17   - junit 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="NicoBrowser-impl">\r
23     <import file="jnlp-impl.xml"/>\r
24     <import file="groovy-build.xml"/>\r
25     <fail message="Please build using Ant 1.7.1 or higher.">\r
26         <condition>\r
27             <not>\r
28                 <antversion atleast="1.7.1"/>\r
29             </not>\r
30         </condition>\r
31     </fail>\r
32     <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>\r
33     <!-- \r
34                 ======================\r
35                 INITIALIZATION SECTION \r
36                 ======================\r
37             -->\r
38     <target name="-pre-init">\r
39         <!-- Empty placeholder for easier customization. -->\r
40         <!-- You can override this target in the ../build.xml file. -->\r
41     </target>\r
42     <target depends="-pre-init" name="-init-private">\r
43         <property file="nbproject/private/config.properties"/>\r
44         <property file="nbproject/private/configs/${config}.properties"/>\r
45         <property file="nbproject/private/private.properties"/>\r
46     </target>\r
47     <target depends="-pre-init,-init-private" name="-init-user">\r
48         <property file="${user.properties.file}"/>\r
49         <!-- The two properties below are usually overridden -->\r
50         <!-- by the active platform. Just a fallback. -->\r
51         <property name="default.javac.source" value="1.4"/>\r
52         <property name="default.javac.target" value="1.4"/>\r
53     </target>\r
54     <target depends="-pre-init,-init-private,-init-user" name="-init-project">\r
55         <property file="nbproject/configs/${config}.properties"/>\r
56         <property file="nbproject/project.properties"/>\r
57     </target>\r
58     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">\r
59         <available file="${manifest.file}" property="manifest.available"/>\r
60         <condition property="splashscreen.available">\r
61             <and>\r
62                 <not>\r
63                     <equals arg1="${application.splash}" arg2="" trim="true"/>\r
64                 </not>\r
65                 <available file="${application.splash}"/>\r
66             </and>\r
67         </condition>\r
68         <condition property="main.class.available">\r
69             <and>\r
70                 <isset property="main.class"/>\r
71                 <not>\r
72                     <equals arg1="${main.class}" arg2="" trim="true"/>\r
73                 </not>\r
74             </and>\r
75         </condition>\r
76         <condition property="manifest.available+main.class">\r
77             <and>\r
78                 <isset property="manifest.available"/>\r
79                 <isset property="main.class.available"/>\r
80             </and>\r
81         </condition>\r
82         <condition property="do.archive">\r
83             <not>\r
84                 <istrue value="${jar.archive.disabled}"/>\r
85             </not>\r
86         </condition>\r
87         <condition property="do.mkdist">\r
88             <and>\r
89                 <isset property="do.archive"/>\r
90                 <isset property="libs.CopyLibs.classpath"/>\r
91                 <not>\r
92                     <istrue value="${mkdist.disabled}"/>\r
93                 </not>\r
94             </and>\r
95         </condition>\r
96         <condition property="manifest.available+main.class+mkdist.available">\r
97             <and>\r
98                 <istrue value="${manifest.available+main.class}"/>\r
99                 <isset property="do.mkdist"/>\r
100             </and>\r
101         </condition>\r
102         <condition property="do.archive+manifest.available">\r
103             <and>\r
104                 <isset property="manifest.available"/>\r
105                 <istrue value="${do.archive}"/>\r
106             </and>\r
107         </condition>\r
108         <condition property="do.archive+main.class.available">\r
109             <and>\r
110                 <isset property="main.class.available"/>\r
111                 <istrue value="${do.archive}"/>\r
112             </and>\r
113         </condition>\r
114         <condition property="do.archive+splashscreen.available">\r
115             <and>\r
116                 <isset property="splashscreen.available"/>\r
117                 <istrue value="${do.archive}"/>\r
118             </and>\r
119         </condition>\r
120         <condition property="do.archive+manifest.available+main.class">\r
121             <and>\r
122                 <istrue value="${manifest.available+main.class}"/>\r
123                 <istrue value="${do.archive}"/>\r
124             </and>\r
125         </condition>\r
126         <condition property="manifest.available-mkdist.available">\r
127             <or>\r
128                 <istrue value="${manifest.available}"/>\r
129                 <isset property="do.mkdist"/>\r
130             </or>\r
131         </condition>\r
132         <condition property="manifest.available+main.class-mkdist.available">\r
133             <or>\r
134                 <istrue value="${manifest.available+main.class}"/>\r
135                 <isset property="do.mkdist"/>\r
136             </or>\r
137         </condition>\r
138         <condition property="have.tests">\r
139             <or>\r
140                 <available file="${test.src.dir}"/>\r
141             </or>\r
142         </condition>\r
143         <condition property="have.sources">\r
144             <or>\r
145                 <available file="${src.dir}"/>\r
146             </or>\r
147         </condition>\r
148         <condition property="netbeans.home+have.tests">\r
149             <and>\r
150                 <isset property="netbeans.home"/>\r
151                 <isset property="have.tests"/>\r
152             </and>\r
153         </condition>\r
154         <condition property="no.javadoc.preview">\r
155             <and>\r
156                 <isset property="javadoc.preview"/>\r
157                 <isfalse value="${javadoc.preview}"/>\r
158             </and>\r
159         </condition>\r
160         <property name="run.jvmargs" value=""/>\r
161         <property name="javac.compilerargs" value=""/>\r
162         <property name="work.dir" value="${basedir}"/>\r
163         <condition property="no.deps">\r
164             <and>\r
165                 <istrue value="${no.dependencies}"/>\r
166             </and>\r
167         </condition>\r
168         <property name="javac.debug" value="true"/>\r
169         <property name="javadoc.preview" value="true"/>\r
170         <property name="application.args" value=""/>\r
171         <property name="source.encoding" value="${file.encoding}"/>\r
172         <property name="runtime.encoding" value="${source.encoding}"/>\r
173         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">\r
174             <and>\r
175                 <isset property="javadoc.encoding"/>\r
176                 <not>\r
177                     <equals arg1="${javadoc.encoding}" arg2=""/>\r
178                 </not>\r
179             </and>\r
180         </condition>\r
181         <property name="javadoc.encoding.used" value="${source.encoding}"/>\r
182         <property name="includes" value="**"/>\r
183         <property name="excludes" value=""/>\r
184         <property name="do.depend" value="false"/>\r
185         <condition property="do.depend.true">\r
186             <istrue value="${do.depend}"/>\r
187         </condition>\r
188         <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>\r
189         <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">\r
190             <length length="0" string="${endorsed.classpath}" when="greater"/>\r
191         </condition>\r
192         <condition else="false" property="jdkBug6558476">\r
193             <and>\r
194                 <matches pattern="1\.[56]" string="${java.specification.version}"/>\r
195                 <not>\r
196                     <os family="unix"/>\r
197                 </not>\r
198             </and>\r
199         </condition>\r
200         <property name="javac.fork" value="${jdkBug6558476}"/>\r
201         <property name="jar.index" value="false"/>\r
202         <property name="jar.index.metainf" value="${jar.index}"/>\r
203         <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>\r
204     </target>\r
205     <target name="-post-init">\r
206         <!-- Empty placeholder for easier customization. -->\r
207         <!-- You can override this target in the ../build.xml file. -->\r
208     </target>\r
209     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">\r
210         <fail unless="src.dir">Must set src.dir</fail>\r
211         <fail unless="test.src.dir">Must set test.src.dir</fail>\r
212         <fail unless="build.dir">Must set build.dir</fail>\r
213         <fail unless="dist.dir">Must set dist.dir</fail>\r
214         <fail unless="build.classes.dir">Must set build.classes.dir</fail>\r
215         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>\r
216         <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>\r
217         <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>\r
218         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>\r
219         <fail unless="dist.jar">Must set dist.jar</fail>\r
220     </target>\r
221     <target name="-init-macrodef-property">\r
222         <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">\r
223             <attribute name="name"/>\r
224             <attribute name="value"/>\r
225             <sequential>\r
226                 <property name="@{name}" value="${@{value}}"/>\r
227             </sequential>\r
228         </macrodef>\r
229     </target>\r
230     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">\r
231         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">\r
232             <attribute default="${src.dir}" name="srcdir"/>\r
233             <attribute default="${build.classes.dir}" name="destdir"/>\r
234             <attribute default="${javac.classpath}" name="classpath"/>\r
235             <attribute default="${javac.processorpath}" name="processorpath"/>\r
236             <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>\r
237             <attribute default="${includes}" name="includes"/>\r
238             <attribute default="${excludes}" name="excludes"/>\r
239             <attribute default="${javac.debug}" name="debug"/>\r
240             <attribute default="${empty.dir}" name="sourcepath"/>\r
241             <attribute default="${empty.dir}" name="gensrcdir"/>\r
242             <element name="customize" optional="true"/>\r
243             <sequential>\r
244                 <property location="${build.dir}/empty" name="empty.dir"/>\r
245                 <mkdir dir="${empty.dir}"/>\r
246                 <mkdir dir="@{apgeneratedsrcdir}"/>\r
247                 <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
248                     <src>\r
249                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">\r
250                             <include name="*"/>\r
251                         </dirset>\r
252                     </src>\r
253                     <classpath>\r
254                         <path path="@{classpath}"/>\r
255                     </classpath>\r
256                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>\r
257                     <compilerarg line="${javac.compilerargs}"/>\r
258                     <compilerarg value="-processorpath"/>\r
259                     <compilerarg path="@{processorpath}:${empty.dir}"/>\r
260                     <compilerarg line="${ap.processors.internal}"/>\r
261                     <compilerarg line="${annotation.processing.processor.options}"/>\r
262                     <compilerarg value="-s"/>\r
263                     <compilerarg path="@{apgeneratedsrcdir}"/>\r
264                     <compilerarg line="${ap.proc.none.internal}"/>\r
265                     <customize/>\r
266                 </javac>\r
267             </sequential>\r
268         </macrodef>\r
269     </target>\r
270     <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">\r
271         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">\r
272             <attribute default="${src.dir}" name="srcdir"/>\r
273             <attribute default="${build.classes.dir}" name="destdir"/>\r
274             <attribute default="${javac.classpath}" name="classpath"/>\r
275             <attribute default="${javac.processorpath}" name="processorpath"/>\r
276             <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>\r
277             <attribute default="${includes}" name="includes"/>\r
278             <attribute default="${excludes}" name="excludes"/>\r
279             <attribute default="${javac.debug}" name="debug"/>\r
280             <attribute default="${empty.dir}" name="sourcepath"/>\r
281             <attribute default="${empty.dir}" name="gensrcdir"/>\r
282             <element name="customize" optional="true"/>\r
283             <sequential>\r
284                 <property location="${build.dir}/empty" name="empty.dir"/>\r
285                 <mkdir dir="${empty.dir}"/>\r
286                 <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
287                     <src>\r
288                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">\r
289                             <include name="*"/>\r
290                         </dirset>\r
291                     </src>\r
292                     <classpath>\r
293                         <path path="@{classpath}"/>\r
294                     </classpath>\r
295                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>\r
296                     <compilerarg line="${javac.compilerargs}"/>\r
297                     <customize/>\r
298                 </javac>\r
299             </sequential>\r
300         </macrodef>\r
301     </target>\r
302     <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">\r
303         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">\r
304             <attribute default="${src.dir}" name="srcdir"/>\r
305             <attribute default="${build.classes.dir}" name="destdir"/>\r
306             <attribute default="${javac.classpath}" name="classpath"/>\r
307             <sequential>\r
308                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">\r
309                     <classpath>\r
310                         <path path="@{classpath}"/>\r
311                     </classpath>\r
312                 </depend>\r
313             </sequential>\r
314         </macrodef>\r
315         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">\r
316             <attribute default="${build.classes.dir}" name="destdir"/>\r
317             <sequential>\r
318                 <fail unless="javac.includes">Must set javac.includes</fail>\r
319                 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">\r
320                     <path>\r
321                         <filelist dir="@{destdir}" files="${javac.includes}"/>\r
322                     </path>\r
323                     <globmapper from="*.java" to="*.class"/>\r
324                 </pathconvert>\r
325                 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>\r
326                 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>\r
327                 <delete>\r
328                     <files includesfile="${javac.includesfile.binary}"/>\r
329                 </delete>\r
330                 <delete>\r
331                     <fileset file="${javac.includesfile.binary}"/>\r
332                 </delete>\r
333             </sequential>\r
334         </macrodef>\r
335     </target>\r
336     <target name="-init-macrodef-junit">\r
337         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">\r
338             <attribute default="${includes}" name="includes"/>\r
339             <attribute default="${excludes}" name="excludes"/>\r
340             <attribute default="**" name="testincludes"/>\r
341             <sequential>\r
342                 <property name="junit.forkmode" value="perTest"/>\r
343                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">\r
344                     <batchtest todir="${build.test.results.dir}">\r
345                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">\r
346                             <filename name="@{testincludes}"/>\r
347                         </fileset>\r
348                     </batchtest>\r
349                     <classpath>\r
350                         <path path="${run.test.classpath}"/>\r
351                     </classpath>\r
352                     <syspropertyset>\r
353                         <propertyref prefix="test-sys-prop."/>\r
354                         <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
355                     </syspropertyset>\r
356                     <formatter type="brief" usefile="false"/>\r
357                     <formatter type="xml"/>\r
358                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
359                     <jvmarg value="-ea"/>\r
360                     <jvmarg line="${run.jvmargs}"/>\r
361                 </junit>\r
362             </sequential>\r
363         </macrodef>\r
364     </target>\r
365     <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>\r
366     <target name="-profile-pre-init">\r
367         <!-- Empty placeholder for easier customization. -->\r
368         <!-- You can override this target in the ../build.xml file. -->\r
369     </target>\r
370     <target name="-profile-post-init">\r
371         <!-- Empty placeholder for easier customization. -->\r
372         <!-- You can override this target in the ../build.xml file. -->\r
373     </target>\r
374     <target name="-profile-init-macrodef-profile">\r
375         <macrodef name="resolve">\r
376             <attribute name="name"/>\r
377             <attribute name="value"/>\r
378             <sequential>\r
379                 <property name="@{name}" value="${env.@{value}}"/>\r
380             </sequential>\r
381         </macrodef>\r
382         <macrodef name="profile">\r
383             <attribute default="${main.class}" name="classname"/>\r
384             <element name="customize" optional="true"/>\r
385             <sequential>\r
386                 <property environment="env"/>\r
387                 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>\r
388                 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">\r
389                     <jvmarg value="${profiler.info.jvmargs.agent}"/>\r
390                     <jvmarg line="${profiler.info.jvmargs}"/>\r
391                     <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>\r
392                     <arg line="${application.args}"/>\r
393                     <classpath>\r
394                         <path path="${run.classpath}"/>\r
395                     </classpath>\r
396                     <syspropertyset>\r
397                         <propertyref prefix="run-sys-prop."/>\r
398                         <mapper from="run-sys-prop.*" to="*" type="glob"/>\r
399                     </syspropertyset>\r
400                     <customize/>\r
401                 </java>\r
402             </sequential>\r
403         </macrodef>\r
404     </target>\r
405     <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">\r
406         <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>\r
407         <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>\r
408     </target>\r
409     <target depends="-init-debug-args" name="-init-macrodef-nbjpda">\r
410         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">\r
411             <attribute default="${main.class}" name="name"/>\r
412             <attribute default="${debug.classpath}" name="classpath"/>\r
413             <attribute default="" name="stopclassname"/>\r
414             <sequential>\r
415                 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">\r
416                     <classpath>\r
417                         <path path="@{classpath}"/>\r
418                     </classpath>\r
419                 </nbjpdastart>\r
420             </sequential>\r
421         </macrodef>\r
422         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">\r
423             <attribute default="${build.classes.dir}" name="dir"/>\r
424             <sequential>\r
425                 <nbjpdareload>\r
426                     <fileset dir="@{dir}" includes="${fix.classes}">\r
427                         <include name="${fix.includes}*.class"/>\r
428                     </fileset>\r
429                 </nbjpdareload>\r
430             </sequential>\r
431         </macrodef>\r
432     </target>\r
433     <target name="-init-debug-args">\r
434         <property name="version-output" value="java version &quot;${ant.java.version}"/>\r
435         <condition property="have-jdk-older-than-1.4">\r
436             <or>\r
437                 <contains string="${version-output}" substring="java version &quot;1.0"/>\r
438                 <contains string="${version-output}" substring="java version &quot;1.1"/>\r
439                 <contains string="${version-output}" substring="java version &quot;1.2"/>\r
440                 <contains string="${version-output}" substring="java version &quot;1.3"/>\r
441             </or>\r
442         </condition>\r
443         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">\r
444             <istrue value="${have-jdk-older-than-1.4}"/>\r
445         </condition>\r
446         <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">\r
447             <os family="windows"/>\r
448         </condition>\r
449         <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">\r
450             <isset property="debug.transport"/>\r
451         </condition>\r
452     </target>\r
453     <target depends="-init-debug-args" name="-init-macrodef-debug">\r
454         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">\r
455             <attribute default="${main.class}" name="classname"/>\r
456             <attribute default="${debug.classpath}" name="classpath"/>\r
457             <element name="customize" optional="true"/>\r
458             <sequential>\r
459                 <java classname="@{classname}" dir="${work.dir}" fork="true">\r
460                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
461                     <jvmarg line="${debug-args-line}"/>\r
462                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>\r
463                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>\r
464                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>\r
465                     <jvmarg line="${run.jvmargs}"/>\r
466                     <classpath>\r
467                         <path path="@{classpath}"/>\r
468                     </classpath>\r
469                     <syspropertyset>\r
470                         <propertyref prefix="run-sys-prop."/>\r
471                         <mapper from="run-sys-prop.*" to="*" type="glob"/>\r
472                     </syspropertyset>\r
473                     <customize/>\r
474                 </java>\r
475             </sequential>\r
476         </macrodef>\r
477     </target>\r
478     <target name="-init-macrodef-java">\r
479         <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">\r
480             <attribute default="${main.class}" name="classname"/>\r
481             <attribute default="${run.classpath}" name="classpath"/>\r
482             <element name="customize" optional="true"/>\r
483             <sequential>\r
484                 <java classname="@{classname}" dir="${work.dir}" fork="true">\r
485                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
486                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>\r
487                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>\r
488                     <jvmarg line="${run.jvmargs}"/>\r
489                     <classpath>\r
490                         <path path="@{classpath}"/>\r
491                     </classpath>\r
492                     <syspropertyset>\r
493                         <propertyref prefix="run-sys-prop."/>\r
494                         <mapper from="run-sys-prop.*" to="*" type="glob"/>\r
495                     </syspropertyset>\r
496                     <customize/>\r
497                 </java>\r
498             </sequential>\r
499         </macrodef>\r
500     </target>\r
501     <target name="-init-macrodef-copylibs">\r
502         <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">\r
503             <attribute default="${manifest.file}" name="manifest"/>\r
504             <element name="customize" optional="true"/>\r
505             <sequential>\r
506                 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
507                 <pathconvert property="run.classpath.without.build.classes.dir">\r
508                     <path path="${run.classpath}"/>\r
509                     <map from="${build.classes.dir.resolved}" to=""/>\r
510                 </pathconvert>\r
511                 <pathconvert pathsep=" " property="jar.classpath">\r
512                     <path path="${run.classpath.without.build.classes.dir}"/>\r
513                     <chainedmapper>\r
514                         <flattenmapper/>\r
515                         <globmapper from="*" to="lib/*"/>\r
516                     </chainedmapper>\r
517                 </pathconvert>\r
518                 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>\r
519                 <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}">\r
520                     <fileset dir="${build.classes.dir}"/>\r
521                     <manifest>\r
522                         <attribute name="Class-Path" value="${jar.classpath}"/>\r
523                         <customize/>\r
524                     </manifest>\r
525                 </copylibs>\r
526             </sequential>\r
527         </macrodef>\r
528     </target>\r
529     <target name="-init-presetdef-jar">\r
530         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">\r
531             <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">\r
532                 <j2seproject1:fileset dir="${build.classes.dir}"/>\r
533             </jar>\r
534         </presetdef>\r
535     </target>\r
536     <target name="-init-ap-cmdline-properties">\r
537         <property name="annotation.processing.enabled" value="true"/>\r
538         <property name="annotation.processing.processors.list" value=""/>\r
539         <property name="annotation.processing.processor.options" value=""/>\r
540         <property name="annotation.processing.run.all.processors" value="true"/>\r
541         <property name="javac.processorpath" value="${javac.classpath}"/>\r
542         <property name="javac.test.processorpath" value="${javac.test.classpath}"/>\r
543         <condition property="ap.supported.internal" value="true">\r
544             <not>\r
545                 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>\r
546             </not>\r
547         </condition>\r
548     </target>\r
549     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">\r
550         <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">\r
551             <isfalse value="${annotation.processing.run.all.processors}"/>\r
552         </condition>\r
553         <condition else="" property="ap.proc.none.internal" value="-proc:none">\r
554             <isfalse value="${annotation.processing.enabled}"/>\r
555         </condition>\r
556     </target>\r
557     <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">\r
558         <property name="ap.cmd.line.internal" value=""/>\r
559     </target>\r
560     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>\r
561     <!--\r
562                 ===================\r
563                 COMPILATION SECTION\r
564                 ===================\r
565             -->\r
566     <target name="-deps-jar-init" unless="built-jar.properties">\r
567         <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>\r
568         <delete file="${built-jar.properties}" quiet="true"/>\r
569     </target>\r
570     <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">\r
571         <echo level="warn" message="Cycle detected: NicoBrowser was already built"/>\r
572     </target>\r
573     <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">\r
574         <mkdir dir="${build.dir}"/>\r
575         <touch file="${built-jar.properties}" verbose="false"/>\r
576         <property file="${built-jar.properties}" prefix="already.built.jar."/>\r
577         <antcall target="-warn-already-built-jar"/>\r
578         <propertyfile file="${built-jar.properties}">\r
579             <entry key="${basedir}" value=""/>\r
580         </propertyfile>\r
581     </target>\r
582     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>\r
583     <target depends="init" name="-check-automatic-build">\r
584         <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>\r
585     </target>\r
586     <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">\r
587         <antcall target="clean"/>\r
588     </target>\r
589     <target depends="init,deps-jar,-groovy-init-macrodef-javac" name="-pre-pre-compile">\r
590         <mkdir dir="${build.classes.dir}"/>\r
591     </target>\r
592     <target name="-pre-compile">\r
593         <!-- Empty placeholder for easier customization. -->\r
594         <!-- You can override this target in the ../build.xml file. -->\r
595     </target>\r
596     <target if="do.depend.true" name="-compile-depend">\r
597         <pathconvert property="build.generated.subdirs">\r
598             <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
599                 <include name="*"/>\r
600             </dirset>\r
601         </pathconvert>\r
602         <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>\r
603     </target>\r
604     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">\r
605         <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>\r
606         <copy todir="${build.classes.dir}">\r
607             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
608         </copy>\r
609     </target>\r
610     <target if="has.persistence.xml" name="-copy-persistence-xml">\r
611         <mkdir dir="${build.classes.dir}/META-INF"/>\r
612         <copy todir="${build.classes.dir}/META-INF">\r
613             <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>\r
614         </copy>\r
615     </target>\r
616     <target name="-post-compile">\r
617         <!-- Empty placeholder for easier customization. -->\r
618         <!-- You can override this target in the ../build.xml file. -->\r
619     </target>\r
620     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>\r
621     <target name="-pre-compile-single">\r
622         <!-- Empty placeholder for easier customization. -->\r
623         <!-- You can override this target in the ../build.xml file. -->\r
624     </target>\r
625     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">\r
626         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
627         <j2seproject3:force-recompile/>\r
628         <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>\r
629     </target>\r
630     <target name="-post-compile-single">\r
631         <!-- Empty placeholder for easier customization. -->\r
632         <!-- You can override this target in the ../build.xml file. -->\r
633     </target>\r
634     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>\r
635     <!--\r
636                 ====================\r
637                 JAR BUILDING SECTION\r
638                 ====================\r
639             -->\r
640     <target depends="init" name="-pre-pre-jar">\r
641         <dirname file="${dist.jar}" property="dist.jar.dir"/>\r
642         <mkdir dir="${dist.jar.dir}"/>\r
643     </target>\r
644     <target name="-pre-jar">\r
645         <!-- Empty placeholder for easier customization. -->\r
646         <!-- You can override this target in the ../build.xml file. -->\r
647     </target>\r
648     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">\r
649         <j2seproject1:jar/>\r
650     </target>\r
651     <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
652         <j2seproject1:jar manifest="${manifest.file}"/>\r
653     </target>\r
654     <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
655         <j2seproject1:jar manifest="${manifest.file}">\r
656             <j2seproject1:manifest>\r
657                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>\r
658             </j2seproject1:manifest>\r
659         </j2seproject1:jar>\r
660         <echo level="info">To run this application from the command line without Ant, try:</echo>\r
661         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
662         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
663         <pathconvert property="run.classpath.with.dist.jar">\r
664             <path path="${run.classpath}"/>\r
665             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>\r
666         </pathconvert>\r
667         <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>\r
668     </target>\r
669     <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">\r
670         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>\r
671         <touch file="${tmp.manifest.file}" verbose="false"/>\r
672     </target>\r
673     <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">\r
674         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>\r
675         <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>\r
676     </target>\r
677     <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
678         <manifest file="${tmp.manifest.file}" mode="update">\r
679             <attribute name="Main-Class" value="${main.class}"/>\r
680         </manifest>\r
681     </target>\r
682     <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
683         <basename file="${application.splash}" property="splashscreen.basename"/>\r
684         <mkdir dir="${build.classes.dir}/META-INF"/>\r
685         <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>\r
686         <manifest file="${tmp.manifest.file}" mode="update">\r
687             <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>\r
688         </manifest>\r
689     </target>\r
690     <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
691         <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>\r
692         <echo level="info">To run this application from the command line without Ant, try:</echo>\r
693         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
694         <echo level="info">java -jar "${dist.jar.resolved}"</echo>\r
695     </target>\r
696     <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">\r
697         <delete>\r
698             <fileset file="${tmp.manifest.file}"/>\r
699         </delete>\r
700     </target>\r
701     <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
702     <target name="-post-jar">\r
703         <!-- Empty placeholder for easier customization. -->\r
704         <!-- You can override this target in the ../build.xml file. -->\r
705     </target>\r
706     <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar,jnlp" description="Build JAR." name="jar"/>\r
707     <!--\r
708                 =================\r
709                 EXECUTION SECTION\r
710                 =================\r
711             -->\r
712     <target depends="init,compile" description="Run a main class." name="run">\r
713         <j2seproject1:java>\r
714             <customize>\r
715                 <arg line="${application.args}"/>\r
716             </customize>\r
717         </j2seproject1:java>\r
718     </target>\r
719     <target name="-do-not-recompile">\r
720         <property name="javac.includes.binary" value=""/>\r
721     </target>\r
722     <target depends="init,compile-single" name="run-single">\r
723         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
724         <j2seproject1:java classname="${run.class}"/>\r
725     </target>\r
726     <target depends="init,compile-test-single" name="run-test-with-main">\r
727         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
728         <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>\r
729     </target>\r
730     <!--\r
731                 =================\r
732                 DEBUGGING SECTION\r
733                 =================\r
734             -->\r
735     <target depends="init" if="netbeans.home" name="-debug-start-debugger">\r
736         <j2seproject1:nbjpdastart name="${debug.class}"/>\r
737     </target>\r
738     <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">\r
739         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>\r
740     </target>\r
741     <target depends="init,compile" name="-debug-start-debuggee">\r
742         <j2seproject3:debug>\r
743             <customize>\r
744                 <arg line="${application.args}"/>\r
745             </customize>\r
746         </j2seproject3:debug>\r
747     </target>\r
748     <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>\r
749     <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">\r
750         <j2seproject1:nbjpdastart stopclassname="${main.class}"/>\r
751     </target>\r
752     <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>\r
753     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">\r
754         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
755         <j2seproject3:debug classname="${debug.class}"/>\r
756     </target>\r
757     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>\r
758     <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">\r
759         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
760         <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>\r
761     </target>\r
762     <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
763     <target depends="init" name="-pre-debug-fix">\r
764         <fail unless="fix.includes">Must set fix.includes</fail>\r
765         <property name="javac.includes" value="${fix.includes}.java"/>\r
766     </target>\r
767     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">\r
768         <j2seproject1:nbjpdareload/>\r
769     </target>\r
770     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>\r
771     <!--\r
772                 =================\r
773                 PROFILING SECTION\r
774                 =================\r
775             -->\r
776     <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">\r
777         <nbprofiledirect>\r
778             <classpath>\r
779                 <path path="${run.classpath}"/>\r
780             </classpath>\r
781         </nbprofiledirect>\r
782         <profile/>\r
783     </target>\r
784     <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">\r
785         <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>\r
786         <nbprofiledirect>\r
787             <classpath>\r
788                 <path path="${run.classpath}"/>\r
789             </classpath>\r
790         </nbprofiledirect>\r
791         <profile classname="${profile.class}"/>\r
792     </target>\r
793     <!--\r
794                 =========================\r
795                 APPLET PROFILING  SECTION\r
796                 =========================\r
797             -->\r
798     <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">\r
799         <nbprofiledirect>\r
800             <classpath>\r
801                 <path path="${run.classpath}"/>\r
802             </classpath>\r
803         </nbprofiledirect>\r
804         <profile classname="sun.applet.AppletViewer">\r
805             <customize>\r
806                 <arg value="${applet.url}"/>\r
807             </customize>\r
808         </profile>\r
809     </target>\r
810     <!--\r
811                 =========================\r
812                 TESTS PROFILING  SECTION\r
813                 =========================\r
814             -->\r
815     <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">\r
816         <nbprofiledirect>\r
817             <classpath>\r
818                 <path path="${run.test.classpath}"/>\r
819             </classpath>\r
820         </nbprofiledirect>\r
821         <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">\r
822             <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>\r
823             <jvmarg value="${profiler.info.jvmargs.agent}"/>\r
824             <jvmarg line="${profiler.info.jvmargs}"/>\r
825             <test name="${profile.class}"/>\r
826             <classpath>\r
827                 <path path="${run.test.classpath}"/>\r
828             </classpath>\r
829             <syspropertyset>\r
830                 <propertyref prefix="test-sys-prop."/>\r
831                 <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
832             </syspropertyset>\r
833             <formatter type="brief" usefile="false"/>\r
834             <formatter type="xml"/>\r
835         </junit>\r
836     </target>\r
837     <!--\r
838                 ===============\r
839                 JAVADOC SECTION\r
840                 ===============\r
841             -->\r
842     <target depends="init" if="have.sources" name="-javadoc-build">\r
843         <mkdir dir="${dist.javadoc.dir}"/>\r
844         <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
845             <classpath>\r
846                 <path path="${javac.classpath}"/>\r
847             </classpath>\r
848             <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">\r
849                 <filename name="**/*.java"/>\r
850             </fileset>\r
851             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
852                 <include name="**/*.java"/>\r
853                 <exclude name="*.java"/>\r
854             </fileset>\r
855         </javadoc>\r
856         <copy todir="${dist.javadoc.dir}">\r
857             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">\r
858                 <filename name="**/doc-files/**"/>\r
859             </fileset>\r
860             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
861                 <include name="**/doc-files/**"/>\r
862             </fileset>\r
863         </copy>\r
864     </target>\r
865     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">\r
866         <nbbrowse file="${dist.javadoc.dir}/index.html"/>\r
867     </target>\r
868     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>\r
869     <!--\r
870                 =========================\r
871                 JUNIT COMPILATION SECTION\r
872                 =========================\r
873             -->\r
874     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">\r
875         <mkdir dir="${build.test.classes.dir}"/>\r
876     </target>\r
877     <target name="-pre-compile-test">\r
878         <!-- Empty placeholder for easier customization. -->\r
879         <!-- You can override this target in the ../build.xml file. -->\r
880     </target>\r
881     <target if="do.depend.true" name="-compile-test-depend">\r
882         <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>\r
883     </target>\r
884     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">\r
885         <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
886         <copy todir="${build.test.classes.dir}">\r
887             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
888         </copy>\r
889     </target>\r
890     <target name="-post-compile-test">\r
891         <!-- Empty placeholder for easier customization. -->\r
892         <!-- You can override this target in the ../build.xml file. -->\r
893     </target>\r
894     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>\r
895     <target name="-pre-compile-test-single">\r
896         <!-- Empty placeholder for easier customization. -->\r
897         <!-- You can override this target in the ../build.xml file. -->\r
898     </target>\r
899     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">\r
900         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
901         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>\r
902         <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
903         <copy todir="${build.test.classes.dir}">\r
904             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
905         </copy>\r
906     </target>\r
907     <target name="-post-compile-test-single">\r
908         <!-- Empty placeholder for easier customization. -->\r
909         <!-- You can override this target in the ../build.xml file. -->\r
910     </target>\r
911     <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
912     <!--\r
913                 =======================\r
914                 JUNIT EXECUTION SECTION\r
915                 =======================\r
916             -->\r
917     <target depends="init" if="have.tests" name="-pre-test-run">\r
918         <mkdir dir="${build.test.results.dir}"/>\r
919     </target>\r
920     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">\r
921         <j2seproject3:junit testincludes="**/*Test.java"/>\r
922     </target>\r
923     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">\r
924         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
925     </target>\r
926     <target depends="init" if="have.tests" name="test-report"/>\r
927     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>\r
928     <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
929     <target depends="init" if="have.tests" name="-pre-test-run-single">\r
930         <mkdir dir="${build.test.results.dir}"/>\r
931     </target>\r
932     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">\r
933         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>\r
934         <j2seproject3:junit excludes="" includes="${test.includes}"/>\r
935     </target>\r
936     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">\r
937         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
938     </target>\r
939     <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
940     <!--\r
941                 =======================\r
942                 JUNIT DEBUGGING SECTION\r
943                 =======================\r
944             -->\r
945     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">\r
946         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>\r
947         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>\r
948         <delete file="${test.report.file}"/>\r
949         <mkdir dir="${build.test.results.dir}"/>\r
950         <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">\r
951             <customize>\r
952                 <syspropertyset>\r
953                     <propertyref prefix="test-sys-prop."/>\r
954                     <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
955                 </syspropertyset>\r
956                 <arg value="${test.class}"/>\r
957                 <arg value="showoutput=true"/>\r
958                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>\r
959                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>\r
960             </customize>\r
961         </j2seproject3:debug>\r
962     </target>\r
963     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">\r
964         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>\r
965     </target>\r
966     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>\r
967     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">\r
968         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>\r
969     </target>\r
970     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>\r
971     <!--\r
972                 =========================\r
973                 APPLET EXECUTION SECTION\r
974                 =========================\r
975             -->\r
976     <target depends="init,compile-single" name="run-applet">\r
977         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
978         <j2seproject1:java classname="sun.applet.AppletViewer">\r
979             <customize>\r
980                 <arg value="${applet.url}"/>\r
981             </customize>\r
982         </j2seproject1:java>\r
983     </target>\r
984     <!--\r
985                 =========================\r
986                 APPLET DEBUGGING  SECTION\r
987                 =========================\r
988             -->\r
989     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">\r
990         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
991         <j2seproject3:debug classname="sun.applet.AppletViewer">\r
992             <customize>\r
993                 <arg value="${applet.url}"/>\r
994             </customize>\r
995         </j2seproject3:debug>\r
996     </target>\r
997     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>\r
998     <!--\r
999                 ===============\r
1000                 CLEANUP SECTION\r
1001                 ===============\r
1002             -->\r
1003     <target name="-deps-clean-init" unless="built-clean.properties">\r
1004         <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>\r
1005         <delete file="${built-clean.properties}" quiet="true"/>\r
1006     </target>\r
1007     <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">\r
1008         <echo level="warn" message="Cycle detected: NicoBrowser was already built"/>\r
1009     </target>\r
1010     <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">\r
1011         <mkdir dir="${build.dir}"/>\r
1012         <touch file="${built-clean.properties}" verbose="false"/>\r
1013         <property file="${built-clean.properties}" prefix="already.built.clean."/>\r
1014         <antcall target="-warn-already-built-clean"/>\r
1015         <propertyfile file="${built-clean.properties}">\r
1016             <entry key="${basedir}" value=""/>\r
1017         </propertyfile>\r
1018     </target>\r
1019     <target depends="init" name="-do-clean">\r
1020         <delete dir="${build.dir}"/>\r
1021         <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>\r
1022     </target>\r
1023     <target name="-post-clean">\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,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>\r
1028     <target name="-check-call-dep">\r
1029         <property file="${call.built.properties}" prefix="already.built."/>\r
1030         <condition property="should.call.dep">\r
1031             <not>\r
1032                 <isset property="already.built.${call.subproject}"/>\r
1033             </not>\r
1034         </condition>\r
1035     </target>\r
1036     <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">\r
1037         <ant antfile="${call.script}" inheritall="false" target="${call.target}">\r
1038             <propertyset>\r
1039                 <propertyref prefix="transfer."/>\r
1040                 <mapper from="transfer.*" to="*" type="glob"/>\r
1041             </propertyset>\r
1042         </ant>\r
1043     </target>\r
1044 </project>\r