OSDN Git Service

プロジェクト名変更
[coroid/inqubus.git] / frontend / nbproject / build-impl.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3 *** GENERATED FROM project.xml - DO NOT EDIT  ***\r
4 ***         EDIT ../build.xml INSTEAD         ***\r
5 \r
6 For the purpose of easier reading the script\r
7 is divided into following sections:\r
8 \r
9   - initialization\r
10   - compilation\r
11   - jar\r
12   - execution\r
13   - debugging\r
14   - javadoc\r
15   - junit compilation\r
16   - junit execution\r
17   - junit debugging\r
18   - applet\r
19   - cleanup\r
20 \r
21         -->\r
22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="Saccubus-impl">\r
23     <fail message="Please build using Ant 1.7.1 or higher.">\r
24         <condition>\r
25             <not>\r
26                 <antversion atleast="1.7.1"/>\r
27             </not>\r
28         </condition>\r
29     </fail>\r
30     <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>\r
31     <!-- \r
32                 ======================\r
33                 INITIALIZATION SECTION \r
34                 ======================\r
35             -->\r
36     <target name="-pre-init">\r
37         <!-- Empty placeholder for easier customization. -->\r
38         <!-- You can override this target in the ../build.xml file. -->\r
39     </target>\r
40     <target depends="-pre-init" name="-init-private">\r
41         <property file="nbproject/private/config.properties"/>\r
42         <property file="nbproject/private/configs/${config}.properties"/>\r
43         <property file="nbproject/private/private.properties"/>\r
44     </target>\r
45     <target depends="-pre-init,-init-private" name="-init-user">\r
46         <property file="${user.properties.file}"/>\r
47         <!-- The two properties below are usually overridden -->\r
48         <!-- by the active platform. Just a fallback. -->\r
49         <property name="default.javac.source" value="1.4"/>\r
50         <property name="default.javac.target" value="1.4"/>\r
51     </target>\r
52     <target depends="-pre-init,-init-private,-init-user" name="-init-project">\r
53         <property file="nbproject/configs/${config}.properties"/>\r
54         <property file="nbproject/project.properties"/>\r
55     </target>\r
56     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">\r
57         <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     </target>\r
159     <target name="-post-init">\r
160         <!-- Empty placeholder for easier customization. -->\r
161         <!-- You can override this target in the ../build.xml file. -->\r
162     </target>\r
163     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">\r
164         <fail unless="src.dir">Must set src.dir</fail>\r
165         <fail unless="test.src.dir">Must set test.src.dir</fail>\r
166         <fail unless="build.dir">Must set build.dir</fail>\r
167         <fail unless="dist.dir">Must set dist.dir</fail>\r
168         <fail unless="build.classes.dir">Must set build.classes.dir</fail>\r
169         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>\r
170         <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>\r
171         <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>\r
172         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>\r
173         <fail unless="dist.jar">Must set dist.jar</fail>\r
174     </target>\r
175     <target name="-init-macrodef-property">\r
176         <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">\r
177             <attribute name="name"/>\r
178             <attribute name="value"/>\r
179             <sequential>\r
180                 <property name="@{name}" value="${@{value}}"/>\r
181             </sequential>\r
182         </macrodef>\r
183     </target>\r
184     <target name="-init-macrodef-javac">\r
185         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">\r
186             <attribute default="${src.dir}" name="srcdir"/>\r
187             <attribute default="${build.classes.dir}" name="destdir"/>\r
188             <attribute default="${javac.classpath}" name="classpath"/>\r
189             <attribute default="${includes}" name="includes"/>\r
190             <attribute default="${excludes}" name="excludes"/>\r
191             <attribute default="${javac.debug}" name="debug"/>\r
192             <attribute default="${empty.dir}" name="sourcepath"/>\r
193             <attribute default="${empty.dir}" name="gensrcdir"/>\r
194             <element name="customize" optional="true"/>\r
195             <sequential>\r
196                 <property location="${build.dir}/empty" name="empty.dir"/>\r
197                 <mkdir dir="${empty.dir}"/>\r
198                 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">\r
199                     <src>\r
200                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">\r
201                             <include name="*"/>\r
202                         </dirset>\r
203                     </src>\r
204                     <classpath>\r
205                         <path path="@{classpath}"/>\r
206                     </classpath>\r
207                     <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>\r
208                     <compilerarg line="${javac.compilerargs}"/>\r
209                     <customize/>\r
210                 </javac>\r
211             </sequential>\r
212         </macrodef>\r
213         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">\r
214             <attribute default="${src.dir}" name="srcdir"/>\r
215             <attribute default="${build.classes.dir}" name="destdir"/>\r
216             <attribute default="${javac.classpath}" name="classpath"/>\r
217             <sequential>\r
218                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">\r
219                     <classpath>\r
220                         <path path="@{classpath}"/>\r
221                     </classpath>\r
222                 </depend>\r
223             </sequential>\r
224         </macrodef>\r
225         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">\r
226             <attribute default="${build.classes.dir}" name="destdir"/>\r
227             <sequential>\r
228                 <fail unless="javac.includes">Must set javac.includes</fail>\r
229                 <pathconvert pathsep="," property="javac.includes.binary">\r
230                     <path>\r
231                         <filelist dir="@{destdir}" files="${javac.includes}"/>\r
232                     </path>\r
233                     <globmapper from="*.java" to="*.class"/>\r
234                 </pathconvert>\r
235                 <delete>\r
236                     <files includes="${javac.includes.binary}"/>\r
237                 </delete>\r
238             </sequential>\r
239         </macrodef>\r
240     </target>\r
241     <target name="-init-macrodef-junit">\r
242         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">\r
243             <attribute default="${includes}" name="includes"/>\r
244             <attribute default="${excludes}" name="excludes"/>\r
245             <attribute default="**" name="testincludes"/>\r
246             <sequential>\r
247                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">\r
248                     <batchtest todir="${build.test.results.dir}">\r
249                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">\r
250                             <filename name="@{testincludes}"/>\r
251                         </fileset>\r
252                     </batchtest>\r
253                     <classpath>\r
254                         <path path="${run.test.classpath}"/>\r
255                     </classpath>\r
256                     <syspropertyset>\r
257                         <propertyref prefix="test-sys-prop."/>\r
258                         <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
259                     </syspropertyset>\r
260                     <formatter type="brief" usefile="false"/>\r
261                     <formatter type="xml"/>\r
262                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
263                     <jvmarg line="${run.jvmargs}"/>\r
264                 </junit>\r
265             </sequential>\r
266         </macrodef>\r
267     </target>\r
268     <target depends="-init-debug-args" name="-init-macrodef-nbjpda">\r
269         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">\r
270             <attribute default="${main.class}" name="name"/>\r
271             <attribute default="${debug.classpath}" name="classpath"/>\r
272             <attribute default="" name="stopclassname"/>\r
273             <sequential>\r
274                 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">\r
275                     <classpath>\r
276                         <path path="@{classpath}"/>\r
277                     </classpath>\r
278                 </nbjpdastart>\r
279             </sequential>\r
280         </macrodef>\r
281         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">\r
282             <attribute default="${build.classes.dir}" name="dir"/>\r
283             <sequential>\r
284                 <nbjpdareload>\r
285                     <fileset dir="@{dir}" includes="${fix.classes}">\r
286                         <include name="${fix.includes}*.class"/>\r
287                     </fileset>\r
288                 </nbjpdareload>\r
289             </sequential>\r
290         </macrodef>\r
291     </target>\r
292     <target name="-init-debug-args">\r
293         <property name="version-output" value="java version &quot;${ant.java.version}"/>\r
294         <condition property="have-jdk-older-than-1.4">\r
295             <or>\r
296                 <contains string="${version-output}" substring="java version &quot;1.0"/>\r
297                 <contains string="${version-output}" substring="java version &quot;1.1"/>\r
298                 <contains string="${version-output}" substring="java version &quot;1.2"/>\r
299                 <contains string="${version-output}" substring="java version &quot;1.3"/>\r
300             </or>\r
301         </condition>\r
302         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">\r
303             <istrue value="${have-jdk-older-than-1.4}"/>\r
304         </condition>\r
305         <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">\r
306             <os family="windows"/>\r
307         </condition>\r
308         <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">\r
309             <isset property="debug.transport"/>\r
310         </condition>\r
311     </target>\r
312     <target depends="-init-debug-args" name="-init-macrodef-debug">\r
313         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">\r
314             <attribute default="${main.class}" name="classname"/>\r
315             <attribute default="${debug.classpath}" name="classpath"/>\r
316             <element name="customize" optional="true"/>\r
317             <sequential>\r
318                 <java classname="@{classname}" dir="${work.dir}" fork="true">\r
319                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
320                     <jvmarg line="${debug-args-line}"/>\r
321                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>\r
322                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>\r
323                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>\r
324                     <jvmarg line="${run.jvmargs}"/>\r
325                     <classpath>\r
326                         <path path="@{classpath}"/>\r
327                     </classpath>\r
328                     <syspropertyset>\r
329                         <propertyref prefix="run-sys-prop."/>\r
330                         <mapper from="run-sys-prop.*" to="*" type="glob"/>\r
331                     </syspropertyset>\r
332                     <customize/>\r
333                 </java>\r
334             </sequential>\r
335         </macrodef>\r
336     </target>\r
337     <target name="-init-macrodef-java">\r
338         <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">\r
339             <attribute default="${main.class}" name="classname"/>\r
340             <attribute default="${run.classpath}" name="classpath"/>\r
341             <element name="customize" optional="true"/>\r
342             <sequential>\r
343                 <java classname="@{classname}" dir="${work.dir}" fork="true">\r
344                     <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>\r
345                     <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>\r
346                     <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>\r
347                     <jvmarg line="${run.jvmargs}"/>\r
348                     <classpath>\r
349                         <path path="@{classpath}"/>\r
350                     </classpath>\r
351                     <syspropertyset>\r
352                         <propertyref prefix="run-sys-prop."/>\r
353                         <mapper from="run-sys-prop.*" to="*" type="glob"/>\r
354                     </syspropertyset>\r
355                     <customize/>\r
356                 </java>\r
357             </sequential>\r
358         </macrodef>\r
359     </target>\r
360     <target name="-init-presetdef-jar">\r
361         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">\r
362             <jar compress="${jar.compress}" jarfile="${dist.jar}">\r
363                 <j2seproject1:fileset dir="${build.classes.dir}"/>\r
364             </jar>\r
365         </presetdef>\r
366     </target>\r
367     <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
368     <!--\r
369                 ===================\r
370                 COMPILATION SECTION\r
371                 ===================\r
372             -->\r
373     <target name="-deps-jar-init" unless="built-jar.properties">\r
374         <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>\r
375         <delete file="${built-jar.properties}" quiet="true"/>\r
376     </target>\r
377     <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">\r
378         <mkdir dir="${build.dir}"/>\r
379         <touch file="${built-jar.properties}" verbose="false"/>\r
380         <property file="${built-jar.properties}" prefix="already.built.jar."/>\r
381         <fail message="Cycle detected: Saccubus was already built">\r
382             <condition>\r
383                 <isset property="already.built.jar.${basedir}"/>\r
384             </condition>\r
385         </fail>\r
386         <propertyfile file="${built-jar.properties}">\r
387             <entry key="${basedir}" value=""/>\r
388         </propertyfile>\r
389     </target>\r
390     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>\r
391     <target depends="init" name="-check-automatic-build">\r
392         <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>\r
393     </target>\r
394     <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">\r
395         <antcall target="clean"/>\r
396     </target>\r
397     <target depends="init,deps-jar" name="-pre-pre-compile">\r
398         <mkdir dir="${build.classes.dir}"/>\r
399     </target>\r
400     <target name="-pre-compile">\r
401         <!-- Empty placeholder for easier customization. -->\r
402         <!-- You can override this target in the ../build.xml file. -->\r
403     </target>\r
404     <target if="do.depend.true" name="-compile-depend">\r
405         <pathconvert property="build.generated.subdirs">\r
406             <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
407                 <include name="*"/>\r
408             </dirset>\r
409         </pathconvert>\r
410         <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>\r
411     </target>\r
412     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">\r
413         <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>\r
414         <copy todir="${build.classes.dir}">\r
415             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
416         </copy>\r
417     </target>\r
418     <target name="-post-compile">\r
419         <!-- Empty placeholder for easier customization. -->\r
420         <!-- You can override this target in the ../build.xml file. -->\r
421     </target>\r
422     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>\r
423     <target name="-pre-compile-single">\r
424         <!-- Empty placeholder for easier customization. -->\r
425         <!-- You can override this target in the ../build.xml file. -->\r
426     </target>\r
427     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">\r
428         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
429         <j2seproject3:force-recompile/>\r
430         <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>\r
431     </target>\r
432     <target name="-post-compile-single">\r
433         <!-- Empty placeholder for easier customization. -->\r
434         <!-- You can override this target in the ../build.xml file. -->\r
435     </target>\r
436     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>\r
437     <!--\r
438                 ====================\r
439                 JAR BUILDING SECTION\r
440                 ====================\r
441             -->\r
442     <target depends="init" name="-pre-pre-jar">\r
443         <dirname file="${dist.jar}" property="dist.jar.dir"/>\r
444         <mkdir dir="${dist.jar.dir}"/>\r
445     </target>\r
446     <target name="-pre-jar">\r
447         <!-- Empty placeholder for easier customization. -->\r
448         <!-- You can override this target in the ../build.xml file. -->\r
449     </target>\r
450     <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">\r
451         <j2seproject1:jar/>\r
452     </target>\r
453     <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
454         <j2seproject1:jar manifest="${manifest.file}"/>\r
455     </target>\r
456     <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
457         <j2seproject1:jar manifest="${manifest.file}">\r
458             <j2seproject1:manifest>\r
459                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>\r
460             </j2seproject1:manifest>\r
461         </j2seproject1:jar>\r
462         <echo>To run this application from the command line without Ant, try:</echo>\r
463         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
464         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
465         <pathconvert property="run.classpath.with.dist.jar">\r
466             <path path="${run.classpath}"/>\r
467             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>\r
468         </pathconvert>\r
469         <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>\r
470     </target>\r
471     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">\r
472         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
473         <pathconvert property="run.classpath.without.build.classes.dir">\r
474             <path path="${run.classpath}"/>\r
475             <map from="${build.classes.dir.resolved}" to=""/>\r
476         </pathconvert>\r
477         <pathconvert pathsep=" " property="jar.classpath">\r
478             <path path="${run.classpath.without.build.classes.dir}"/>\r
479             <chainedmapper>\r
480                 <flattenmapper/>\r
481                 <globmapper from="*" to="lib/*"/>\r
482             </chainedmapper>\r
483         </pathconvert>\r
484         <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>\r
485         <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">\r
486             <fileset dir="${build.classes.dir}"/>\r
487             <manifest>\r
488                 <attribute name="Main-Class" value="${main.class}"/>\r
489                 <attribute name="Class-Path" value="${jar.classpath}"/>\r
490             </manifest>\r
491         </copylibs>\r
492         <echo>To run this application from the command line without Ant, try:</echo>\r
493         <property location="${dist.jar}" name="dist.jar.resolved"/>\r
494         <echo>java -jar "${dist.jar.resolved}"</echo>\r
495     </target>\r
496     <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
497         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
498         <pathconvert property="run.classpath.without.build.classes.dir">\r
499             <path path="${run.classpath}"/>\r
500             <map from="${build.classes.dir.resolved}" to=""/>\r
501         </pathconvert>\r
502         <pathconvert pathsep=" " property="jar.classpath">\r
503             <path path="${run.classpath.without.build.classes.dir}"/>\r
504             <chainedmapper>\r
505                 <flattenmapper/>\r
506                 <globmapper from="*" to="lib/*"/>\r
507             </chainedmapper>\r
508         </pathconvert>\r
509         <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>\r
510         <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">\r
511             <fileset dir="${build.classes.dir}"/>\r
512             <manifest>\r
513                 <attribute name="Class-Path" value="${jar.classpath}"/>\r
514             </manifest>\r
515         </copylibs>\r
516     </target>\r
517     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.mkdist" name="-do-jar-with-libraries-without-manifest" unless="manifest.available">\r
518         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>\r
519         <pathconvert property="run.classpath.without.build.classes.dir">\r
520             <path path="${run.classpath}"/>\r
521             <map from="${build.classes.dir.resolved}" to=""/>\r
522         </pathconvert>\r
523         <pathconvert pathsep=" " property="jar.classpath">\r
524             <path path="${run.classpath.without.build.classes.dir}"/>\r
525             <chainedmapper>\r
526                 <flattenmapper/>\r
527                 <globmapper from="*" to="lib/*"/>\r
528             </chainedmapper>\r
529         </pathconvert>\r
530         <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>\r
531         <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">\r
532             <fileset dir="${build.classes.dir}"/>\r
533             <manifest>\r
534                 <attribute name="Class-Path" value="${jar.classpath}"/>\r
535             </manifest>\r
536         </copylibs>\r
537     </target>\r
538     <target name="-post-jar">\r
539         <!-- Empty placeholder for easier customization. -->\r
540         <!-- You can override this target in the ../build.xml file. -->\r
541     </target>\r
542     <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
543     <!--\r
544                 =================\r
545                 EXECUTION SECTION\r
546                 =================\r
547             -->\r
548     <target depends="init,compile" description="Run a main class." name="run">\r
549         <j2seproject1:java>\r
550             <customize>\r
551                 <arg line="${application.args}"/>\r
552             </customize>\r
553         </j2seproject1:java>\r
554     </target>\r
555     <target name="-do-not-recompile">\r
556         <property name="javac.includes.binary" value=""/>\r
557     </target>\r
558     <target depends="init,-do-not-recompile,compile-single" name="run-single">\r
559         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
560         <j2seproject1:java classname="${run.class}"/>\r
561     </target>\r
562     <target depends="init,-do-not-recompile,compile-test-single" name="run-test-with-main">\r
563         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>\r
564         <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>\r
565     </target>\r
566     <!--\r
567                 =================\r
568                 DEBUGGING SECTION\r
569                 =================\r
570             -->\r
571     <target depends="init" if="netbeans.home" name="-debug-start-debugger">\r
572         <j2seproject1:nbjpdastart name="${debug.class}"/>\r
573     </target>\r
574     <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">\r
575         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>\r
576     </target>\r
577     <target depends="init,compile" name="-debug-start-debuggee">\r
578         <j2seproject3:debug>\r
579             <customize>\r
580                 <arg line="${application.args}"/>\r
581             </customize>\r
582         </j2seproject3:debug>\r
583     </target>\r
584     <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>\r
585     <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">\r
586         <j2seproject1:nbjpdastart stopclassname="${main.class}"/>\r
587     </target>\r
588     <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>\r
589     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">\r
590         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
591         <j2seproject3:debug classname="${debug.class}"/>\r
592     </target>\r
593     <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>\r
594     <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">\r
595         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>\r
596         <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>\r
597     </target>\r
598     <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>\r
599     <target depends="init" name="-pre-debug-fix">\r
600         <fail unless="fix.includes">Must set fix.includes</fail>\r
601         <property name="javac.includes" value="${fix.includes}.java"/>\r
602     </target>\r
603     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">\r
604         <j2seproject1:nbjpdareload/>\r
605     </target>\r
606     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>\r
607     <!--\r
608                 ===============\r
609                 JAVADOC SECTION\r
610                 ===============\r
611             -->\r
612     <target depends="init" name="-javadoc-build">\r
613         <mkdir dir="${dist.javadoc.dir}"/>\r
614         <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
615             <classpath>\r
616                 <path path="${javac.classpath}"/>\r
617             </classpath>\r
618             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">\r
619                 <filename name="**/*.java"/>\r
620             </fileset>\r
621             <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">\r
622                 <include name="**/*.java"/>\r
623             </fileset>\r
624         </javadoc>\r
625     </target>\r
626     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">\r
627         <nbbrowse file="${dist.javadoc.dir}/index.html"/>\r
628     </target>\r
629     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>\r
630     <!--\r
631                 =========================\r
632                 JUNIT COMPILATION SECTION\r
633                 =========================\r
634             -->\r
635     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">\r
636         <mkdir dir="${build.test.classes.dir}"/>\r
637     </target>\r
638     <target name="-pre-compile-test">\r
639         <!-- Empty placeholder for easier customization. -->\r
640         <!-- You can override this target in the ../build.xml file. -->\r
641     </target>\r
642     <target if="do.depend.true" name="-compile-test-depend">\r
643         <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>\r
644     </target>\r
645     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">\r
646         <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>\r
647         <copy todir="${build.test.classes.dir}">\r
648             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
649         </copy>\r
650     </target>\r
651     <target name="-post-compile-test">\r
652         <!-- Empty placeholder for easier customization. -->\r
653         <!-- You can override this target in the ../build.xml file. -->\r
654     </target>\r
655     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>\r
656     <target name="-pre-compile-test-single">\r
657         <!-- Empty placeholder for easier customization. -->\r
658         <!-- You can override this target in the ../build.xml file. -->\r
659     </target>\r
660     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">\r
661         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>\r
662         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>\r
663         <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
664         <copy todir="${build.test.classes.dir}">\r
665             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>\r
666         </copy>\r
667     </target>\r
668     <target name="-post-compile-test-single">\r
669         <!-- Empty placeholder for easier customization. -->\r
670         <!-- You can override this target in the ../build.xml file. -->\r
671     </target>\r
672     <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
673     <!--\r
674                 =======================\r
675                 JUNIT EXECUTION SECTION\r
676                 =======================\r
677             -->\r
678     <target depends="init" if="have.tests" name="-pre-test-run">\r
679         <mkdir dir="${build.test.results.dir}"/>\r
680     </target>\r
681     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">\r
682         <j2seproject3:junit testincludes="**/*Test.java"/>\r
683     </target>\r
684     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">\r
685         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
686     </target>\r
687     <target depends="init" if="have.tests" name="test-report"/>\r
688     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>\r
689     <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
690     <target depends="init" if="have.tests" name="-pre-test-run-single">\r
691         <mkdir dir="${build.test.results.dir}"/>\r
692     </target>\r
693     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">\r
694         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>\r
695         <j2seproject3:junit excludes="" includes="${test.includes}"/>\r
696     </target>\r
697     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">\r
698         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>\r
699     </target>\r
700     <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>\r
701     <!--\r
702                 =======================\r
703                 JUNIT DEBUGGING SECTION\r
704                 =======================\r
705             -->\r
706     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">\r
707         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>\r
708         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>\r
709         <delete file="${test.report.file}"/>\r
710         <mkdir dir="${build.test.results.dir}"/>\r
711         <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
712             <customize>\r
713                 <syspropertyset>\r
714                     <propertyref prefix="test-sys-prop."/>\r
715                     <mapper from="test-sys-prop.*" to="*" type="glob"/>\r
716                 </syspropertyset>\r
717                 <arg value="${test.class}"/>\r
718                 <arg value="showoutput=true"/>\r
719                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>\r
720                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>\r
721             </customize>\r
722         </j2seproject3:debug>\r
723     </target>\r
724     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">\r
725         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>\r
726     </target>\r
727     <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>\r
728     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">\r
729         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>\r
730     </target>\r
731     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>\r
732     <!--\r
733                 =========================\r
734                 APPLET EXECUTION SECTION\r
735                 =========================\r
736             -->\r
737     <target depends="init,compile-single" name="run-applet">\r
738         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
739         <j2seproject1:java classname="sun.applet.AppletViewer">\r
740             <customize>\r
741                 <arg value="${applet.url}"/>\r
742             </customize>\r
743         </j2seproject1:java>\r
744     </target>\r
745     <!--\r
746                 =========================\r
747                 APPLET DEBUGGING  SECTION\r
748                 =========================\r
749             -->\r
750     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">\r
751         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>\r
752         <j2seproject3:debug classname="sun.applet.AppletViewer">\r
753             <customize>\r
754                 <arg value="${applet.url}"/>\r
755             </customize>\r
756         </j2seproject3:debug>\r
757     </target>\r
758     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>\r
759     <!--\r
760                 ===============\r
761                 CLEANUP SECTION\r
762                 ===============\r
763             -->\r
764     <target name="-deps-clean-init" unless="built-clean.properties">\r
765         <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>\r
766         <delete file="${built-clean.properties}" quiet="true"/>\r
767     </target>\r
768     <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">\r
769         <mkdir dir="${build.dir}"/>\r
770         <touch file="${built-clean.properties}" verbose="false"/>\r
771         <property file="${built-clean.properties}" prefix="already.built.clean."/>\r
772         <fail message="Cycle detected: Saccubus was already built">\r
773             <condition>\r
774                 <isset property="already.built.clean.${basedir}"/>\r
775             </condition>\r
776         </fail>\r
777         <propertyfile file="${built-clean.properties}">\r
778             <entry key="${basedir}" value=""/>\r
779         </propertyfile>\r
780     </target>\r
781     <target depends="init" name="-do-clean">\r
782         <delete dir="${build.dir}"/>\r
783         <delete dir="${dist.dir}"/>\r
784     </target>\r
785     <target name="-post-clean">\r
786         <!-- Empty placeholder for easier customization. -->\r
787         <!-- You can override this target in the ../build.xml file. -->\r
788     </target>\r
789     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>\r
790     <target name="-check-call-dep">\r
791         <property file="${call.built.properties}" prefix="already.built."/>\r
792         <condition property="should.call.dep">\r
793             <not>\r
794                 <isset property="already.built.${call.subproject}"/>\r
795             </not>\r
796         </condition>\r
797     </target>\r
798     <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">\r
799         <ant antfile="${call.script}" inheritall="false" target="${call.target}">\r
800             <propertyset>\r
801                 <propertyref prefix="transfer."/>\r
802                 <mapper from="transfer.*" to="*" type="glob"/>\r
803             </propertyset>\r
804         </ant>\r
805     </target>\r
806 </project>\r