OSDN Git Service

merge.
[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="main.class.available">\r
59             <and>\r
60                 <isset property="main.class"/>\r
61                 <not>\r
62                     <equals arg1="${main.class}" arg2="" trim="true"/>\r
63                 </not>\r
64             </and>\r
65         </condition>\r
66         <condition property="manifest.available+main.class">\r
67             <and>\r
68                 <isset property="manifest.available"/>\r
69                 <isset property="main.class.available"/>\r
70             </and>\r
71         </condition>\r
72         <condition property="do.mkdist">\r
73             <and>\r
74                 <isset property="libs.CopyLibs.classpath"/>\r
75                 <not>\r
76                     <istrue value="${mkdist.disabled}"/>\r
77                 </not>\r
78             </and>\r
79         </condition>\r
80         <condition property="manifest.available+main.class+mkdist.available">\r
81             <and>\r
82                 <istrue value="${manifest.available+main.class}"/>\r
83                 <isset property="do.mkdist"/>\r
84             </and>\r
85         </condition>\r
86         <condition property="manifest.available+mkdist.available">\r
87             <and>\r
88                 <istrue value="${manifest.available}"/>\r
89                 <isset property="do.mkdist"/>\r
90             </and>\r
91         </condition>\r
92         <condition property="manifest.available-mkdist.available">\r
93             <or>\r
94                 <istrue value="${manifest.available}"/>\r
95                 <isset property="do.mkdist"/>\r
96             </or>\r
97         </condition>\r
98         <condition property="manifest.available+main.class-mkdist.available">\r
99             <or>\r
100                 <istrue value="${manifest.available+main.class}"/>\r
101                 <isset property="do.mkdist"/>\r
102             </or>\r
103         </condition>\r
104         <condition property="have.tests">\r
105             <or>\r
106                 <available file="${test.src.dir}"/>\r
107             </or>\r
108         </condition>\r
109         <condition property="have.sources">\r
110             <or>\r
111                 <available file="${src.dir}"/>\r
112             </or>\r
113         </condition>\r
114         <condition property="netbeans.home+have.tests">\r
115             <and>\r
116                 <isset property="netbeans.home"/>\r
117                 <isset property="have.tests"/>\r
118             </and>\r
119         </condition>\r
120         <condition property="no.javadoc.preview">\r
121             <and>\r
122                 <isset property="javadoc.preview"/>\r
123                 <isfalse value="${javadoc.preview}"/>\r
124             </and>\r
125         </condition>\r
126         <property name="run.jvmargs" value=""/>\r
127         <property name="javac.compilerargs" value=""/>\r
128         <property name="work.dir" value="${basedir}"/>\r
129         <condition property="no.deps">\r
130             <and>\r
131                 <istrue value="${no.dependencies}"/>\r
132             </and>\r
133         </condition>\r
134         <property name="javac.debug" value="true"/>\r
135         <property name="javadoc.preview" value="true"/>\r
136         <property name="application.args" value=""/>\r
137         <property name="source.encoding" value="${file.encoding}"/>\r
138         <property name="runtime.encoding" value="${source.encoding}"/>\r
139         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">\r
140             <and>\r
141                 <isset property="javadoc.encoding"/>\r
142                 <not>\r
143                     <equals arg1="${javadoc.encoding}" arg2=""/>\r
144                 </not>\r
145             </and>\r
146         </condition>\r
147         <property name="javadoc.encoding.used" value="${source.encoding}"/>\r
148         <property name="includes" value="**"/>\r
149         <property name="excludes" value=""/>\r
150         <property name="do.depend" value="false"/>\r
151         <condition property="do.depend.true">\r
152             <istrue value="${do.depend}"/>\r
153         </condition>\r
154         <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>\r
155         <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">\r
156             <length length="0" string="${endorsed.classpath}" when="greater"/>\r
157         </condition>\r
158         <property name="javac.fork" value="false"/>\r
159     </target>\r
160     <target name="-post-init">\r
161         <!-- Empty placeholder for easier customization. -->\r
162         <!-- You can override this target in the ../build.xml file. -->\r
163     </target>\r
164     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">\r
165         <fail unless="src.dir">Must set src.dir</fail>\r
166         <fail unless="test.src.dir">Must set test.src.dir</fail>\r
167         <fail unless="build.dir">Must set build.dir</fail>\r
168         <fail unless="dist.dir">Must set dist.dir</fail>\r
169         <fail unless="build.classes.dir">Must set build.classes.dir</fail>\r
170         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>\r
171         <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>\r
172         <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>\r
173         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>\r
174         <fail unless="dist.jar">Must set dist.jar</fail>\r
175     </target>\r
176     <target name="-init-macrodef-property">\r
177         <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">\r
178             <attribute name="name"/>\r
179             <attribute name="value"/>\r
180             <sequential>\r
181                 <property name="@{name}" value="${@{value}}"/>\r
182             </sequential>\r
183         </macrodef>\r
184     </target>\r
185     <target name="-init-macrodef-javac">\r
186         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">\r
187             <attribute default="${src.dir}" name="srcdir"/>\r
188             <attribute default="${build.classes.dir}" name="destdir"/>\r
189             <attribute default="${javac.classpath}" name="classpath"/>\r
190             <attribute default="${includes}" name="includes"/>\r
191             <attribute default="${excludes}" name="excludes"/>\r
192             <attribute default="${javac.debug}" name="debug"/>\r
193             <attribute default="${empty.dir}" name="sourcepath"/>\r
194             <attribute default="${empty.dir}" name="gensrcdir"/>\r
195             <element name="customize" optional="true"/>\r
196             <sequential>\r
197                 <property location="${build.dir}/empty" name="empty.dir"/>\r
198                 <mkdir dir="${empty.dir}"/>\r
199                 <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
200                     <src>\r
201                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">\r
202                             <include name="*"/>\r
203                         </dirset>\r
204                     </src>\r
205                     <classpath>\r
206                         <path path="@{classpath}"/>\r
207                     </classpath>\r
208                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>\r
209                     <compilerarg line="${javac.compilerargs}"/>\r
210                     <customize/>\r
211                 </javac>\r
212             </sequential>\r
213         </macrodef>\r
214         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">\r
215             <attribute default="${src.dir}" name="srcdir"/>\r
216             <attribute default="${build.classes.dir}" name="destdir"/>\r
217             <attribute default="${javac.classpath}" name="classpath"/>\r
218             <sequential>\r
219                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">\r
220                     <classpath>\r
221                         <path path="@{classpath}"/>\r
222                     </classpath>\r
223                 </depend>\r
224             </sequential>\r
225         </macrodef>\r
226         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">\r
227             <attribute default="${build.classes.dir}" name="destdir"/>\r
228             <sequential>\r
229                 <fail unless="javac.includes">Must set javac.includes</fail>\r
230                 <pathconvert pathsep="," property="javac.includes.binary">\r
231                     <path>\r
232                         <filelist dir="@{destdir}" files="${javac.includes}"/>\r
233                     </path>\r
234                     <globmapper from="*.java" to="*.class"/>\r
235                 </pathconvert>\r
236                 <delete>\r
237                     <files includes="${javac.includes.binary}"/>\r
238                 </delete>\r
239             </sequential>\r
240         </macrodef>\r
241     </target>\r
242     <target name="-init-macrodef-junit">\r
243         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">\r
244             <attribute default="${includes}" name="includes"/>\r
245             <attribute default="${excludes}" name="excludes"/>\r
246             <attribute default="**" name="testincludes"/>\r
247             <sequential>\r
248                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">\r
249                     <batchtest todir="${build.test.results.dir}">\r
250                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">\r
251                             <filename name="@{testincludes}"/>\r
252                         </fileset>\r
253                     </batchtest>\r
254                     <classpath>\r
255                         <path path="${run.test.classpath}"/>\r
256                     </classpath>\r
257                     <syspropertyset>\r
258                         <propertyref prefix="test-sys-prop."/>\r
259                         <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
260                     </syspropertyset>\r
261                     <formatter type="brief" usefile="false"/>\r
262                     <formatter type="xml"/>\r
263                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
264                     <jvmarg line="${run.jvmargs}"/>\r
265                 </junit>\r
266             </sequential>\r
267         </macrodef>\r
268     </target>\r
269     <target depends="-init-debug-args" name="-init-macrodef-nbjpda">\r
270         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">\r
271             <attribute default="${main.class}" name="name"/>\r
272             <attribute default="${debug.classpath}" name="classpath"/>\r
273             <attribute default="" name="stopclassname"/>\r
274             <sequential>\r
275                 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">\r
276                     <classpath>\r
277                         <path path="@{classpath}"/>\r
278                     </classpath>\r
279                 </nbjpdastart>\r
280             </sequential>\r
281         </macrodef>\r
282         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">\r
283             <attribute default="${build.classes.dir}" name="dir"/>\r
284             <sequential>\r
285                 <nbjpdareload>\r
286                     <fileset dir="@{dir}" includes="${fix.classes}">\r
287                         <include name="${fix.includes}*.class"/>\r
288                     </fileset>\r
289                 </nbjpdareload>\r
290             </sequential>\r
291         </macrodef>\r
292     </target>\r
293     <target name="-init-debug-args">\r
294         <property name="version-output" value="java version &quot;${ant.java.version}"/>\r
295         <condition property="have-jdk-older-than-1.4">\r
296             <or>\r
297                 <contains string="${version-output}" substring="java version &quot;1.0"/>\r
298                 <contains string="${version-output}" substring="java version &quot;1.1"/>\r
299                 <contains string="${version-output}" substring="java version &quot;1.2"/>\r
300                 <contains string="${version-output}" substring="java version &quot;1.3"/>\r
301             </or>\r
302         </condition>\r
303         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">\r
304             <istrue value="${have-jdk-older-than-1.4}"/>\r
305         </condition>\r
306         <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">\r
307             <os family="windows"/>\r
308         </condition>\r
309         <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">\r
310             <isset property="debug.transport"/>\r
311         </condition>\r
312     </target>\r
313     <target depends="-init-debug-args" name="-init-macrodef-debug">\r
314         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">\r
315             <attribute default="${main.class}" name="classname"/>\r
316             <attribute default="${debug.classpath}" name="classpath"/>\r
317             <element name="customize" optional="true"/>\r
318             <sequential>\r
319                 <java classname="@{classname}" dir="${work.dir}" fork="true">\r
320                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
321                     <jvmarg line="${debug-args-line}"/>\r
322                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>\r
323                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>\r
324                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>\r
325                     <jvmarg line="${run.jvmargs}"/>\r
326                     <classpath>\r
327                         <path path="@{classpath}"/>\r
328                     </classpath>\r
329                     <syspropertyset>\r
330                         <propertyref prefix="run-sys-prop."/>\r
331                         <mapper from="run-sys-prop.*" to="*" type="glob"/>\r
332                     </syspropertyset>\r
333                     <customize/>\r
334                 </java>\r
335             </sequential>\r
336         </macrodef>\r
337     </target>\r
338     <target name="-init-macrodef-java">\r
339         <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">\r
340             <attribute default="${main.class}" name="classname"/>\r
341             <attribute default="${run.classpath}" name="classpath"/>\r
342             <element name="customize" optional="true"/>\r
343             <sequential>\r
344                 <java classname="@{classname}" dir="${work.dir}" fork="true">\r
345                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
346                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>\r
347                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>\r
348                     <jvmarg line="${run.jvmargs}"/>\r
349                     <classpath>\r
350                         <path path="@{classpath}"/>\r
351                     </classpath>\r
352                     <syspropertyset>\r
353                         <propertyref prefix="run-sys-prop."/>\r
354                         <mapper from="run-sys-prop.*" to="*" type="glob"/>\r
355                     </syspropertyset>\r
356                     <customize/>\r
357                 </java>\r
358             </sequential>\r
359         </macrodef>\r
360     </target>\r
361     <target name="-init-presetdef-jar">\r
362         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">\r
363             <jar compress="${jar.compress}" jarfile="${dist.jar}">\r
364                 <j2seproject1:fileset dir="${build.classes.dir}"/>\r
365             </jar>\r
366         </presetdef>\r
367     </target>\r
368     <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" name="init"/>\r
369     <!--\r
370                 ===================\r
371                 COMPILATION SECTION\r
372                 ===================\r
373             -->\r
374     <target name="-deps-jar-init" unless="built-jar.properties">\r
375         <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>\r
376         <delete file="${built-jar.properties}" quiet="true"/>\r
377     </target>\r
378     <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">\r
379         <echo level="warn" message="Cycle detected: Saccubus was already built"/>\r
380     </target>\r
381     <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">\r
382         <mkdir dir="${build.dir}"/>\r
383         <touch file="${built-jar.properties}" verbose="false"/>\r
384         <property file="${built-jar.properties}" prefix="already.built.jar."/>\r
385         <antcall target="-warn-already-built-jar"/>\r
386         <propertyfile file="${built-jar.properties}">\r
387             <entry key="${basedir}" value=""/>\r
388         </propertyfile>\r
389         <antcall target="-maybe-call-dep">\r
390             <param name="call.built.properties" value="${built-jar.properties}"/>\r
391             <param location="${project.NicoBrowser}" name="call.subproject"/>\r
392             <param location="${project.NicoBrowser}/build.xml" name="call.script"/>\r
393             <param name="call.target" value="jar"/>\r
394             <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>\r
395         </antcall>\r
396     </target>\r
397     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>\r
398     <target depends="init" name="-check-automatic-build">\r
399         <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>\r
400     </target>\r
401     <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">\r
402         <antcall target="clean"/>\r
403     </target>\r
404     <target depends="init,deps-jar" name="-pre-pre-compile">\r
405         <mkdir dir="${build.classes.dir}"/>\r
406     </target>\r
407     <target name="-pre-compile">\r
408         <!-- Empty placeholder for easier customization. -->\r
409         <!-- You can override this target in the ../build.xml file. -->\r
410     </target>\r
411     <target if="do.depend.true" name="-compile-depend">\r
412         <pathconvert property="build.generated.subdirs">\r
413             <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
414                 <include name="*"/>\r
415             </dirset>\r
416         </pathconvert>\r
417         <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>\r
418     </target>\r
419     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">\r
420         <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>\r
421         <copy todir="${build.classes.dir}">\r
422             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
423         </copy>\r
424     </target>\r
425     <target name="-post-compile">\r
426         <!-- Empty placeholder for easier customization. -->\r
427         <!-- You can override this target in the ../build.xml file. -->\r
428     </target>\r
429     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>\r
430     <target name="-pre-compile-single">\r
431         <!-- Empty placeholder for easier customization. -->\r
432         <!-- You can override this target in the ../build.xml file. -->\r
433     </target>\r
434     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">\r
435         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
436         <j2seproject3:force-recompile/>\r
437         <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>\r
438     </target>\r
439     <target name="-post-compile-single">\r
440         <!-- Empty placeholder for easier customization. -->\r
441         <!-- You can override this target in the ../build.xml file. -->\r
442     </target>\r
443     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>\r
444     <!--\r
445                 ====================\r
446                 JAR BUILDING SECTION\r
447                 ====================\r
448             -->\r
449     <target depends="init" name="-pre-pre-jar">\r
450         <dirname file="${dist.jar}" property="dist.jar.dir"/>\r
451         <mkdir dir="${dist.jar.dir}"/>\r
452     </target>\r
453     <target name="-pre-jar">\r
454         <!-- Empty placeholder for easier customization. -->\r
455         <!-- You can override this target in the ../build.xml file. -->\r
456     </target>\r
457     <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">\r
458         <j2seproject1:jar/>\r
459     </target>\r
460     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">\r
461         <j2seproject1:jar manifest="${manifest.file}"/>\r
462     </target>\r
463     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">\r
464         <j2seproject1:jar manifest="${manifest.file}">\r
465             <j2seproject1:manifest>\r
466                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>\r
467             </j2seproject1:manifest>\r
468         </j2seproject1:jar>\r
469         <echo>To run this application from the command line without Ant, try:</echo>\r
470         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
471         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
472         <pathconvert property="run.classpath.with.dist.jar">\r
473             <path path="${run.classpath}"/>\r
474             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>\r
475         </pathconvert>\r
476         <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>\r
477     </target>\r
478     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">\r
479         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
480         <pathconvert property="run.classpath.without.build.classes.dir">\r
481             <path path="${run.classpath}"/>\r
482             <map from="${build.classes.dir.resolved}" to=""/>\r
483         </pathconvert>\r
484         <pathconvert pathsep=" " property="jar.classpath">\r
485             <path path="${run.classpath.without.build.classes.dir}"/>\r
486             <chainedmapper>\r
487                 <flattenmapper/>\r
488                 <globmapper from="*" to="lib/*"/>\r
489             </chainedmapper>\r
490         </pathconvert>\r
491         <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>\r
492         <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">\r
493             <fileset dir="${build.classes.dir}"/>\r
494             <manifest>\r
495                 <attribute name="Main-Class" value="${main.class}"/>\r
496                 <attribute name="Class-Path" value="${jar.classpath}"/>\r
497             </manifest>\r
498         </copylibs>\r
499         <echo>To run this application from the command line without Ant, try:</echo>\r
500         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
501         <echo>java -jar "${dist.jar.resolved}"</echo>\r
502     </target>\r
503     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+mkdist.available" name="-do-jar-with-libraries-without-mainclass" unless="main.class.available">\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}" jarfile="${dist.jar}" manifest="${manifest.file}" 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             </manifest>\r
522         </copylibs>\r
523     </target>\r
524     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.mkdist" name="-do-jar-with-libraries-without-manifest" unless="manifest.available">\r
525         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
526         <pathconvert property="run.classpath.without.build.classes.dir">\r
527             <path path="${run.classpath}"/>\r
528             <map from="${build.classes.dir.resolved}" to=""/>\r
529         </pathconvert>\r
530         <pathconvert pathsep=" " property="jar.classpath">\r
531             <path path="${run.classpath.without.build.classes.dir}"/>\r
532             <chainedmapper>\r
533                 <flattenmapper/>\r
534                 <globmapper from="*" to="lib/*"/>\r
535             </chainedmapper>\r
536         </pathconvert>\r
537         <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>\r
538         <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">\r
539             <fileset dir="${build.classes.dir}"/>\r
540             <manifest>\r
541                 <attribute name="Class-Path" value="${jar.classpath}"/>\r
542             </manifest>\r
543         </copylibs>\r
544     </target>\r
545     <target name="-post-jar">\r
546         <!-- Empty placeholder for easier customization. -->\r
547         <!-- You can override this target in the ../build.xml file. -->\r
548     </target>\r
549     <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-mainclass,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/>\r
550     <!--\r
551                 =================\r
552                 EXECUTION SECTION\r
553                 =================\r
554             -->\r
555     <target depends="init,compile" description="Run a main class." name="run">\r
556         <j2seproject1:java>\r
557             <customize>\r
558                 <arg line="${application.args}"/>\r
559             </customize>\r
560         </j2seproject1:java>\r
561     </target>\r
562     <target name="-do-not-recompile">\r
563         <property name="javac.includes.binary" value=""/>\r
564     </target>\r
565     <target depends="init,compile-single" name="run-single">\r
566         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
567         <j2seproject1:java classname="${run.class}"/>\r
568     </target>\r
569     <target depends="init,compile-test-single" name="run-test-with-main">\r
570         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
571         <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>\r
572     </target>\r
573     <!--\r
574                 =================\r
575                 DEBUGGING SECTION\r
576                 =================\r
577             -->\r
578     <target depends="init" if="netbeans.home" name="-debug-start-debugger">\r
579         <j2seproject1:nbjpdastart name="${debug.class}"/>\r
580     </target>\r
581     <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">\r
582         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>\r
583     </target>\r
584     <target depends="init,compile" name="-debug-start-debuggee">\r
585         <j2seproject3:debug>\r
586             <customize>\r
587                 <arg line="${application.args}"/>\r
588             </customize>\r
589         </j2seproject3:debug>\r
590     </target>\r
591     <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>\r
592     <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">\r
593         <j2seproject1:nbjpdastart stopclassname="${main.class}"/>\r
594     </target>\r
595     <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>\r
596     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">\r
597         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
598         <j2seproject3:debug classname="${debug.class}"/>\r
599     </target>\r
600     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>\r
601     <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">\r
602         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
603         <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>\r
604     </target>\r
605     <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
606     <target depends="init" name="-pre-debug-fix">\r
607         <fail unless="fix.includes">Must set fix.includes</fail>\r
608         <property name="javac.includes" value="${fix.includes}.java"/>\r
609     </target>\r
610     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">\r
611         <j2seproject1:nbjpdareload/>\r
612     </target>\r
613     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>\r
614     <!--\r
615                 ===============\r
616                 JAVADOC SECTION\r
617                 ===============\r
618             -->\r
619     <target depends="init" name="-javadoc-build">\r
620         <mkdir dir="${dist.javadoc.dir}"/>\r
621         <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
622             <classpath>\r
623                 <path path="${javac.classpath}"/>\r
624             </classpath>\r
625             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">\r
626                 <filename name="**/*.java"/>\r
627             </fileset>\r
628             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
629                 <include name="**/*.java"/>\r
630             </fileset>\r
631         </javadoc>\r
632     </target>\r
633     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">\r
634         <nbbrowse file="${dist.javadoc.dir}/index.html"/>\r
635     </target>\r
636     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>\r
637     <!--\r
638                 =========================\r
639                 JUNIT COMPILATION SECTION\r
640                 =========================\r
641             -->\r
642     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">\r
643         <mkdir dir="${build.test.classes.dir}"/>\r
644     </target>\r
645     <target name="-pre-compile-test">\r
646         <!-- Empty placeholder for easier customization. -->\r
647         <!-- You can override this target in the ../build.xml file. -->\r
648     </target>\r
649     <target if="do.depend.true" name="-compile-test-depend">\r
650         <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>\r
651     </target>\r
652     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">\r
653         <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>\r
654         <copy todir="${build.test.classes.dir}">\r
655             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
656         </copy>\r
657     </target>\r
658     <target name="-post-compile-test">\r
659         <!-- Empty placeholder for easier customization. -->\r
660         <!-- You can override this target in the ../build.xml file. -->\r
661     </target>\r
662     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>\r
663     <target name="-pre-compile-test-single">\r
664         <!-- Empty placeholder for easier customization. -->\r
665         <!-- You can override this target in the ../build.xml file. -->\r
666     </target>\r
667     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">\r
668         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
669         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>\r
670         <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>\r
671         <copy todir="${build.test.classes.dir}">\r
672             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
673         </copy>\r
674     </target>\r
675     <target name="-post-compile-test-single">\r
676         <!-- Empty placeholder for easier customization. -->\r
677         <!-- You can override this target in the ../build.xml file. -->\r
678     </target>\r
679     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>\r
680     <!--\r
681                 =======================\r
682                 JUNIT EXECUTION SECTION\r
683                 =======================\r
684             -->\r
685     <target depends="init" if="have.tests" name="-pre-test-run">\r
686         <mkdir dir="${build.test.results.dir}"/>\r
687     </target>\r
688     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">\r
689         <j2seproject3:junit testincludes="**/*Test.java"/>\r
690     </target>\r
691     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">\r
692         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
693     </target>\r
694     <target depends="init" if="have.tests" name="test-report"/>\r
695     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>\r
696     <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
697     <target depends="init" if="have.tests" name="-pre-test-run-single">\r
698         <mkdir dir="${build.test.results.dir}"/>\r
699     </target>\r
700     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">\r
701         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>\r
702         <j2seproject3:junit excludes="" includes="${test.includes}"/>\r
703     </target>\r
704     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">\r
705         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
706     </target>\r
707     <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
708     <!--\r
709                 =======================\r
710                 JUNIT DEBUGGING SECTION\r
711                 =======================\r
712             -->\r
713     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">\r
714         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>\r
715         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>\r
716         <delete file="${test.report.file}"/>\r
717         <mkdir dir="${build.test.results.dir}"/>\r
718         <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
719             <customize>\r
720                 <syspropertyset>\r
721                     <propertyref prefix="test-sys-prop."/>\r
722                     <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
723                 </syspropertyset>\r
724                 <arg value="${test.class}"/>\r
725                 <arg value="showoutput=true"/>\r
726                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>\r
727                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>\r
728             </customize>\r
729         </j2seproject3:debug>\r
730     </target>\r
731     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">\r
732         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>\r
733     </target>\r
734     <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>\r
735     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">\r
736         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>\r
737     </target>\r
738     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>\r
739     <!--\r
740                 =========================\r
741                 APPLET EXECUTION SECTION\r
742                 =========================\r
743             -->\r
744     <target depends="init,compile-single" name="run-applet">\r
745         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
746         <j2seproject1:java classname="sun.applet.AppletViewer">\r
747             <customize>\r
748                 <arg value="${applet.url}"/>\r
749             </customize>\r
750         </j2seproject1:java>\r
751     </target>\r
752     <!--\r
753                 =========================\r
754                 APPLET DEBUGGING  SECTION\r
755                 =========================\r
756             -->\r
757     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">\r
758         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
759         <j2seproject3:debug classname="sun.applet.AppletViewer">\r
760             <customize>\r
761                 <arg value="${applet.url}"/>\r
762             </customize>\r
763         </j2seproject3:debug>\r
764     </target>\r
765     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>\r
766     <!--\r
767                 ===============\r
768                 CLEANUP SECTION\r
769                 ===============\r
770             -->\r
771     <target name="-deps-clean-init" unless="built-clean.properties">\r
772         <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>\r
773         <delete file="${built-clean.properties}" quiet="true"/>\r
774     </target>\r
775     <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">\r
776         <echo level="warn" message="Cycle detected: Saccubus was already built"/>\r
777     </target>\r
778     <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">\r
779         <mkdir dir="${build.dir}"/>\r
780         <touch file="${built-clean.properties}" verbose="false"/>\r
781         <property file="${built-clean.properties}" prefix="already.built.clean."/>\r
782         <antcall target="-warn-already-built-clean"/>\r
783         <propertyfile file="${built-clean.properties}">\r
784             <entry key="${basedir}" value=""/>\r
785         </propertyfile>\r
786         <antcall target="-maybe-call-dep">\r
787             <param name="call.built.properties" value="${built-clean.properties}"/>\r
788             <param location="${project.NicoBrowser}" name="call.subproject"/>\r
789             <param location="${project.NicoBrowser}/build.xml" name="call.script"/>\r
790             <param name="call.target" value="clean"/>\r
791             <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>\r
792         </antcall>\r
793     </target>\r
794     <target depends="init" name="-do-clean">\r
795         <delete dir="${build.dir}"/>\r
796         <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>\r
797     </target>\r
798     <target name="-post-clean">\r
799         <!-- Empty placeholder for easier customization. -->\r
800         <!-- You can override this target in the ../build.xml file. -->\r
801     </target>\r
802     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>\r
803     <target name="-check-call-dep">\r
804         <property file="${call.built.properties}" prefix="already.built."/>\r
805         <condition property="should.call.dep">\r
806             <not>\r
807                 <isset property="already.built.${call.subproject}"/>\r
808             </not>\r
809         </condition>\r
810     </target>\r
811     <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">\r
812         <ant antfile="${call.script}" inheritall="false" target="${call.target}">\r
813             <propertyset>\r
814                 <propertyref prefix="transfer."/>\r
815                 <mapper from="transfer.*" to="*" type="glob"/>\r
816             </propertyset>\r
817         </ant>\r
818     </target>\r
819 </project>\r