OSDN Git Service

GUIからavfilterオプションを設定できるようにする
[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.NicoBrowser}" name="call.subproject"/>\r
582             <param location="${project.NicoBrowser}/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     </target>\r
587     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>\r
588     <target depends="init" name="-check-automatic-build">\r
589         <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>\r
590     </target>\r
591     <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">\r
592         <antcall target="clean"/>\r
593     </target>\r
594     <target depends="init,deps-jar" name="-pre-pre-compile">\r
595         <mkdir dir="${build.classes.dir}"/>\r
596     </target>\r
597     <target name="-pre-compile">\r
598         <!-- Empty placeholder for easier customization. -->\r
599         <!-- You can override this target in the ../build.xml file. -->\r
600     </target>\r
601     <target if="do.depend.true" name="-compile-depend">\r
602         <pathconvert property="build.generated.subdirs">\r
603             <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
604                 <include name="*"/>\r
605             </dirset>\r
606         </pathconvert>\r
607         <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>\r
608     </target>\r
609     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">\r
610         <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>\r
611         <copy todir="${build.classes.dir}">\r
612             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
613         </copy>\r
614     </target>\r
615     <target if="has.persistence.xml" name="-copy-persistence-xml">\r
616         <mkdir dir="${build.classes.dir}/META-INF"/>\r
617         <copy todir="${build.classes.dir}/META-INF">\r
618             <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>\r
619         </copy>\r
620     </target>\r
621     <target name="-post-compile">\r
622         <!-- Empty placeholder for easier customization. -->\r
623         <!-- You can override this target in the ../build.xml file. -->\r
624     </target>\r
625     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>\r
626     <target name="-pre-compile-single">\r
627         <!-- Empty placeholder for easier customization. -->\r
628         <!-- You can override this target in the ../build.xml file. -->\r
629     </target>\r
630     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">\r
631         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
632         <j2seproject3:force-recompile/>\r
633         <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>\r
634     </target>\r
635     <target name="-post-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,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>\r
640     <!--\r
641                 ====================\r
642                 JAR BUILDING SECTION\r
643                 ====================\r
644             -->\r
645     <target depends="init" name="-pre-pre-jar">\r
646         <dirname file="${dist.jar}" property="dist.jar.dir"/>\r
647         <mkdir dir="${dist.jar.dir}"/>\r
648     </target>\r
649     <target name="-pre-jar">\r
650         <!-- Empty placeholder for easier customization. -->\r
651         <!-- You can override this target in the ../build.xml file. -->\r
652     </target>\r
653     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">\r
654         <j2seproject1:jar/>\r
655     </target>\r
656     <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
657         <j2seproject1:jar manifest="${manifest.file}"/>\r
658     </target>\r
659     <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
660         <j2seproject1:jar manifest="${manifest.file}">\r
661             <j2seproject1:manifest>\r
662                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>\r
663             </j2seproject1:manifest>\r
664         </j2seproject1:jar>\r
665         <echo level="info">To run this application from the command line without Ant, try:</echo>\r
666         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
667         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
668         <pathconvert property="run.classpath.with.dist.jar">\r
669             <path path="${run.classpath}"/>\r
670             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>\r
671         </pathconvert>\r
672         <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>\r
673     </target>\r
674     <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">\r
675         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>\r
676         <touch file="${tmp.manifest.file}" verbose="false"/>\r
677     </target>\r
678     <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">\r
679         <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>\r
680         <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>\r
681     </target>\r
682     <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
683         <manifest file="${tmp.manifest.file}" mode="update">\r
684             <attribute name="Main-Class" value="${main.class}"/>\r
685         </manifest>\r
686     </target>\r
687     <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
688         <basename file="${application.splash}" property="splashscreen.basename"/>\r
689         <mkdir dir="${build.classes.dir}/META-INF"/>\r
690         <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>\r
691         <manifest file="${tmp.manifest.file}" mode="update">\r
692             <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>\r
693         </manifest>\r
694     </target>\r
695     <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
696         <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>\r
697         <echo level="info">To run this application from the command line without Ant, try:</echo>\r
698         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
699         <echo level="info">java -jar "${dist.jar.resolved}"</echo>\r
700     </target>\r
701     <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">\r
702         <delete>\r
703             <fileset file="${tmp.manifest.file}"/>\r
704         </delete>\r
705     </target>\r
706     <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
707     <target name="-post-jar">\r
708         <!-- Empty placeholder for easier customization. -->\r
709         <!-- You can override this target in the ../build.xml file. -->\r
710     </target>\r
711     <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
712     <!--\r
713                 =================\r
714                 EXECUTION SECTION\r
715                 =================\r
716             -->\r
717     <target depends="init,compile" description="Run a main class." name="run">\r
718         <j2seproject1:java>\r
719             <customize>\r
720                 <arg line="${application.args}"/>\r
721             </customize>\r
722         </j2seproject1:java>\r
723     </target>\r
724     <target name="-do-not-recompile">\r
725         <property name="javac.includes.binary" value=""/>\r
726     </target>\r
727     <target depends="init,compile-single" name="run-single">\r
728         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
729         <j2seproject1:java classname="${run.class}"/>\r
730     </target>\r
731     <target depends="init,compile-test-single" name="run-test-with-main">\r
732         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
733         <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>\r
734     </target>\r
735     <!--\r
736                 =================\r
737                 DEBUGGING SECTION\r
738                 =================\r
739             -->\r
740     <target depends="init" if="netbeans.home" name="-debug-start-debugger">\r
741         <j2seproject1:nbjpdastart name="${debug.class}"/>\r
742     </target>\r
743     <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">\r
744         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>\r
745     </target>\r
746     <target depends="init,compile" name="-debug-start-debuggee">\r
747         <j2seproject3:debug>\r
748             <customize>\r
749                 <arg line="${application.args}"/>\r
750             </customize>\r
751         </j2seproject3:debug>\r
752     </target>\r
753     <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>\r
754     <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">\r
755         <j2seproject1:nbjpdastart stopclassname="${main.class}"/>\r
756     </target>\r
757     <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>\r
758     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">\r
759         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
760         <j2seproject3:debug classname="${debug.class}"/>\r
761     </target>\r
762     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>\r
763     <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">\r
764         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
765         <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>\r
766     </target>\r
767     <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
768     <target depends="init" name="-pre-debug-fix">\r
769         <fail unless="fix.includes">Must set fix.includes</fail>\r
770         <property name="javac.includes" value="${fix.includes}.java"/>\r
771     </target>\r
772     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">\r
773         <j2seproject1:nbjpdareload/>\r
774     </target>\r
775     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>\r
776     <!--\r
777                 =================\r
778                 PROFILING SECTION\r
779                 =================\r
780             -->\r
781     <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">\r
782         <nbprofiledirect>\r
783             <classpath>\r
784                 <path path="${run.classpath}"/>\r
785             </classpath>\r
786         </nbprofiledirect>\r
787         <profile/>\r
788     </target>\r
789     <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">\r
790         <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>\r
791         <nbprofiledirect>\r
792             <classpath>\r
793                 <path path="${run.classpath}"/>\r
794             </classpath>\r
795         </nbprofiledirect>\r
796         <profile classname="${profile.class}"/>\r
797     </target>\r
798     <!--\r
799                 =========================\r
800                 APPLET PROFILING  SECTION\r
801                 =========================\r
802             -->\r
803     <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">\r
804         <nbprofiledirect>\r
805             <classpath>\r
806                 <path path="${run.classpath}"/>\r
807             </classpath>\r
808         </nbprofiledirect>\r
809         <profile classname="sun.applet.AppletViewer">\r
810             <customize>\r
811                 <arg value="${applet.url}"/>\r
812             </customize>\r
813         </profile>\r
814     </target>\r
815     <!--\r
816                 =========================\r
817                 TESTS PROFILING  SECTION\r
818                 =========================\r
819             -->\r
820     <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">\r
821         <nbprofiledirect>\r
822             <classpath>\r
823                 <path path="${run.test.classpath}"/>\r
824             </classpath>\r
825         </nbprofiledirect>\r
826         <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">\r
827             <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>\r
828             <jvmarg value="${profiler.info.jvmargs.agent}"/>\r
829             <jvmarg line="${profiler.info.jvmargs}"/>\r
830             <test name="${profile.class}"/>\r
831             <classpath>\r
832                 <path path="${run.test.classpath}"/>\r
833             </classpath>\r
834             <syspropertyset>\r
835                 <propertyref prefix="test-sys-prop."/>\r
836                 <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
837             </syspropertyset>\r
838             <formatter type="brief" usefile="false"/>\r
839             <formatter type="xml"/>\r
840         </junit>\r
841     </target>\r
842     <!--\r
843                 ===============\r
844                 JAVADOC SECTION\r
845                 ===============\r
846             -->\r
847     <target depends="init" if="have.sources" name="-javadoc-build">\r
848         <mkdir dir="${dist.javadoc.dir}"/>\r
849         <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
850             <classpath>\r
851                 <path path="${javac.classpath}"/>\r
852             </classpath>\r
853             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">\r
854                 <filename name="**/*.java"/>\r
855             </fileset>\r
856             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
857                 <include name="**/*.java"/>\r
858             </fileset>\r
859         </javadoc>\r
860         <copy todir="${dist.javadoc.dir}">\r
861             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">\r
862                 <filename name="**/doc-files/**"/>\r
863             </fileset>\r
864             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
865                 <include name="**/doc-files/**"/>\r
866             </fileset>\r
867         </copy>\r
868     </target>\r
869     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">\r
870         <nbbrowse file="${dist.javadoc.dir}/index.html"/>\r
871     </target>\r
872     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>\r
873     <!--\r
874                 =========================\r
875                 JUNIT COMPILATION SECTION\r
876                 =========================\r
877             -->\r
878     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">\r
879         <mkdir dir="${build.test.classes.dir}"/>\r
880     </target>\r
881     <target name="-pre-compile-test">\r
882         <!-- Empty placeholder for easier customization. -->\r
883         <!-- You can override this target in the ../build.xml file. -->\r
884     </target>\r
885     <target if="do.depend.true" name="-compile-test-depend">\r
886         <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>\r
887     </target>\r
888     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">\r
889         <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
890         <copy todir="${build.test.classes.dir}">\r
891             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
892         </copy>\r
893     </target>\r
894     <target name="-post-compile-test">\r
895         <!-- Empty placeholder for easier customization. -->\r
896         <!-- You can override this target in the ../build.xml file. -->\r
897     </target>\r
898     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>\r
899     <target name="-pre-compile-test-single">\r
900         <!-- Empty placeholder for easier customization. -->\r
901         <!-- You can override this target in the ../build.xml file. -->\r
902     </target>\r
903     <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">\r
904         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
905         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>\r
906         <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
907         <copy todir="${build.test.classes.dir}">\r
908             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
909         </copy>\r
910     </target>\r
911     <target name="-post-compile-test-single">\r
912         <!-- Empty placeholder for easier customization. -->\r
913         <!-- You can override this target in the ../build.xml file. -->\r
914     </target>\r
915     <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
916     <!--\r
917                 =======================\r
918                 JUNIT EXECUTION SECTION\r
919                 =======================\r
920             -->\r
921     <target depends="init" if="have.tests" name="-pre-test-run">\r
922         <mkdir dir="${build.test.results.dir}"/>\r
923     </target>\r
924     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">\r
925         <j2seproject3:junit testincludes="**/*Test.java"/>\r
926     </target>\r
927     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">\r
928         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
929     </target>\r
930     <target depends="init" if="have.tests" name="test-report"/>\r
931     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>\r
932     <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
933     <target depends="init" if="have.tests" name="-pre-test-run-single">\r
934         <mkdir dir="${build.test.results.dir}"/>\r
935     </target>\r
936     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">\r
937         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>\r
938         <j2seproject3:junit excludes="" includes="${test.includes}"/>\r
939     </target>\r
940     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">\r
941         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
942     </target>\r
943     <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
944     <!--\r
945                 =======================\r
946                 JUNIT DEBUGGING SECTION\r
947                 =======================\r
948             -->\r
949     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">\r
950         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>\r
951         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>\r
952         <delete file="${test.report.file}"/>\r
953         <mkdir dir="${build.test.results.dir}"/>\r
954         <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
955             <customize>\r
956                 <syspropertyset>\r
957                     <propertyref prefix="test-sys-prop."/>\r
958                     <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
959                 </syspropertyset>\r
960                 <arg value="${test.class}"/>\r
961                 <arg value="showoutput=true"/>\r
962                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>\r
963                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>\r
964             </customize>\r
965         </j2seproject3:debug>\r
966     </target>\r
967     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">\r
968         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>\r
969     </target>\r
970     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>\r
971     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">\r
972         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>\r
973     </target>\r
974     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>\r
975     <!--\r
976                 =========================\r
977                 APPLET EXECUTION SECTION\r
978                 =========================\r
979             -->\r
980     <target depends="init,compile-single" name="run-applet">\r
981         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
982         <j2seproject1:java classname="sun.applet.AppletViewer">\r
983             <customize>\r
984                 <arg value="${applet.url}"/>\r
985             </customize>\r
986         </j2seproject1:java>\r
987     </target>\r
988     <!--\r
989                 =========================\r
990                 APPLET DEBUGGING  SECTION\r
991                 =========================\r
992             -->\r
993     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">\r
994         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
995         <j2seproject3:debug classname="sun.applet.AppletViewer">\r
996             <customize>\r
997                 <arg value="${applet.url}"/>\r
998             </customize>\r
999         </j2seproject3:debug>\r
1000     </target>\r
1001     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>\r
1002     <!--\r
1003                 ===============\r
1004                 CLEANUP SECTION\r
1005                 ===============\r
1006             -->\r
1007     <target name="-deps-clean-init" unless="built-clean.properties">\r
1008         <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>\r
1009         <delete file="${built-clean.properties}" quiet="true"/>\r
1010     </target>\r
1011     <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">\r
1012         <echo level="warn" message="Cycle detected: Saccubus was already built"/>\r
1013     </target>\r
1014     <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">\r
1015         <mkdir dir="${build.dir}"/>\r
1016         <touch file="${built-clean.properties}" verbose="false"/>\r
1017         <property file="${built-clean.properties}" prefix="already.built.clean."/>\r
1018         <antcall target="-warn-already-built-clean"/>\r
1019         <propertyfile file="${built-clean.properties}">\r
1020             <entry key="${basedir}" value=""/>\r
1021         </propertyfile>\r
1022         <antcall target="-maybe-call-dep">\r
1023             <param name="call.built.properties" value="${built-clean.properties}"/>\r
1024             <param location="${project.NicoBrowser}" name="call.subproject"/>\r
1025             <param location="${project.NicoBrowser}/build.xml" name="call.script"/>\r
1026             <param name="call.target" value="clean"/>\r
1027             <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>\r
1028         </antcall>\r
1029     </target>\r
1030     <target depends="init" name="-do-clean">\r
1031         <delete dir="${build.dir}"/>\r
1032         <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>\r
1033     </target>\r
1034     <target name="-post-clean">\r
1035         <!-- Empty placeholder for easier customization. -->\r
1036         <!-- You can override this target in the ../build.xml file. -->\r
1037     </target>\r
1038     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>\r
1039     <target name="-check-call-dep">\r
1040         <property file="${call.built.properties}" prefix="already.built."/>\r
1041         <condition property="should.call.dep">\r
1042             <not>\r
1043                 <isset property="already.built.${call.subproject}"/>\r
1044             </not>\r
1045         </condition>\r
1046     </target>\r
1047     <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">\r
1048         <ant antfile="${call.script}" inheritall="false" target="${call.target}">\r
1049             <propertyset>\r
1050                 <propertyref prefix="transfer."/>\r
1051                 <mapper from="transfer.*" to="*" type="glob"/>\r
1052             </propertyset>\r
1053         </ant>\r
1054     </target>\r
1055 </project>\r