1 <?xml version="1.0" encoding="UTF-8"?>
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:
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"/>
25 ======================
26 INITIALIZATION SECTION
27 ======================
29 <target name="-pre-init">
30 <!-- Empty placeholder for easier customization. -->
31 <!-- You can override this target in the ../build.xml file. -->
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"/>
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.
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">
51 <pathelement location="${scala.compiler}"/>
52 <pathelement location="${scala.library}"/>
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"/>
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"/>
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">
71 <isset property="manifest.available"/>
72 <isset property="main.class"/>
74 <equals arg1="${main.class}" arg2="" trim="true"/>
78 <condition property="manifest.available+main.class+mkdist.available">
80 <istrue value="${manifest.available+main.class}"/>
81 <isset property="libs.CopyLibs.classpath"/>
84 <condition property="have.tests">
86 <available file="${test.src.dir}"/>
89 <condition property="have.sources">
91 <available file="${src.dir}"/>
94 <condition property="netbeans.home+have.tests">
96 <isset property="netbeans.home"/>
97 <isset property="have.tests"/>
100 <condition property="no.javadoc.preview">
102 <isset property="javadoc.preview"/>
103 <isfalse value="${javadoc.preview}"/>
106 <property name="run.jvmargs" value=""/>
107 <property name="javac.compilerargs" value=""/>
108 <property name="work.dir" value="${basedir}"/>
109 <condition property="no.deps">
111 <istrue value="${no.dependencies}"/>
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}">
120 <isset property="javadoc.encoding"/>
122 <equals arg1="${javadoc.encoding}" arg2=""/>
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}"/>
133 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
135 <isset property="jaxws.endorsed.dir"/>
136 <available file="nbproject/jaxws-build.xml"/>
140 <target name="-post-init">
141 <!-- Empty placeholder for easier customization. -->
142 <!-- You can override this target in the ../build.xml file. -->
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>
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"/>
161 <property name="@{name}" value="${@{value}}"/>
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"/>
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}">
178 <path path="@{classpath}"/>
180 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
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"/>
190 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
192 <path path="@{classpath}"/>
197 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
198 <attribute default="${build.classes.dir}" name="destdir"/>
200 <fail unless="javac.includes">Must set javac.includes</fail>
201 <pathconvert pathsep="," property="javac.includes.binary">
203 <filelist dir="@{destdir}" files="${javac.includes}"/>
205 <globmapper from="*.java" to="*.class"/>
208 <files includes="${javac.includes.binary}"/>
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"/>
225 <scalac addparams="@{addparams}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includes="@{includes}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="jvm-${javac.target}">
227 <path path="@{classpath}"/>
228 <fileset dir="${scala.lib}">
229 <include name="**/*.jar"/>
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"/>
241 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
243 <path path="@{classpath}"/>
248 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
249 <attribute default="${build.classes.dir}" name="destdir"/>
251 <fail unless="javac.includes">Must set javac.includes</fail>
252 <pathconvert pathsep="," property="javac.includes.binary">
254 <filelist dir="@{destdir}" files="${javac.includes}"/>
256 <globmapper from="*.scala" to="*.class"/>
259 <files includes="${javac.includes.binary}"/>
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"/>
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}"/>
277 <path path="${run.test.classpath}"/>
278 <fileset dir="${scala.lib}">
279 <include name="**/*.jar"/>
283 <propertyref prefix="test-sys-prop."/>
284 <mapper from="test-sys-prop.*" to="*" type="glob"/>
286 <formatter type="brief" usefile="false"/>
287 <formatter type="xml"/>
288 <jvmarg line="${run.jvmargs}"/>
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"/>
299 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
301 <path path="@{classpath}"/>
306 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/scala-project/1">
307 <attribute default="${build.classes.dir}" name="dir"/>
310 <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
315 <target name="-init-debug-args">
316 <property name="version-output" value="java version "${ant.java.version}"/>
317 <condition property="have-jdk-older-than-1.4">
319 <contains string="${version-output}" substring="java version "1.0"/>
320 <contains string="${version-output}" substring="java version "1.1"/>
321 <contains string="${version-output}" substring="java version "1.2"/>
322 <contains string="${version-output}" substring="java version "1.3"/>
325 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
326 <istrue value="${have-jdk-older-than-1.4}"/>
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"/>
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}"/>
340 <path path="@{classpath}"/>
341 <fileset dir="${scala.lib}">
342 <include name="**/*.jar"/>
346 <propertyref prefix="run-sys-prop."/>
347 <mapper from="run-sys-prop.*" to="*" type="glob"/>
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"/>
359 <java classname="@{classname}" dir="${work.dir}" fork="true">
360 <jvmarg line="${run.jvmargs}"/>
362 <path path="${run.classpath}"/>
363 <fileset dir="${scala.lib}">
364 <include name="**/*.jar"/>
368 <propertyref prefix="run-sys-prop."/>
369 <mapper from="run-sys-prop.*" to="*" type="glob"/>
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}"/>
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"/>
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}"/>
393 <target name="-pre-compile">
394 <!-- Empty placeholder for easier customization. -->
395 <!-- You can override this target in the ../build.xml file. -->
397 <target if="do.depend.true" name="-compile-depend">
398 <scalaProject1:depend/>
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}"/>
406 <target name="-post-compile">
407 <!-- Empty placeholder for easier customization. -->
408 <!-- You can override this target in the ../build.xml file. -->
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. -->
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}"/>
420 <target name="-post-compile-single">
421 <!-- Empty placeholder for easier customization. -->
422 <!-- You can override this target in the ../build.xml file. -->
424 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
430 <target depends="init" name="-pre-pre-jar">
431 <dirname file="${dist.jar}" property="dist.jar.dir"/>
432 <mkdir dir="${dist.jar.dir}"/>
434 <target name="-pre-jar">
435 <!-- Empty placeholder for easier customization. -->
436 <!-- You can override this target in the ../build.xml file. -->
438 <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
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}"/>
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>
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}"/>
457 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
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=""/>
465 <pathconvert pathsep=" " property="jar.classpath">
466 <path path="${run.classpath.without.build.classes.dir}"/>
469 <globmapper from="*" to="lib/*"/>
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}"/>
476 <attribute name="Main-Class" value="${main.class}"/>
477 <attribute name="Class-Path" value="${jar.classpath}"/>
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>
484 <target name="-post-jar">
485 <!-- Empty placeholder for easier customization. -->
486 <!-- You can override this target in the ../build.xml file. -->
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"/>
494 <target depends="init,compile" description="Run a main class." name="run">
497 <arg line="${application.args}"/>
499 </scalaProject1:java>
501 <target name="-do-not-recompile">
502 <property name="javac.includes.binary" value=""/>
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}"/>
513 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
514 <scalaProject1:nbjpdastart name="${debug.class}"/>
516 <target depends="init,compile" name="-debug-start-debuggee">
517 <scalaProject1:debug>
519 <arg line="${application.args}"/>
521 </scalaProject1:debug>
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}"/>
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}"/>
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"/>
537 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
538 <scalaProject1:nbjpdareload/>
540 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
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}">
550 <path path="${javac.classpath}"/>
552 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
553 <filename name="**/*.java"/>
557 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
558 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
560 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
562 =========================
563 JUNIT COMPILATION SECTION
564 =========================
566 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
567 <mkdir dir="${build.test.classes.dir}"/>
569 <target name="-pre-compile-test">
570 <!-- Empty placeholder for easier customization. -->
571 <!-- You can override this target in the ../build.xml file. -->
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}"/>
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}"/>
582 <target name="-post-compile-test">
583 <!-- Empty placeholder for easier customization. -->
584 <!-- You can override this target in the ../build.xml file. -->
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. -->
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}"/>
599 <target name="-post-compile-test-single">
600 <!-- Empty placeholder for easier customization. -->
601 <!-- You can override this target in the ../build.xml file. -->
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"/>
605 =======================
606 JUNIT EXECUTION SECTION
607 =======================
609 <target depends="init" if="have.tests" name="-pre-test-run">
610 <mkdir dir="${build.test.results.dir}"/>
612 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
613 <scalaProject1:junit testincludes="**/*Test.class"/>
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>
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}"/>
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}"/>
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>
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"/>
633 =======================
634 JUNIT DEBUGGING SECTION
635 =======================
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}">
645 <propertyref prefix="test-sys-prop."/>
646 <mapper from="test-sys-prop.*" to="*" type="glob"/>
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}"/>
653 </scalaProject1:debug>
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}"/>
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}"/>
662 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
664 =========================
665 APPLET EXECUTION SECTION
666 =========================
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">
672 <arg value="${applet.url}"/>
674 </scalaProject1:java>
677 =========================
678 APPLET DEBUGGING SECTION
679 =========================
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">
685 <arg value="${applet.url}"/>
687 </scalaProject1:debug>
689 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
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}"/>
700 <target name="-post-clean">
701 <!-- Empty placeholder for easier customization. -->
702 <!-- You can override this target in the ../build.xml file. -->
704 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>