OSDN Git Service

NetBeans7.1.1アップデート
[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.8.0 or higher.">\r
24         <condition>\r
25             <not>\r
26                 <antversion atleast="1.8.0"/>\r
27             </not>\r
28         </condition>\r
29     </fail>\r
30     <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>\r
31     <!-- \r
32                 ======================\r
33                 INITIALIZATION SECTION \r
34                 ======================\r
35             -->\r
36     <target name="-pre-init">\r
37         <!-- Empty placeholder for easier customization. -->\r
38         <!-- You can override this target in the ../build.xml file. -->\r
39     </target>\r
40     <target depends="-pre-init" name="-init-private">\r
41         <property file="nbproject/private/config.properties"/>\r
42         <property file="nbproject/private/configs/${config}.properties"/>\r
43         <property file="nbproject/private/private.properties"/>\r
44     </target>\r
45     <target depends="-pre-init,-init-private" name="-init-user">\r
46         <property file="${user.properties.file}"/>\r
47         <!-- The two properties below are usually overridden -->\r
48         <!-- by the active platform. Just a fallback. -->\r
49         <property name="default.javac.source" value="1.4"/>\r
50         <property name="default.javac.target" value="1.4"/>\r
51     </target>\r
52     <target depends="-pre-init,-init-private,-init-user" name="-init-project">\r
53         <property file="nbproject/configs/${config}.properties"/>\r
54         <property file="nbproject/project.properties"/>\r
55     </target>\r
56     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">\r
57         <available file="${manifest.file}" property="manifest.available"/>\r
58         <condition property="splashscreen.available">\r
59             <and>\r
60                 <not>\r
61                     <equals arg1="${application.splash}" arg2="" trim="true"/>\r
62                 </not>\r
63                 <available file="${application.splash}"/>\r
64             </and>\r
65         </condition>\r
66         <condition property="main.class.available">\r
67             <and>\r
68                 <isset property="main.class"/>\r
69                 <not>\r
70                     <equals arg1="${main.class}" arg2="" trim="true"/>\r
71                 </not>\r
72             </and>\r
73         </condition>\r
74         <condition property="manifest.available+main.class">\r
75             <and>\r
76                 <isset property="manifest.available"/>\r
77                 <isset property="main.class.available"/>\r
78             </and>\r
79         </condition>\r
80         <condition property="do.archive">\r
81             <not>\r
82                 <istrue value="${jar.archive.disabled}"/>\r
83             </not>\r
84         </condition>\r
85         <condition property="do.mkdist">\r
86             <and>\r
87                 <isset property="do.archive"/>\r
88                 <isset property="libs.CopyLibs.classpath"/>\r
89                 <not>\r
90                     <istrue value="${mkdist.disabled}"/>\r
91                 </not>\r
92             </and>\r
93         </condition>\r
94         <condition property="manifest.available+main.class+mkdist.available">\r
95             <and>\r
96                 <istrue value="${manifest.available+main.class}"/>\r
97                 <isset property="do.mkdist"/>\r
98             </and>\r
99         </condition>\r
100         <condition property="do.archive+manifest.available">\r
101             <and>\r
102                 <isset property="manifest.available"/>\r
103                 <istrue value="${do.archive}"/>\r
104             </and>\r
105         </condition>\r
106         <condition property="do.archive+main.class.available">\r
107             <and>\r
108                 <isset property="main.class.available"/>\r
109                 <istrue value="${do.archive}"/>\r
110             </and>\r
111         </condition>\r
112         <condition property="do.archive+splashscreen.available">\r
113             <and>\r
114                 <isset property="splashscreen.available"/>\r
115                 <istrue value="${do.archive}"/>\r
116             </and>\r
117         </condition>\r
118         <condition property="do.archive+manifest.available+main.class">\r
119             <and>\r
120                 <istrue value="${manifest.available+main.class}"/>\r
121                 <istrue value="${do.archive}"/>\r
122             </and>\r
123         </condition>\r
124         <condition property="manifest.available-mkdist.available">\r
125             <or>\r
126                 <istrue value="${manifest.available}"/>\r
127                 <isset property="do.mkdist"/>\r
128             </or>\r
129         </condition>\r
130         <condition property="manifest.available+main.class-mkdist.available">\r
131             <or>\r
132                 <istrue value="${manifest.available+main.class}"/>\r
133                 <isset property="do.mkdist"/>\r
134             </or>\r
135         </condition>\r
136         <condition property="have.tests">\r
137             <or>\r
138                 <available file="${test.src.dir}"/>\r
139             </or>\r
140         </condition>\r
141         <condition property="have.sources">\r
142             <or>\r
143                 <available file="${src.dir}"/>\r
144             </or>\r
145         </condition>\r
146         <condition property="netbeans.home+have.tests">\r
147             <and>\r
148                 <isset property="netbeans.home"/>\r
149                 <isset property="have.tests"/>\r
150             </and>\r
151         </condition>\r
152         <condition property="no.javadoc.preview">\r
153             <and>\r
154                 <isset property="javadoc.preview"/>\r
155                 <isfalse value="${javadoc.preview}"/>\r
156             </and>\r
157         </condition>\r
158         <property name="run.jvmargs" value=""/>\r
159         <property name="javac.compilerargs" value=""/>\r
160         <property name="work.dir" value="${basedir}"/>\r
161         <condition property="no.deps">\r
162             <and>\r
163                 <istrue value="${no.dependencies}"/>\r
164             </and>\r
165         </condition>\r
166         <property name="javac.debug" value="true"/>\r
167         <property name="javadoc.preview" value="true"/>\r
168         <property name="application.args" value=""/>\r
169         <property name="source.encoding" value="${file.encoding}"/>\r
170         <property name="runtime.encoding" value="${source.encoding}"/>\r
171         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">\r
172             <and>\r
173                 <isset property="javadoc.encoding"/>\r
174                 <not>\r
175                     <equals arg1="${javadoc.encoding}" arg2=""/>\r
176                 </not>\r
177             </and>\r
178         </condition>\r
179         <property name="javadoc.encoding.used" value="${source.encoding}"/>\r
180         <property name="includes" value="**"/>\r
181         <property name="excludes" value=""/>\r
182         <property name="do.depend" value="false"/>\r
183         <condition property="do.depend.true">\r
184             <istrue value="${do.depend}"/>\r
185         </condition>\r
186         <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>\r
187         <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">\r
188             <length length="0" string="${endorsed.classpath}" when="greater"/>\r
189         </condition>\r
190         <condition else="false" property="jdkBug6558476">\r
191             <and>\r
192                 <matches pattern="1\.[56]" string="${java.specification.version}"/>\r
193                 <not>\r
194                     <os family="unix"/>\r
195                 </not>\r
196             </and>\r
197         </condition>\r
198         <property name="javac.fork" value="${jdkBug6558476}"/>\r
199         <property name="jar.index" value="false"/>\r
200         <property name="jar.index.metainf" value="${jar.index}"/>\r
201         <property name="copylibs.rebase" value="true"/>\r
202         <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>\r
203     </target>\r
204     <target name="-post-init">\r
205         <!-- Empty placeholder for easier customization. -->\r
206         <!-- You can override this target in the ../build.xml file. -->\r
207     </target>\r
208     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">\r
209         <fail unless="src.dir">Must set src.dir</fail>\r
210         <fail unless="test.src.dir">Must set test.src.dir</fail>\r
211         <fail unless="build.dir">Must set build.dir</fail>\r
212         <fail unless="dist.dir">Must set dist.dir</fail>\r
213         <fail unless="build.classes.dir">Must set build.classes.dir</fail>\r
214         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>\r
215         <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>\r
216         <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>\r
217         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>\r
218         <fail unless="dist.jar">Must set dist.jar</fail>\r
219     </target>\r
220     <target name="-init-macrodef-property">\r
221         <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">\r
222             <attribute name="name"/>\r
223             <attribute name="value"/>\r
224             <sequential>\r
225                 <property name="@{name}" value="${@{value}}"/>\r
226             </sequential>\r
227         </macrodef>\r
228     </target>\r
229     <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">\r
230         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">\r
231             <attribute default="${src.dir}" name="srcdir"/>\r
232             <attribute default="${build.classes.dir}" name="destdir"/>\r
233             <attribute default="${javac.classpath}" name="classpath"/>\r
234             <attribute default="${javac.processorpath}" name="processorpath"/>\r
235             <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>\r
236             <attribute default="${includes}" name="includes"/>\r
237             <attribute default="${excludes}" name="excludes"/>\r
238             <attribute default="${javac.debug}" name="debug"/>\r
239             <attribute default="${empty.dir}" name="sourcepath"/>\r
240             <attribute default="${empty.dir}" name="gensrcdir"/>\r
241             <element name="customize" optional="true"/>\r
242             <sequential>\r
243                 <property location="${build.dir}/empty" name="empty.dir"/>\r
244                 <mkdir dir="${empty.dir}"/>\r
245                 <mkdir dir="@{apgeneratedsrcdir}"/>\r
246                 <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
247                     <src>\r
248                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">\r
249                             <include name="*"/>\r
250                         </dirset>\r
251                     </src>\r
252                     <classpath>\r
253                         <path path="@{classpath}"/>\r
254                     </classpath>\r
255                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>\r
256                     <compilerarg line="${javac.compilerargs}"/>\r
257                     <compilerarg value="-processorpath"/>\r
258                     <compilerarg path="@{processorpath}:${empty.dir}"/>\r
259                     <compilerarg line="${ap.processors.internal}"/>\r
260                     <compilerarg line="${annotation.processing.processor.options}"/>\r
261                     <compilerarg value="-s"/>\r
262                     <compilerarg path="@{apgeneratedsrcdir}"/>\r
263                     <compilerarg line="${ap.proc.none.internal}"/>\r
264                     <customize/>\r
265                 </javac>\r
266             </sequential>\r
267         </macrodef>\r
268     </target>\r
269     <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">\r
270         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">\r
271             <attribute default="${src.dir}" name="srcdir"/>\r
272             <attribute default="${build.classes.dir}" name="destdir"/>\r
273             <attribute default="${javac.classpath}" name="classpath"/>\r
274             <attribute default="${javac.processorpath}" name="processorpath"/>\r
275             <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>\r
276             <attribute default="${includes}" name="includes"/>\r
277             <attribute default="${excludes}" name="excludes"/>\r
278             <attribute default="${javac.debug}" name="debug"/>\r
279             <attribute default="${empty.dir}" name="sourcepath"/>\r
280             <attribute default="${empty.dir}" name="gensrcdir"/>\r
281             <element name="customize" optional="true"/>\r
282             <sequential>\r
283                 <property location="${build.dir}/empty" name="empty.dir"/>\r
284                 <mkdir dir="${empty.dir}"/>\r
285                 <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
286                     <src>\r
287                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">\r
288                             <include name="*"/>\r
289                         </dirset>\r
290                     </src>\r
291                     <classpath>\r
292                         <path path="@{classpath}"/>\r
293                     </classpath>\r
294                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>\r
295                     <compilerarg line="${javac.compilerargs}"/>\r
296                     <customize/>\r
297                 </javac>\r
298             </sequential>\r
299         </macrodef>\r
300     </target>\r
301     <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">\r
302         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">\r
303             <attribute default="${src.dir}" name="srcdir"/>\r
304             <attribute default="${build.classes.dir}" name="destdir"/>\r
305             <attribute default="${javac.classpath}" name="classpath"/>\r
306             <sequential>\r
307                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">\r
308                     <classpath>\r
309                         <path path="@{classpath}"/>\r
310                     </classpath>\r
311                 </depend>\r
312             </sequential>\r
313         </macrodef>\r
314         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">\r
315             <attribute default="${build.classes.dir}" name="destdir"/>\r
316             <sequential>\r
317                 <fail unless="javac.includes">Must set javac.includes</fail>\r
318                 <pathconvert pathsep="${line.separator}" property="javac.includes.binary">\r
319                     <path>\r
320                         <filelist dir="@{destdir}" files="${javac.includes}"/>\r
321                     </path>\r
322                     <globmapper from="*.java" to="*.class"/>\r
323                 </pathconvert>\r
324                 <tempfile deleteonexit="true" property="javac.includesfile.binary"/>\r
325                 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>\r
326                 <delete>\r
327                     <files includesfile="${javac.includesfile.binary}"/>\r
328                 </delete>\r
329                 <delete>\r
330                     <fileset file="${javac.includesfile.binary}"/>\r
331                 </delete>\r
332             </sequential>\r
333         </macrodef>\r
334     </target>\r
335     <target name="-init-macrodef-junit">\r
336         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">\r
337             <attribute default="${includes}" name="includes"/>\r
338             <attribute default="${excludes}" name="excludes"/>\r
339             <attribute default="**" name="testincludes"/>\r
340             <sequential>\r
341                 <property name="junit.forkmode" value="perTest"/>\r
342                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">\r
343                     <batchtest todir="${build.test.results.dir}">\r
344                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">\r
345                             <filename name="@{testincludes}"/>\r
346                         </fileset>\r
347                     </batchtest>\r
348                     <classpath>\r
349                         <path path="${run.test.classpath}"/>\r
350                     </classpath>\r
351                     <syspropertyset>\r
352                         <propertyref prefix="test-sys-prop."/>\r
353                         <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
354                     </syspropertyset>\r
355                     <formatter type="brief" usefile="false"/>\r
356                     <formatter type="xml"/>\r
357                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
358                     <jvmarg value="-ea"/>\r
359                     <jvmarg line="${run.jvmargs}"/>\r
360                 </junit>\r
361             </sequential>\r
362         </macrodef>\r
363     </target>\r
364     <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>\r
365     <target name="-profile-pre-init">\r
366         <!-- Empty placeholder for easier customization. -->\r
367         <!-- You can override this target in the ../build.xml file. -->\r
368     </target>\r
369     <target name="-profile-post-init">\r
370         <!-- Empty placeholder for easier customization. -->\r
371         <!-- You can override this target in the ../build.xml file. -->\r
372     </target>\r
373     <target name="-profile-init-macrodef-profile">\r
374         <macrodef name="resolve">\r
375             <attribute name="name"/>\r
376             <attribute name="value"/>\r
377             <sequential>\r
378                 <property name="@{name}" value="${env.@{value}}"/>\r
379             </sequential>\r
380         </macrodef>\r
381         <macrodef name="profile">\r
382             <attribute default="${main.class}" name="classname"/>\r
383             <element name="customize" optional="true"/>\r
384             <sequential>\r
385                 <property environment="env"/>\r
386                 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>\r
387                 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">\r
388                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\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}" rebase="${copylibs.rebase}" 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: Saccubus 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         <antcall target="-maybe-call-dep">\r
582             <param name="call.built.properties" value="${built-jar.properties}"/>\r
583             <param location="${project.MediaInfoWrapper}" name="call.subproject"/>\r
584             <param location="${project.MediaInfoWrapper}/build.xml" name="call.script"/>\r
585             <param name="call.target" value="jar"/>\r
586             <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>\r
587         </antcall>\r
588         <antcall target="-maybe-call-dep">\r
589             <param name="call.built.properties" value="${built-jar.properties}"/>\r
590             <param location="${project.NicoBrowser}" name="call.subproject"/>\r
591             <param location="${project.NicoBrowser}/build.xml" name="call.script"/>\r
592             <param name="call.target" value="jar"/>\r
593             <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>\r
594         </antcall>\r
595     </target>\r
596     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>\r
597     <target depends="init" name="-check-automatic-build">\r
598         <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>\r
599     </target>\r
600     <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">\r
601         <antcall target="clean"/>\r
602     </target>\r
603     <target depends="init,deps-jar" name="-pre-pre-compile">\r
604         <mkdir dir="${build.classes.dir}"/>\r
605     </target>\r
606     <target name="-pre-compile">\r
607         <!-- Empty placeholder for easier customization. -->\r
608         <!-- You can override this target in the ../build.xml file. -->\r
609     </target>\r
610     <target if="do.depend.true" name="-compile-depend">\r
611         <pathconvert property="build.generated.subdirs">\r
612             <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
613                 <include name="*"/>\r
614             </dirset>\r
615         </pathconvert>\r
616         <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>\r
617     </target>\r
618     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">\r
619         <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>\r
620         <copy todir="${build.classes.dir}">\r
621             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
622         </copy>\r
623     </target>\r
624     <target if="has.persistence.xml" name="-copy-persistence-xml">\r
625         <mkdir dir="${build.classes.dir}/META-INF"/>\r
626         <copy todir="${build.classes.dir}/META-INF">\r
627             <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>\r
628         </copy>\r
629     </target>\r
630     <target name="-post-compile">\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,-do-compile,-post-compile" description="Compile project." name="compile"/>\r
635     <target name="-pre-compile-single">\r
636         <!-- Empty placeholder for easier customization. -->\r
637         <!-- You can override this target in the ../build.xml file. -->\r
638     </target>\r
639     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">\r
640         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
641         <j2seproject3:force-recompile/>\r
642         <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>\r
643     </target>\r
644     <target name="-post-compile-single">\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,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>\r
649     <!--\r
650                 ====================\r
651                 JAR BUILDING SECTION\r
652                 ====================\r
653             -->\r
654     <target depends="init" name="-pre-pre-jar">\r
655         <dirname file="${dist.jar}" property="dist.jar.dir"/>\r
656         <mkdir dir="${dist.jar.dir}"/>\r
657     </target>\r
658     <target name="-pre-jar">\r
659         <!-- Empty placeholder for easier customization. -->\r
660         <!-- You can override this target in the ../build.xml file. -->\r
661     </target>\r
662     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">\r
663         <j2seproject1:jar/>\r
664     </target>\r
665     <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
666         <j2seproject1:jar manifest="${manifest.file}"/>\r
667     </target>\r
668     <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
669         <j2seproject1:jar manifest="${manifest.file}">\r
670             <j2seproject1:manifest>\r
671                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>\r
672             </j2seproject1:manifest>\r
673         </j2seproject1:jar>\r
674         <echo level="info">To run this application from the command line without Ant, try:</echo>\r
675         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
676         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
677         <pathconvert property="run.classpath.with.dist.jar">\r
678             <path path="${run.classpath}"/>\r
679             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>\r
680         </pathconvert>\r
681         <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>\r
682     </target>\r
683     <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">\r
684         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>\r
685         <touch file="${tmp.manifest.file}" verbose="false"/>\r
686     </target>\r
687     <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">\r
688         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>\r
689         <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>\r
690     </target>\r
691     <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
692         <manifest file="${tmp.manifest.file}" mode="update">\r
693             <attribute name="Main-Class" value="${main.class}"/>\r
694         </manifest>\r
695     </target>\r
696     <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
697         <basename file="${application.splash}" property="splashscreen.basename"/>\r
698         <mkdir dir="${build.classes.dir}/META-INF"/>\r
699         <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>\r
700         <manifest file="${tmp.manifest.file}" mode="update">\r
701             <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>\r
702         </manifest>\r
703     </target>\r
704     <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
705         <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>\r
706         <echo level="info">To run this application from the command line without Ant, try:</echo>\r
707         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
708         <echo level="info">java -jar "${dist.jar.resolved}"</echo>\r
709     </target>\r
710     <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">\r
711         <delete>\r
712             <fileset file="${tmp.manifest.file}"/>\r
713         </delete>\r
714     </target>\r
715     <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
716     <target name="-post-jar">\r
717         <!-- Empty placeholder for easier customization. -->\r
718         <!-- You can override this target in the ../build.xml file. -->\r
719     </target>\r
720     <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
721     <!--\r
722                 =================\r
723                 EXECUTION SECTION\r
724                 =================\r
725             -->\r
726     <target depends="init,compile" description="Run a main class." name="run">\r
727         <j2seproject1:java>\r
728             <customize>\r
729                 <arg line="${application.args}"/>\r
730             </customize>\r
731         </j2seproject1:java>\r
732     </target>\r
733     <target name="-do-not-recompile">\r
734         <property name="javac.includes.binary" value=""/>\r
735     </target>\r
736     <target depends="init,compile-single" name="run-single">\r
737         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
738         <j2seproject1:java classname="${run.class}"/>\r
739     </target>\r
740     <target depends="init,compile-test-single" name="run-test-with-main">\r
741         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
742         <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>\r
743     </target>\r
744     <!--\r
745                 =================\r
746                 DEBUGGING SECTION\r
747                 =================\r
748             -->\r
749     <target depends="init" if="netbeans.home" name="-debug-start-debugger">\r
750         <j2seproject1:nbjpdastart name="${debug.class}"/>\r
751     </target>\r
752     <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">\r
753         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>\r
754     </target>\r
755     <target depends="init,compile" name="-debug-start-debuggee">\r
756         <j2seproject3:debug>\r
757             <customize>\r
758                 <arg line="${application.args}"/>\r
759             </customize>\r
760         </j2seproject3:debug>\r
761     </target>\r
762     <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>\r
763     <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">\r
764         <j2seproject1:nbjpdastart stopclassname="${main.class}"/>\r
765     </target>\r
766     <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>\r
767     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">\r
768         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
769         <j2seproject3:debug classname="${debug.class}"/>\r
770     </target>\r
771     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>\r
772     <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">\r
773         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
774         <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>\r
775     </target>\r
776     <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
777     <target depends="init" name="-pre-debug-fix">\r
778         <fail unless="fix.includes">Must set fix.includes</fail>\r
779         <property name="javac.includes" value="${fix.includes}.java"/>\r
780     </target>\r
781     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">\r
782         <j2seproject1:nbjpdareload/>\r
783     </target>\r
784     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>\r
785     <!--\r
786                 =================\r
787                 PROFILING SECTION\r
788                 =================\r
789             -->\r
790     <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">\r
791         <nbprofiledirect>\r
792             <classpath>\r
793                 <path path="${run.classpath}"/>\r
794             </classpath>\r
795         </nbprofiledirect>\r
796         <profile/>\r
797     </target>\r
798     <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">\r
799         <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>\r
800         <nbprofiledirect>\r
801             <classpath>\r
802                 <path path="${run.classpath}"/>\r
803             </classpath>\r
804         </nbprofiledirect>\r
805         <profile classname="${profile.class}"/>\r
806     </target>\r
807     <!--\r
808                 =========================\r
809                 APPLET PROFILING  SECTION\r
810                 =========================\r
811             -->\r
812     <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">\r
813         <nbprofiledirect>\r
814             <classpath>\r
815                 <path path="${run.classpath}"/>\r
816             </classpath>\r
817         </nbprofiledirect>\r
818         <profile classname="sun.applet.AppletViewer">\r
819             <customize>\r
820                 <arg value="${applet.url}"/>\r
821             </customize>\r
822         </profile>\r
823     </target>\r
824     <!--\r
825                 =========================\r
826                 TESTS PROFILING  SECTION\r
827                 =========================\r
828             -->\r
829     <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">\r
830         <nbprofiledirect>\r
831             <classpath>\r
832                 <path path="${run.test.classpath}"/>\r
833             </classpath>\r
834         </nbprofiledirect>\r
835         <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">\r
836             <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>\r
837             <jvmarg value="${profiler.info.jvmargs.agent}"/>\r
838             <jvmarg line="${profiler.info.jvmargs}"/>\r
839             <test name="${profile.class}"/>\r
840             <classpath>\r
841                 <path path="${run.test.classpath}"/>\r
842             </classpath>\r
843             <syspropertyset>\r
844                 <propertyref prefix="test-sys-prop."/>\r
845                 <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
846             </syspropertyset>\r
847             <formatter type="brief" usefile="false"/>\r
848             <formatter type="xml"/>\r
849         </junit>\r
850     </target>\r
851     <!--\r
852                 ===============\r
853                 JAVADOC SECTION\r
854                 ===============\r
855             -->\r
856     <target depends="init" if="have.sources" name="-javadoc-build">\r
857         <mkdir dir="${dist.javadoc.dir}"/>\r
858         <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">\r
859             <and>\r
860                 <isset property="endorsed.classpath.cmd.line.arg"/>\r
861                 <not>\r
862                     <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>\r
863                 </not>\r
864             </and>\r
865         </condition>\r
866         <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
867             <classpath>\r
868                 <path path="${javac.classpath}"/>\r
869             </classpath>\r
870             <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">\r
871                 <filename name="**/*.java"/>\r
872             </fileset>\r
873             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
874                 <include name="**/*.java"/>\r
875                 <exclude name="*.java"/>\r
876             </fileset>\r
877             <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>\r
878         </javadoc>\r
879         <copy todir="${dist.javadoc.dir}">\r
880             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">\r
881                 <filename name="**/doc-files/**"/>\r
882             </fileset>\r
883             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
884                 <include name="**/doc-files/**"/>\r
885             </fileset>\r
886         </copy>\r
887     </target>\r
888     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">\r
889         <nbbrowse file="${dist.javadoc.dir}/index.html"/>\r
890     </target>\r
891     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>\r
892     <!--\r
893                 =========================\r
894                 JUNIT COMPILATION SECTION\r
895                 =========================\r
896             -->\r
897     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">\r
898         <mkdir dir="${build.test.classes.dir}"/>\r
899     </target>\r
900     <target name="-pre-compile-test">\r
901         <!-- Empty placeholder for easier customization. -->\r
902         <!-- You can override this target in the ../build.xml file. -->\r
903     </target>\r
904     <target if="do.depend.true" name="-compile-test-depend">\r
905         <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>\r
906     </target>\r
907     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">\r
908         <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
909         <copy todir="${build.test.classes.dir}">\r
910             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
911         </copy>\r
912     </target>\r
913     <target name="-post-compile-test">\r
914         <!-- Empty placeholder for easier customization. -->\r
915         <!-- You can override this target in the ../build.xml file. -->\r
916     </target>\r
917     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>\r
918     <target name="-pre-compile-test-single">\r
919         <!-- Empty placeholder for easier customization. -->\r
920         <!-- You can override this target in the ../build.xml file. -->\r
921     </target>\r
922     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">\r
923         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
924         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>\r
925         <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
926         <copy todir="${build.test.classes.dir}">\r
927             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
928         </copy>\r
929     </target>\r
930     <target name="-post-compile-test-single">\r
931         <!-- Empty placeholder for easier customization. -->\r
932         <!-- You can override this target in the ../build.xml file. -->\r
933     </target>\r
934     <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
935     <!--\r
936                 =======================\r
937                 JUNIT EXECUTION SECTION\r
938                 =======================\r
939             -->\r
940     <target depends="init" if="have.tests" name="-pre-test-run">\r
941         <mkdir dir="${build.test.results.dir}"/>\r
942     </target>\r
943     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">\r
944         <j2seproject3:junit testincludes="**/*Test.java"/>\r
945     </target>\r
946     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">\r
947         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
948     </target>\r
949     <target depends="init" if="have.tests" name="test-report"/>\r
950     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>\r
951     <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
952     <target depends="init" if="have.tests" name="-pre-test-run-single">\r
953         <mkdir dir="${build.test.results.dir}"/>\r
954     </target>\r
955     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">\r
956         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>\r
957         <j2seproject3:junit excludes="" includes="${test.includes}"/>\r
958     </target>\r
959     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">\r
960         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
961     </target>\r
962     <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
963     <!--\r
964                 =======================\r
965                 JUNIT DEBUGGING SECTION\r
966                 =======================\r
967             -->\r
968     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">\r
969         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>\r
970         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>\r
971         <delete file="${test.report.file}"/>\r
972         <mkdir dir="${build.test.results.dir}"/>\r
973         <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
974             <customize>\r
975                 <syspropertyset>\r
976                     <propertyref prefix="test-sys-prop."/>\r
977                     <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
978                 </syspropertyset>\r
979                 <arg value="${test.class}"/>\r
980                 <arg value="showoutput=true"/>\r
981                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>\r
982                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>\r
983             </customize>\r
984         </j2seproject3:debug>\r
985     </target>\r
986     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">\r
987         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>\r
988     </target>\r
989     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>\r
990     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">\r
991         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>\r
992     </target>\r
993     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>\r
994     <!--\r
995                 =========================\r
996                 APPLET EXECUTION SECTION\r
997                 =========================\r
998             -->\r
999     <target depends="init,compile-single" name="run-applet">\r
1000         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
1001         <j2seproject1:java classname="sun.applet.AppletViewer">\r
1002             <customize>\r
1003                 <arg value="${applet.url}"/>\r
1004             </customize>\r
1005         </j2seproject1:java>\r
1006     </target>\r
1007     <!--\r
1008                 =========================\r
1009                 APPLET DEBUGGING  SECTION\r
1010                 =========================\r
1011             -->\r
1012     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">\r
1013         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
1014         <j2seproject3:debug classname="sun.applet.AppletViewer">\r
1015             <customize>\r
1016                 <arg value="${applet.url}"/>\r
1017             </customize>\r
1018         </j2seproject3:debug>\r
1019     </target>\r
1020     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>\r
1021     <!--\r
1022                 ===============\r
1023                 CLEANUP SECTION\r
1024                 ===============\r
1025             -->\r
1026     <target name="-deps-clean-init" unless="built-clean.properties">\r
1027         <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>\r
1028         <delete file="${built-clean.properties}" quiet="true"/>\r
1029     </target>\r
1030     <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">\r
1031         <echo level="warn" message="Cycle detected: Saccubus was already built"/>\r
1032     </target>\r
1033     <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">\r
1034         <mkdir dir="${build.dir}"/>\r
1035         <touch file="${built-clean.properties}" verbose="false"/>\r
1036         <property file="${built-clean.properties}" prefix="already.built.clean."/>\r
1037         <antcall target="-warn-already-built-clean"/>\r
1038         <propertyfile file="${built-clean.properties}">\r
1039             <entry key="${basedir}" value=""/>\r
1040         </propertyfile>\r
1041         <antcall target="-maybe-call-dep">\r
1042             <param name="call.built.properties" value="${built-clean.properties}"/>\r
1043             <param location="${project.MediaInfoWrapper}" name="call.subproject"/>\r
1044             <param location="${project.MediaInfoWrapper}/build.xml" name="call.script"/>\r
1045             <param name="call.target" value="clean"/>\r
1046             <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>\r
1047         </antcall>\r
1048         <antcall target="-maybe-call-dep">\r
1049             <param name="call.built.properties" value="${built-clean.properties}"/>\r
1050             <param location="${project.NicoBrowser}" name="call.subproject"/>\r
1051             <param location="${project.NicoBrowser}/build.xml" name="call.script"/>\r
1052             <param name="call.target" value="clean"/>\r
1053             <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>\r
1054         </antcall>\r
1055     </target>\r
1056     <target depends="init" name="-do-clean">\r
1057         <delete dir="${build.dir}"/>\r
1058         <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>\r
1059     </target>\r
1060     <target name="-post-clean">\r
1061         <!-- Empty placeholder for easier customization. -->\r
1062         <!-- You can override this target in the ../build.xml file. -->\r
1063     </target>\r
1064     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>\r
1065     <target name="-check-call-dep">\r
1066         <property file="${call.built.properties}" prefix="already.built."/>\r
1067         <condition property="should.call.dep">\r
1068             <not>\r
1069                 <isset property="already.built.${call.subproject}"/>\r
1070             </not>\r
1071         </condition>\r
1072     </target>\r
1073     <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">\r
1074         <ant antfile="${call.script}" inheritall="false" target="${call.target}">\r
1075             <propertyset>\r
1076                 <propertyref prefix="transfer."/>\r
1077                 <mapper from="transfer.*" to="*" type="glob"/>\r
1078             </propertyset>\r
1079         </ant>\r
1080     </target>\r
1081 </project>\r