Don't sleep for a fixed time. Adapt sleep time to archieve a constant frame rate.
[kong.git] / nbproject / build-impl.xml
blobc0391a2dcadd9d31f714b326128b61b4028373d6
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 *** GENERATED FROM project.xml - DO NOT EDIT  ***
4 ***         EDIT ../build.xml INSTEAD         ***
6 For the purpose of easier reading the script
7 is divided into following sections:
9   - initialization
10   - compilation
11   - jar
12   - execution
13   - debugging
14   - javadoc
15   - junit compilation
16   - junit execution
17   - junit debugging
18   - applet
19   - cleanup
21         -->
22 <project xmlns:jaxrpc="http://www.netbeans.org/ns/scala-project/jax-rpc" xmlns:scalaProject1="http://www.netbeans.org/ns/scala-project/1" basedir=".." default="default" name="Kong-impl">
23     <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
24     <!-- 
25                 ======================
26                 INITIALIZATION SECTION 
27                 ======================
28             -->
29     <target name="-pre-init">
30         <!-- Empty placeholder for easier customization. -->
31         <!-- You can override this target in the ../build.xml file. -->
32     </target>
33     <target depends="-pre-init" name="-init-private">
34         <property file="nbproject/private/config.properties"/>
35         <property file="nbproject/private/configs/${config}.properties"/>
36         <property file="nbproject/private/private.properties"/>
37         <property environment="env"/>
38         <condition property="scala.home" value="${env.SCALA_HOME}">
39             <isset property="env.SCALA_HOME"/>
40         </condition>
41         <fail unless="scala.home">
42 You must set SCALA_HOME or environment property and append "-J-Dscala.home=scalahomepath"
43 property to the end of "netbeans_default_options" in NetBeansInstallationPath/etc/netbeans.conf to point to
44 Scala installation directory.
45 </fail>
46         <property name="scala.compiler" value="${scala.home}/lib/scala-compiler.jar"/>
47         <property name="scala.library" value="${scala.home}/lib/scala-library.jar"/>
48         <property name="scala.lib" value="${scala.home}/lib"/>
49         <taskdef resource="scala/tools/ant/antlib.xml">
50             <classpath>
51                 <pathelement location="${scala.compiler}"/>
52                 <pathelement location="${scala.library}"/>
53             </classpath>
54         </taskdef>
55     </target>
56     <target depends="-pre-init,-init-private" name="-init-user">
57         <property file="${user.properties.file}"/>
58         <!-- The two properties below are usually overridden -->
59         <!-- by the active platform. Just a fallback. -->
60         <property name="default.javac.source" value="1.4"/>
61         <property name="default.javac.target" value="1.4"/>
62     </target>
63     <target depends="-pre-init,-init-private,-init-user" name="-init-project">
64         <property file="nbproject/configs/${config}.properties"/>
65         <property file="nbproject/project.properties"/>
66     </target>
67     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
68         <available file="${manifest.file}" property="manifest.available"/>
69         <condition property="manifest.available+main.class">
70             <and>
71                 <isset property="manifest.available"/>
72                 <isset property="main.class"/>
73                 <not>
74                     <equals arg1="${main.class}" arg2="" trim="true"/>
75                 </not>
76             </and>
77         </condition>
78         <condition property="manifest.available+main.class+mkdist.available">
79             <and>
80                 <istrue value="${manifest.available+main.class}"/>
81                 <isset property="libs.CopyLibs.classpath"/>
82             </and>
83         </condition>
84         <condition property="have.tests">
85             <or>
86                 <available file="${test.src.dir}"/>
87             </or>
88         </condition>
89         <condition property="have.sources">
90             <or>
91                 <available file="${src.dir}"/>
92             </or>
93         </condition>
94         <condition property="netbeans.home+have.tests">
95             <and>
96                 <isset property="netbeans.home"/>
97                 <isset property="have.tests"/>
98             </and>
99         </condition>
100         <condition property="no.javadoc.preview">
101             <and>
102                 <isset property="javadoc.preview"/>
103                 <isfalse value="${javadoc.preview}"/>
104             </and>
105         </condition>
106         <property name="run.jvmargs" value=""/>
107         <property name="javac.compilerargs" value=""/>
108         <property name="work.dir" value="${basedir}"/>
109         <condition property="no.deps">
110             <and>
111                 <istrue value="${no.dependencies}"/>
112             </and>
113         </condition>
114         <property name="javac.debug" value="true"/>
115         <property name="javadoc.preview" value="true"/>
116         <property name="application.args" value=""/>
117         <property name="source.encoding" value="${file.encoding}"/>
118         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
119             <and>
120                 <isset property="javadoc.encoding"/>
121                 <not>
122                     <equals arg1="${javadoc.encoding}" arg2=""/>
123                 </not>
124             </and>
125         </condition>
126         <property name="javadoc.encoding.used" value="${source.encoding}"/>
127         <property name="includes" value="**"/>
128         <property name="excludes" value=""/>
129         <property name="do.depend" value="false"/>
130         <condition property="do.depend.true">
131             <istrue value="${do.depend}"/>
132         </condition>
133         <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
134             <and>
135                 <isset property="jaxws.endorsed.dir"/>
136                 <available file="nbproject/jaxws-build.xml"/>
137             </and>
138         </condition>
139     </target>
140     <target name="-post-init">
141         <!-- Empty placeholder for easier customization. -->
142         <!-- You can override this target in the ../build.xml file. -->
143     </target>
144     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
145         <fail unless="src.dir">Must set src.dir</fail>
146         <fail unless="test.src.dir">Must set test.src.dir</fail>
147         <fail unless="build.dir">Must set build.dir</fail>
148         <fail unless="dist.dir">Must set dist.dir</fail>
149         <fail unless="build.classes.dir">Must set build.classes.dir</fail>
150         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
151         <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
152         <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
153         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
154         <fail unless="dist.jar">Must set dist.jar</fail>
155     </target>
156     <target name="-init-macrodef-property">
157         <macrodef name="property" uri="http://www.netbeans.org/ns/scala-project/1">
158             <attribute name="name"/>
159             <attribute name="value"/>
160             <sequential>
161                 <property name="@{name}" value="${@{value}}"/>
162             </sequential>
163         </macrodef>
164     </target>
165     <target name="-init-macrodef-javac">
166         <macrodef name="javac" uri="http://www.netbeans.org/ns/scala-project/1">
167             <attribute default="${src.dir}" name="srcdir"/>
168             <attribute default="${build.classes.dir}" name="destdir"/>
169             <attribute default="${javac.classpath}" name="classpath"/>
170             <attribute default="${includes}" name="includes"/>
171             <attribute default="${excludes}" name="excludes"/>
172             <attribute default="${javac.debug}" name="debug"/>
173             <attribute default="" name="sourcepath"/>
174             <element name="customize" optional="true"/>
175             <sequential>
176                 <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}">
177                     <classpath>
178                         <path path="@{classpath}"/>
179                     </classpath>
180                     <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
181                     <customize/>
182                 </javac>
183             </sequential>
184         </macrodef>
185         <macrodef name="depend" uri="http://www.netbeans.org/ns/scala-project/1">
186             <attribute default="${src.dir}" name="srcdir"/>
187             <attribute default="${build.classes.dir}" name="destdir"/>
188             <attribute default="${javac.classpath}" name="classpath"/>
189             <sequential>
190                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
191                     <classpath>
192                         <path path="@{classpath}"/>
193                     </classpath>
194                 </depend>
195             </sequential>
196         </macrodef>
197         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
198             <attribute default="${build.classes.dir}" name="destdir"/>
199             <sequential>
200                 <fail unless="javac.includes">Must set javac.includes</fail>
201                 <pathconvert pathsep="," property="javac.includes.binary">
202                     <path>
203                         <filelist dir="@{destdir}" files="${javac.includes}"/>
204                     </path>
205                     <globmapper from="*.java" to="*.class"/>
206                 </pathconvert>
207                 <delete>
208                     <files includes="${javac.includes.binary}"/>
209                 </delete>
210             </sequential>
211         </macrodef>
212     </target>
213     <target name="-init-macrodef-scalac">
214         <macrodef name="scalac" uri="http://www.netbeans.org/ns/scala-project/1">
215             <attribute default="${src.dir}" name="srcdir"/>
216             <attribute default="${build.classes.dir}" name="destdir"/>
217             <attribute default="${javac.classpath}" name="classpath"/>
218             <attribute default="${includes}" name="includes"/>
219             <attribute default="${excludes}" name="excludes"/>
220             <attribute default="jvm-${javac.debug}" name="debug"/>
221             <attribute default="${javac.compilerargs}" name="addparams"/>
222             <attribute default="" name="sourcepath"/>
223             <element name="customize" optional="true"/>
224             <sequential>
225                 <scalac addparams="@{addparams}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includes="@{includes}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="jvm-${javac.target}">
226                     <classpath>
227                         <path path="@{classpath}"/>
228                         <fileset dir="${scala.lib}">
229                             <include name="**/*.jar"/>
230                         </fileset>
231                     </classpath>
232                     <customize/>
233                 </scalac>
234             </sequential>
235         </macrodef>
236         <macrodef name="depend" uri="http://www.netbeans.org/ns/scala-project/1">
237             <attribute default="${src.dir}" name="srcdir"/>
238             <attribute default="${build.classes.dir}" name="destdir"/>
239             <attribute default="${javac.classpath}" name="classpath"/>
240             <sequential>
241                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
242                     <classpath>
243                         <path path="@{classpath}"/>
244                     </classpath>
245                 </depend>
246             </sequential>
247         </macrodef>
248         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
249             <attribute default="${build.classes.dir}" name="destdir"/>
250             <sequential>
251                 <fail unless="javac.includes">Must set javac.includes</fail>
252                 <pathconvert pathsep="," property="javac.includes.binary">
253                     <path>
254                         <filelist dir="@{destdir}" files="${javac.includes}"/>
255                     </path>
256                     <globmapper from="*.scala" to="*.class"/>
257                 </pathconvert>
258                 <delete>
259                     <files includes="${javac.includes.binary}"/>
260                 </delete>
261             </sequential>
262         </macrodef>
263     </target>
264     <target name="-init-macrodef-junit">
265         <macrodef name="junit" uri="http://www.netbeans.org/ns/scala-project/1">
266             <attribute default="${includes}" name="includes"/>
267             <attribute default="${excludes}" name="excludes"/>
268             <attribute default="**" name="testincludes"/>
269             <sequential>
270                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
271                     <batchtest todir="${build.test.results.dir}">
272                         <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
273                             <filename name="@{testincludes}"/>
274                         </fileset>
275                     </batchtest>
276                     <classpath>
277                         <path path="${run.test.classpath}"/>
278                         <fileset dir="${scala.lib}">
279                             <include name="**/*.jar"/>
280                         </fileset>
281                     </classpath>
282                     <syspropertyset>
283                         <propertyref prefix="test-sys-prop."/>
284                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
285                     </syspropertyset>
286                     <formatter type="brief" usefile="false"/>
287                     <formatter type="xml"/>
288                     <jvmarg line="${run.jvmargs}"/>
289                 </junit>
290             </sequential>
291         </macrodef>
292     </target>
293     <target name="-init-macrodef-nbjpda">
294         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/scala-project/1">
295             <attribute default="${main.class}" name="name"/>
296             <attribute default="${debug.classpath}" name="classpath"/>
297             <attribute default="" name="stopclassname"/>
298             <sequential>
299                 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
300                     <classpath>
301                         <path path="@{classpath}"/>
302                     </classpath>
303                 </nbjpdastart>
304             </sequential>
305         </macrodef>
306         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/scala-project/1">
307             <attribute default="${build.classes.dir}" name="dir"/>
308             <sequential>
309                 <nbjpdareload>
310                     <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
311                 </nbjpdareload>
312             </sequential>
313         </macrodef>
314     </target>
315     <target name="-init-debug-args">
316         <property name="version-output" value="java version &quot;${ant.java.version}"/>
317         <condition property="have-jdk-older-than-1.4">
318             <or>
319                 <contains string="${version-output}" substring="java version &quot;1.0"/>
320                 <contains string="${version-output}" substring="java version &quot;1.1"/>
321                 <contains string="${version-output}" substring="java version &quot;1.2"/>
322                 <contains string="${version-output}" substring="java version &quot;1.3"/>
323             </or>
324         </condition>
325         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
326             <istrue value="${have-jdk-older-than-1.4}"/>
327         </condition>
328     </target>
329     <target depends="-init-debug-args" name="-init-macrodef-debug">
330         <macrodef name="debug" uri="http://www.netbeans.org/ns/scala-project/1">
331             <attribute default="${main.class}" name="classname"/>
332             <attribute default="${debug.classpath}" name="classpath"/>
333             <element name="customize" optional="true"/>
334             <sequential>
335                 <java classname="@{classname}" dir="${work.dir}" fork="true">
336                     <jvmarg line="${debug-args-line}"/>
337                     <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
338                     <jvmarg line="${run.jvmargs}"/>
339                     <classpath>
340                         <path path="@{classpath}"/>
341                         <fileset dir="${scala.lib}">
342                             <include name="**/*.jar"/>
343                         </fileset>
344                     </classpath>
345                     <syspropertyset>
346                         <propertyref prefix="run-sys-prop."/>
347                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
348                     </syspropertyset>
349                     <customize/>
350                 </java>
351             </sequential>
352         </macrodef>
353     </target>
354     <target name="-init-macrodef-java">
355         <macrodef name="java" uri="http://www.netbeans.org/ns/scala-project/1">
356             <attribute default="${main.class}" name="classname"/>
357             <element name="customize" optional="true"/>
358             <sequential>
359                 <java classname="@{classname}" dir="${work.dir}" fork="true">
360                     <jvmarg line="${run.jvmargs}"/>
361                     <classpath>
362                         <path path="${run.classpath}"/>
363                         <fileset dir="${scala.lib}">
364                             <include name="**/*.jar"/>
365                         </fileset>
366                     </classpath>
367                     <syspropertyset>
368                         <propertyref prefix="run-sys-prop."/>
369                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
370                     </syspropertyset>
371                     <customize/>
372                 </java>
373             </sequential>
374         </macrodef>
375     </target>
376     <target name="-init-presetdef-jar">
377         <presetdef name="jar" uri="http://www.netbeans.org/ns/scala-project/1">
378             <jar compress="${jar.compress}" jarfile="${dist.jar}">
379                 <scalaProject1:fileset dir="${build.classes.dir}"/>
380             </jar>
381         </presetdef>
382     </target>
383     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-scalac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
384     <!--
385                 ===================
386                 COMPILATION SECTION
387                 ===================
388             -->
389     <target depends="init" name="deps-jar" unless="no.deps"/>
390     <target depends="init,deps-jar" name="-pre-pre-compile">
391         <mkdir dir="${build.classes.dir}"/>
392     </target>
393     <target name="-pre-compile">
394         <!-- Empty placeholder for easier customization. -->
395         <!-- You can override this target in the ../build.xml file. -->
396     </target>
397     <target if="do.depend.true" name="-compile-depend">
398         <scalaProject1:depend/>
399     </target>
400     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
401         <scalaProject1:scalac/>
402         <copy todir="${build.classes.dir}">
403             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
404         </copy>
405     </target>
406     <target name="-post-compile">
407         <!-- Empty placeholder for easier customization. -->
408         <!-- You can override this target in the ../build.xml file. -->
409     </target>
410     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
411     <target name="-pre-compile-single">
412         <!-- Empty placeholder for easier customization. -->
413         <!-- You can override this target in the ../build.xml file. -->
414     </target>
415     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
416         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
417         <scalaProject1:force-recompile/>
418         <scalaProject1:scalac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
419     </target>
420     <target name="-post-compile-single">
421         <!-- Empty placeholder for easier customization. -->
422         <!-- You can override this target in the ../build.xml file. -->
423     </target>
424     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
425     <!--
426                 ====================
427                 JAR BUILDING SECTION
428                 ====================
429             -->
430     <target depends="init" name="-pre-pre-jar">
431         <dirname file="${dist.jar}" property="dist.jar.dir"/>
432         <mkdir dir="${dist.jar.dir}"/>
433     </target>
434     <target name="-pre-jar">
435         <!-- Empty placeholder for easier customization. -->
436         <!-- You can override this target in the ../build.xml file. -->
437     </target>
438     <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
439         <scalaProject1:jar/>
440     </target>
441     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
442         <scalaProject1:jar manifest="${manifest.file}"/>
443     </target>
444     <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">
445         <scalaProject1:jar manifest="${manifest.file}">
446             <scalaProject1:manifest>
447                 <scalaProject1:attribute name="Main-Class" value="${main.class}"/>
448             </scalaProject1:manifest>
449         </scalaProject1:jar>
450         <echo>To run this application from the command line without Ant, try:</echo>
451         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
452         <property location="${dist.jar}" name="dist.jar.resolved"/>
453         <pathconvert property="run.classpath.with.dist.jar">
454             <path path="${run.classpath}"/>
455             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
456         </pathconvert>
457         <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
458     </target>
459     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
460         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
461         <pathconvert property="run.classpath.without.build.classes.dir">
462             <path path="${run.classpath}"/>
463             <map from="${build.classes.dir.resolved}" to=""/>
464         </pathconvert>
465         <pathconvert pathsep=" " property="jar.classpath">
466             <path path="${run.classpath.without.build.classes.dir}"/>
467             <chainedmapper>
468                 <flattenmapper/>
469                 <globmapper from="*" to="lib/*"/>
470             </chainedmapper>
471         </pathconvert>
472         <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
473         <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
474             <fileset dir="${build.classes.dir}"/>
475             <manifest>
476                 <attribute name="Main-Class" value="${main.class}"/>
477                 <attribute name="Class-Path" value="${jar.classpath}"/>
478             </manifest>
479         </copylibs>
480         <echo>To run this application from the command line without Ant, try:</echo>
481         <property location="${dist.jar}" name="dist.jar.resolved"/>
482         <echo>java -jar "${dist.jar.resolved}"</echo>
483     </target>
484     <target name="-post-jar">
485         <!-- Empty placeholder for easier customization. -->
486         <!-- You can override this target in the ../build.xml file. -->
487     </target>
488     <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
489     <!--
490                 =================
491                 EXECUTION SECTION
492                 =================
493             -->
494     <target depends="init,compile" description="Run a main class." name="run">
495         <scalaProject1:java>
496             <customize>
497                 <arg line="${application.args}"/>
498             </customize>
499         </scalaProject1:java>
500     </target>
501     <target name="-do-not-recompile">
502         <property name="javac.includes.binary" value=""/>
503     </target>
504     <target depends="init,-do-not-recompile,compile-single" name="run-single">
505         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
506         <scalaProject1:java classname="${run.class}"/>
507     </target>
508     <!--
509                 =================
510                 DEBUGGING SECTION
511                 =================
512             -->
513     <target depends="init" if="netbeans.home" name="-debug-start-debugger">
514         <scalaProject1:nbjpdastart name="${debug.class}"/>
515     </target>
516     <target depends="init,compile" name="-debug-start-debuggee">
517         <scalaProject1:debug>
518             <customize>
519                 <arg line="${application.args}"/>
520             </customize>
521         </scalaProject1:debug>
522     </target>
523     <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
524     <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
525         <scalaProject1:nbjpdastart stopclassname="${main.class}"/>
526     </target>
527     <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
528     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
529         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
530         <scalaProject1:debug classname="${debug.class}"/>
531     </target>
532     <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
533     <target depends="init" name="-pre-debug-fix">
534         <fail unless="fix.includes">Must set fix.includes</fail>
535         <property name="javac.includes" value="${fix.includes}.java"/>
536     </target>
537     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
538         <scalaProject1:nbjpdareload/>
539     </target>
540     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
541     <!--
542                 ===============
543                 JAVADOC SECTION
544                 ===============
545             -->
546     <target depends="init" name="-javadoc-build">
547         <mkdir dir="${dist.javadoc.dir}"/>
548         <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}">
549             <classpath>
550                 <path path="${javac.classpath}"/>
551             </classpath>
552             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
553                 <filename name="**/*.java"/>
554             </fileset>
555         </javadoc>
556     </target>
557     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
558         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
559     </target>
560     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
561     <!--
562                 =========================
563                 JUNIT COMPILATION SECTION
564                 =========================
565             -->
566     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
567         <mkdir dir="${build.test.classes.dir}"/>
568     </target>
569     <target name="-pre-compile-test">
570         <!-- Empty placeholder for easier customization. -->
571         <!-- You can override this target in the ../build.xml file. -->
572     </target>
573     <target if="do.depend.true" name="-compile-test-depend">
574         <scalaProject1:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
575     </target>
576     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
577         <scalaProject1:scalac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
578         <copy todir="${build.test.classes.dir}">
579             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
580         </copy>
581     </target>
582     <target name="-post-compile-test">
583         <!-- Empty placeholder for easier customization. -->
584         <!-- You can override this target in the ../build.xml file. -->
585     </target>
586     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
587     <target name="-pre-compile-test-single">
588         <!-- Empty placeholder for easier customization. -->
589         <!-- You can override this target in the ../build.xml file. -->
590     </target>
591     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
592         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
593         <scalaProject1:force-recompile destdir="${build.test.classes.dir}"/>
594         <scalaProject1:scalac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
595         <copy todir="${build.test.classes.dir}">
596             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
597         </copy>
598     </target>
599     <target name="-post-compile-test-single">
600         <!-- Empty placeholder for easier customization. -->
601         <!-- You can override this target in the ../build.xml file. -->
602     </target>
603     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
604     <!--
605                 =======================
606                 JUNIT EXECUTION SECTION
607                 =======================
608             -->
609     <target depends="init" if="have.tests" name="-pre-test-run">
610         <mkdir dir="${build.test.results.dir}"/>
611     </target>
612     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
613         <scalaProject1:junit testincludes="**/*Test.class"/>
614     </target>
615     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
616         <fail if="tests.failed">Some tests failed; see details above.</fail>
617     </target>
618     <target depends="init" if="have.tests" name="test-report"/>
619     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
620     <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
621     <target depends="init" if="have.tests" name="-pre-test-run-single">
622         <mkdir dir="${build.test.results.dir}"/>
623     </target>
624     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
625         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
626         <scalaProject1:junit excludes="" includes="${test.includes}"/>
627     </target>
628     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
629         <fail if="tests.failed">Some tests failed; see details above.</fail>
630     </target>
631     <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"/>
632     <!--
633                 =======================
634                 JUNIT DEBUGGING SECTION
635                 =======================
636             -->
637     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
638         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
639         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
640         <delete file="${test.report.file}"/>
641         <mkdir dir="${build.test.results.dir}"/>
642         <scalaProject1: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}">
643             <customize>
644                 <syspropertyset>
645                     <propertyref prefix="test-sys-prop."/>
646                     <mapper from="test-sys-prop.*" to="*" type="glob"/>
647                 </syspropertyset>
648                 <arg value="${test.class}"/>
649                 <arg value="showoutput=true"/>
650                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
651                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
652             </customize>
653         </scalaProject1:debug>
654     </target>
655     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
656         <scalaProject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
657     </target>
658     <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
659     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
660         <scalaProject1:nbjpdareload dir="${build.test.classes.dir}"/>
661     </target>
662     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
663     <!--
664                 =========================
665                 APPLET EXECUTION SECTION
666                 =========================
667             -->
668     <target depends="init,compile-single" name="run-applet">
669         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
670         <scalaProject1:java classname="sun.applet.AppletViewer">
671             <customize>
672                 <arg value="${applet.url}"/>
673             </customize>
674         </scalaProject1:java>
675     </target>
676     <!--
677                 =========================
678                 APPLET DEBUGGING  SECTION
679                 =========================
680             -->
681     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
682         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
683         <scalaProject1:debug classname="sun.applet.AppletViewer">
684             <customize>
685                 <arg value="${applet.url}"/>
686             </customize>
687         </scalaProject1:debug>
688     </target>
689     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
690     <!--
691                 ===============
692                 CLEANUP SECTION
693                 ===============
694             -->
695     <target depends="init" name="deps-clean" unless="no.deps"/>
696     <target depends="init" name="-do-clean">
697         <delete dir="${build.dir}"/>
698         <delete dir="${dist.dir}"/>
699     </target>
700     <target name="-post-clean">
701         <!-- Empty placeholder for easier customization. -->
702         <!-- You can override this target in the ../build.xml file. -->
703     </target>
704     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
705 </project>