OSDN Git Service

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