Example demostrating how to use trait to provide effective implementation of linked list while keeping encapsulation
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:
23 <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="Effective_List-impl">
24 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
26 ======================
27 INITIALIZATION SECTION
28 ======================
30 <target name="-pre-init">
31 <!-- Empty placeholder for easier customization. -->
32 <!-- You can override this target in the ../build.xml file. -->
34 <target depends="-pre-init" name="-init-private">
35 <property file="nbproject/private/config.properties"/>
36 <property file="nbproject/private/configs/${config}.properties"/>
37 <property file="nbproject/private/private.properties"/>
38 <property environment="env"/>
39 <condition property="scala.home" value="${env.SCALA_HOME}">
40 <isset property="env.SCALA_HOME"/>
42 <fail unless="scala.home">
43 You must set SCALA_HOME or environment property and append "-J-Dscala.home=scalahomepath"
44 property to the end of "netbeans_default_options" in NetBeansInstallationPath/etc/netbeans.conf to point to
45 Scala installation directory.
47 <property name="scala.compiler" value="${scala.home}/lib/scala-compiler.jar"/>
48 <property name="scala.library" value="${scala.home}/lib/scala-library.jar"/>
49 <property name="scala.lib" value="${scala.home}/lib"/>
50 <taskdef resource="scala/tools/ant/antlib.xml">
52 <pathelement location="${scala.compiler}"/>
53 <pathelement location="${scala.library}"/>
57 <target depends="-pre-init,-init-private" name="-init-user">
58 <property file="${user.properties.file}"/>
59 <!-- The two properties below are usually overridden -->
60 <!-- by the active platform. Just a fallback. -->
61 <property name="default.javac.source" value="1.5"/>
62 <property name="default.javac.target" value="1.5"/>
64 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
65 <property file="nbproject/configs/${config}.properties"/>
66 <property file="nbproject/project.properties"/>
68 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
69 <available file="${manifest.file}" property="manifest.available"/>
70 <condition property="manifest.available+main.class">
72 <isset property="manifest.available"/>
73 <isset property="main.class"/>
75 <equals arg1="${main.class}" arg2="" trim="true"/>
79 <condition property="manifest.available+main.class+mkdist.available">
81 <istrue value="${manifest.available+main.class}"/>
82 <isset property="libs.CopyLibs.classpath"/>
85 <condition property="have.tests">
87 <available file="${test.src.dir}"/>
90 <condition property="have.sources">
92 <available file="${src.dir}"/>
95 <condition property="netbeans.home+have.tests">
97 <isset property="netbeans.home"/>
98 <isset property="have.tests"/>
101 <condition property="no.javadoc.preview">
103 <isset property="javadoc.preview"/>
104 <isfalse value="${javadoc.preview}"/>
107 <property name="run.jvmargs" value=""/>
108 <property name="javac.compilerargs" value=""/>
109 <property name="work.dir" value="${basedir}"/>
110 <condition property="no.deps">
112 <istrue value="${no.dependencies}"/>
115 <property name="javac.debug" value="true"/>
116 <property name="javadoc.preview" value="true"/>
117 <property name="application.args" value=""/>
118 <property name="source.encoding" value="${file.encoding}"/>
119 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
121 <isset property="javadoc.encoding"/>
123 <equals arg1="${javadoc.encoding}" arg2=""/>
127 <property name="javadoc.encoding.used" value="${source.encoding}"/>
128 <property name="includes" value="**"/>
129 <property name="excludes" value=""/>
130 <property name="extdirs" value=" "/>
131 <property name="do.depend" value="false"/>
132 <condition property="do.depend.true">
133 <istrue value="${do.depend}"/>
135 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
137 <isset property="jaxws.endorsed.dir"/>
138 <available file="nbproject/jaxws-build.xml"/>
142 <target name="-post-init">
143 <!-- Empty placeholder for easier customization. -->
144 <!-- You can override this target in the ../build.xml file. -->
146 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
147 <fail unless="src.dir">Must set src.dir</fail>
148 <fail unless="test.src.dir">Must set test.src.dir</fail>
149 <fail unless="build.dir">Must set build.dir</fail>
150 <fail unless="dist.dir">Must set dist.dir</fail>
151 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
152 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
153 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
154 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
155 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
156 <fail unless="dist.jar">Must set dist.jar</fail>
158 <target name="-init-macrodef-property">
159 <macrodef name="property" uri="http://www.netbeans.org/ns/scala-project/1">
160 <attribute name="name"/>
161 <attribute name="value"/>
163 <property name="@{name}" value="${@{value}}"/>
167 <target name="-init-macrodef-javac">
168 <macrodef name="javac" uri="http://www.netbeans.org/ns/scala-project/1">
169 <attribute default="${src.dir}" name="srcdir"/>
170 <attribute default="${build.classes.dir}" name="destdir"/>
171 <attribute default="${javac.classpath}" name="classpath"/>
172 <attribute default="${includes}" name="includes"/>
173 <attribute default="${excludes}" name="excludes"/>
174 <attribute default="${javac.debug}" name="debug"/>
175 <attribute default="" name="sourcepath"/>
176 <element name="customize" optional="true"/>
178 <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}">
180 <path path="@{classpath}"/>
181 <fileset dir="${scala.lib}">
182 <include name="**/*.jar"/>
185 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
190 <macrodef name="depend" uri="http://www.netbeans.org/ns/scala-project/1">
191 <attribute default="${src.dir}" name="srcdir"/>
192 <attribute default="${build.classes.dir}" name="destdir"/>
193 <attribute default="${javac.classpath}" name="classpath"/>
195 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
198 <pathelement path="@{classpath}"/>
199 <fileset dir="${scala.lib}">
200 <include name="**/*.jar"/>
202 <pathelement location="${build.classes.dir}"/>
208 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
209 <attribute default="${build.classes.dir}" name="destdir"/>
211 <fail unless="javac.includes">Must set javac.includes</fail>
212 <pathconvert pathsep="," property="javac.includes.binary">
214 <filelist dir="@{destdir}" files="${javac.includes}"/>
216 <globmapper from="*.java" to="*.class"/>
219 <files includes="${javac.includes.binary}"/>
224 <target name="-init-macrodef-scalac">
225 <macrodef name="scalac" uri="http://www.netbeans.org/ns/scala-project/1">
226 <attribute default="${src.dir}" name="srcdir"/>
227 <attribute default="${build.classes.dir}" name="destdir"/>
228 <attribute default="${javac.classpath}" name="classpath"/>
229 <attribute default="${extdirs}" name="extdirs"/>
230 <attribute default="${includes}" name="includes"/>
231 <attribute default="${excludes}" name="excludes"/>
232 <attribute default="${scalac.compilerargs}" name="addparams"/>
233 <attribute default="" name="sourcepath"/>
234 <element name="customize" optional="true"/>
236 <scalac addparams="-make:transitive -dependencyfile "${basedir}/${build.dir}/.scala_dependencies" @{addparams}" deprecation="${scalac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" extdirs="@{extdirs}" force="yes" fork="true" includes="@{includes}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="jvm-${javac.target}" unchecked="${scalac.unchecked}">
239 <pathelement path="@{classpath}"/>
240 <fileset dir="${scala.lib}">
241 <include name="**/*.jar"/>
243 <pathelement location="${build.classes.dir}"/>
250 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
251 <attribute default="${build.classes.dir}" name="destdir"/>
253 <fail unless="javac.includes">Must set javac.includes</fail>
254 <pathconvert pathsep="," property="javac.includes.binary">
256 <filelist dir="@{destdir}" files="${javac.includes}"/>
258 <globmapper from="*.scala" to="*.class"/>
261 <files includes="${javac.includes.binary}"/>
266 <target name="-init-macrodef-junit">
267 <macrodef name="junit" uri="http://www.netbeans.org/ns/scala-project/1">
268 <attribute default="${includes}" name="includes"/>
269 <attribute default="${excludes}" name="excludes"/>
270 <attribute default="**" name="testincludes"/>
272 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
273 <batchtest todir="${build.test.results.dir}">
274 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
275 <filename name="@{testincludes}"/>
279 <path path="${run.test.classpath}"/>
280 <fileset dir="${scala.lib}">
281 <include name="**/*.jar"/>
285 <propertyref prefix="test-sys-prop."/>
286 <mapper from="test-sys-prop.*" to="*" type="glob"/>
288 <formatter type="brief" usefile="false"/>
289 <formatter type="xml"/>
290 <jvmarg line="${run.jvmargs}"/>
295 <target name="-init-macrodef-nbjpda">
296 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/scala-project/1">
297 <attribute default="${main.class}" name="name"/>
298 <attribute default="${debug.classpath}" name="classpath"/>
299 <attribute default="" name="stopclassname"/>
301 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
303 <path path="@{classpath}"/>
308 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/scala-project/1">
309 <attribute default="${build.classes.dir}" name="dir"/>
312 <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
317 <target name="-init-debug-args">
318 <property name="version-output" value="java version "${ant.java.version}"/>
319 <condition property="have-jdk-older-than-1.4">
321 <contains string="${version-output}" substring="java version "1.0"/>
322 <contains string="${version-output}" substring="java version "1.1"/>
323 <contains string="${version-output}" substring="java version "1.2"/>
324 <contains string="${version-output}" substring="java version "1.3"/>
327 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
328 <istrue value="${have-jdk-older-than-1.4}"/>
331 <target depends="-init-debug-args" name="-init-macrodef-debug">
332 <macrodef name="debug" uri="http://www.netbeans.org/ns/scala-project/1">
333 <attribute default="${main.class}" name="classname"/>
334 <attribute default="${debug.classpath}" name="classpath"/>
335 <element name="customize" optional="true"/>
337 <java classname="@{classname}" dir="${work.dir}" fork="true">
338 <jvmarg line="${debug-args-line}"/>
339 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
340 <jvmarg line="${run.jvmargs}"/>
342 <path path="@{classpath}"/>
343 <fileset dir="${scala.lib}">
344 <include name="**/*.jar"/>
348 <propertyref prefix="run-sys-prop."/>
349 <mapper from="run-sys-prop.*" to="*" type="glob"/>
356 <target name="-init-macrodef-java">
357 <macrodef name="java" uri="http://www.netbeans.org/ns/scala-project/1">
358 <attribute default="${main.class}" name="classname"/>
359 <element name="customize" optional="true"/>
361 <java classname="@{classname}" dir="${work.dir}" fork="true">
362 <jvmarg line="${run.jvmargs}"/>
364 <path path="${run.classpath}"/>
365 <fileset dir="${scala.lib}">
366 <include name="**/*.jar"/>
370 <propertyref prefix="run-sys-prop."/>
371 <mapper from="run-sys-prop.*" to="*" type="glob"/>
378 <target name="-init-presetdef-jar">
379 <presetdef name="jar" uri="http://www.netbeans.org/ns/scala-project/1">
380 <jar compress="${jar.compress}" jarfile="${dist.jar}">
381 <scalaProject1:fileset dir="${build.classes.dir}"/>
385 <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"/>
391 <target depends="init" name="deps-jar" unless="no.deps"/>
392 <target depends="init,deps-jar" name="-pre-pre-compile">
393 <mkdir dir="${build.classes.dir}"/>
395 <target name="-pre-compile">
396 <!-- Empty placeholder for easier customization. -->
397 <!-- You can override this target in the ../build.xml file. -->
399 <target if="do.depend.true" name="-compile-depend">
400 <scalaProject1:depend/>
402 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
403 <scalaProject1:scalac/>
404 <scalaProject1:javac/>
405 <copy todir="${build.classes.dir}">
406 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes} " includes="${includes}"/>
409 <target name="-post-compile">
410 <!-- Empty placeholder for easier customization. -->
411 <!-- You can override this target in the ../build.xml file. -->
413 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
414 <target name="-pre-compile-single">
415 <!-- Empty placeholder for easier customization. -->
416 <!-- You can override this target in the ../build.xml file. -->
418 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
419 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
420 <scalaProject1:force-recompile/>
421 <scalaProject1:scalac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
423 <target name="-post-compile-single">
424 <!-- Empty placeholder for easier customization. -->
425 <!-- You can override this target in the ../build.xml file. -->
427 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
433 <target depends="init" name="-pre-pre-jar">
434 <dirname file="${dist.jar}" property="dist.jar.dir"/>
435 <mkdir dir="${dist.jar.dir}"/>
437 <target name="-pre-jar">
438 <!-- Empty placeholder for easier customization. -->
439 <!-- You can override this target in the ../build.xml file. -->
441 <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
444 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
445 <scalaProject1:jar manifest="${manifest.file}"/>
447 <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">
448 <scalaProject1:jar manifest="${manifest.file}">
449 <scalaProject1:manifest>
450 <scalaProject1:attribute name="Main-Class" value="${main.class}"/>
451 </scalaProject1:manifest>
453 <echo>To run this application from the command line without Ant, try:</echo>
454 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
455 <property location="${dist.jar}" name="dist.jar.resolved"/>
456 <pathconvert property="run.classpath.with.dist.jar">
457 <path path="${run.classpath}"/>
458 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
460 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}
463 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
464 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
465 <pathconvert property="run.classpath.without.build.classes.dir">
466 <path path="${run.classpath}"/>
467 <map from="${build.classes.dir.resolved}" to=""/>
469 <pathconvert pathsep=" " property="jar.classpath">
470 <path path="${run.classpath.without.build.classes.dir}"/>
473 <globmapper from="*" to="lib/*"/>
476 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
477 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
478 <fileset dir="${build.classes.dir}"/>
480 <attribute name="Main-Class" value="${main.class}"/>
481 <attribute name="Class-Path" value="${jar.classpath}"/>
484 <echo>To run this application from the command line without Ant, try:</echo>
485 <property location="${dist.jar}" name="dist.jar.resolved"/>
486 <echo>java -jar "${dist.jar.resolved}"
489 <target name="-post-jar">
490 <!-- Empty placeholder for easier customization. -->
491 <!-- You can override this target in the ../build.xml file. -->
493 <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"/>
499 <target depends="init,compile" description="Run a main class." name="run">
502 <arg line="${application.args}"/>
504 </scalaProject1:java>
506 <target name="-do-not-recompile">
507 <property name="javac.includes.binary" value=""/>
509 <target depends="init,-do-not-recompile,compile-single" name="run-single">
510 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
511 <scalaProject1:java classname="${run.class}"/>
518 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
519 <scalaProject1:nbjpdastart name="${debug.class}"/>
521 <target depends="init,compile" name="-debug-start-debuggee">
522 <scalaProject1:debug>
524 <arg line="${application.args}"/>
526 </scalaProject1:debug>
528 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
529 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
530 <scalaProject1:nbjpdastart stopclassname="${main.class}"/>
532 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
533 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
534 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
535 <scalaProject1:debug classname="${debug.class}"/>
537 <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
538 <target depends="init" name="-pre-debug-fix">
539 <fail unless="fix.includes">Must set fix.includes</fail>
540 <property name="javac.includes" value="${fix.includes}.java"/>
542 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
543 <scalaProject1:nbjpdareload/>
545 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
551 <target depends="init" name="-javadoc-build">
552 <mkdir dir="${dist.javadoc.dir}"/>
553 <scaladoc addparams="${javadoc.additionalparam}" deprecation="yes" destdir="${dist.javadoc.dir}" doctitle="${javadoc.windowtitle}" encoding="${javadoc.encoding.used}" srcdir="${src.dir}" unchecked="yes">
555 <path path="${javac.classpath}"/>
556 <fileset dir="${scala.lib}">
557 <include name="**/*.jar"/>
562 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
563 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
565 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
567 =========================
568 JUNIT COMPILATION SECTION
569 =========================
571 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
572 <mkdir dir="${build.test.classes.dir}"/>
574 <target name="-pre-compile-test">
575 <!-- Empty placeholder for easier customization. -->
576 <!-- You can override this target in the ../build.xml file. -->
578 <target if="do.depend.true" name="-compile-test-depend">
579 <scalaProject1:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
581 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
582 <scalaProject1:scalac classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
583 <copy todir="${build.test.classes.dir}">
584 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes} " includes="${includes}"/>
587 <target name="-post-compile-test">
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,-do-compile-test,-post-compile-test" name="compile-test"/>
592 <target name="-pre-compile-test-single">
593 <!-- Empty placeholder for easier customization. -->
594 <!-- You can override this target in the ../build.xml file. -->
596 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
597 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
598 <scalaProject1:force-recompile destdir="${build.test.classes.dir}"/>
599 <scalaProject1:scalac classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
600 <copy todir="${build.test.classes.dir}">
601 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes} " includes="${includes}"/>
604 <target name="-post-compile-test-single">
605 <!-- Empty placeholder for easier customization. -->
606 <!-- You can override this target in the ../build.xml file. -->
608 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
610 =======================
611 JUNIT EXECUTION SECTION
612 =======================
614 <target depends="init" if="have.tests" name="-pre-test-run">
615 <mkdir dir="${build.test.results.dir}"/>
617 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
618 <scalaProject1:junit testincludes="**/*Test.class"/>
620 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
621 <fail if="tests.failed">Some tests failed; see details above.</fail>
623 <target depends="init" if="have.tests" name="test-report"/>
624 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
625 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
626 <target depends="init" if="have.tests" name="-pre-test-run-single">
627 <mkdir dir="${build.test.results.dir}"/>
629 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
630 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
631 <scalaProject1:junit excludes="" includes="${test.includes}"/>
633 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
634 <fail if="tests.failed">Some tests failed; see details above.</fail>
636 <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"/>
638 =======================
639 JUNIT DEBUGGING SECTION
640 =======================
642 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
643 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
644 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
645 <delete file="${test.report.file}"/>
646 <mkdir dir="${build.test.results.dir}"/>
647 <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}">
650 <propertyref prefix="test-sys-prop."/>
651 <mapper from="test-sys-prop.*" to="*" type="glob"/>
653 <arg value="${test.class}"/>
654 <arg value="showoutput=true"/>
655 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
656 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
658 </scalaProject1:debug>
660 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
661 <scalaProject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
663 <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
664 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
665 <scalaProject1:nbjpdareload dir="${build.test.classes.dir}"/>
667 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
669 =========================
670 APPLET EXECUTION SECTION
671 =========================
673 <target depends="init,compile-single" name="run-applet">
674 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
675 <scalaProject1:java classname="sun.applet.AppletViewer">
677 <arg value="${applet.url}"/>
679 </scalaProject1:java>
682 =========================
683 APPLET DEBUGGING SECTION
684 =========================
686 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
687 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
688 <scalaProject1:debug classname="sun.applet.AppletViewer">
690 <arg value="${applet.url}"/>
692 </scalaProject1:debug>
694 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
700 <target depends="init" name="deps-clean" unless="no.deps"/>
701 <target depends="init" name="-do-clean">
702 <delete dir="${build.dir}"/>
703 <delete dir="${dist.dir}"/>
705 <target name="-post-clean">
706 <!-- Empty placeholder for easier customization. -->
707 <!-- You can override this target in the ../build.xml file. -->
709 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>