OSDN Git Service

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