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.compiler}/../scala-reflect.jar"/>
54 <pathelement location="${scala.library}"/>
58 <target depends="-pre-init,-init-private" name="-init-user">
59 <property file="${user.properties.file}"/>
60 <!-- The two properties below are usually overridden -->
61 <!-- by the active platform. Just a fallback. -->
62 <property name="default.javac.source" value="1.5"/>
63 <property name="default.javac.target" value="1.5"/>
65 <target depends="-pre-init,-init-private,-init-user" name="-init-project">
66 <property file="nbproject/configs/${config}.properties"/>
67 <property file="nbproject/project.properties"/>
69 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
70 <available file="${manifest.file}" property="manifest.available"/>
71 <condition property="manifest.available+main.class">
73 <isset property="manifest.available"/>
74 <isset property="main.class"/>
76 <equals arg1="${main.class}" arg2="" trim="true"/>
80 <condition property="manifest.available+main.class+mkdist.available">
82 <istrue value="${manifest.available+main.class}"/>
83 <isset property="libs.CopyLibs.classpath"/>
86 <condition property="have.tests">
88 <available file="${test.src.dir}"/>
91 <condition property="have.sources">
93 <available file="${src.dir}"/>
96 <condition property="netbeans.home+have.tests">
98 <isset property="netbeans.home"/>
99 <isset property="have.tests"/>
102 <condition property="no.javadoc.preview">
104 <isset property="javadoc.preview"/>
105 <isfalse value="${javadoc.preview}"/>
108 <property name="run.jvmargs" value=""/>
109 <property name="javac.compilerargs" value=""/>
110 <property name="work.dir" value="${basedir}"/>
111 <condition property="no.deps">
113 <istrue value="${no.dependencies}"/>
116 <property name="javac.debug" value="true"/>
117 <property name="javadoc.preview" value="true"/>
118 <property name="application.args" value=""/>
119 <property name="source.encoding" value="${file.encoding}"/>
120 <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
122 <isset property="javadoc.encoding"/>
124 <equals arg1="${javadoc.encoding}" arg2=""/>
128 <property name="javadoc.encoding.used" value="${source.encoding}"/>
129 <property name="includes" value="**"/>
130 <property name="excludes" value=""/>
131 <property name="extdirs" value=" "/>
132 <property name="do.depend" value="false"/>
133 <condition property="do.depend.true">
134 <istrue value="${do.depend}"/>
136 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
138 <isset property="jaxws.endorsed.dir"/>
139 <available file="nbproject/jaxws-build.xml"/>
143 <target name="-post-init">
144 <!-- Empty placeholder for easier customization. -->
145 <!-- You can override this target in the ../build.xml file. -->
147 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
148 <fail unless="src.dir">Must set src.dir</fail>
149 <fail unless="test.src.dir">Must set test.src.dir</fail>
150 <fail unless="build.dir">Must set build.dir</fail>
151 <fail unless="dist.dir">Must set dist.dir</fail>
152 <fail unless="build.classes.dir">Must set build.classes.dir</fail>
153 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
154 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
155 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
156 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
157 <fail unless="dist.jar">Must set dist.jar</fail>
159 <target name="-init-macrodef-property">
160 <macrodef name="property" uri="http://www.netbeans.org/ns/scala-project/1">
161 <attribute name="name"/>
162 <attribute name="value"/>
164 <property name="@{name}" value="${@{value}}"/>
168 <target name="-init-macrodef-javac">
169 <macrodef name="javac" uri="http://www.netbeans.org/ns/scala-project/1">
170 <attribute default="${src.dir}" name="srcdir"/>
171 <attribute default="${build.classes.dir}" name="destdir"/>
172 <attribute default="${javac.classpath}" name="classpath"/>
173 <attribute default="${includes}" name="includes"/>
174 <attribute default="${excludes}" name="excludes"/>
175 <attribute default="${javac.debug}" name="debug"/>
176 <attribute default="" name="sourcepath"/>
177 <element name="customize" optional="true"/>
179 <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}">
181 <path path="@{classpath}"/>
182 <fileset dir="${scala.lib}">
183 <include name="**/*.jar"/>
186 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
191 <macrodef name="depend" uri="http://www.netbeans.org/ns/scala-project/1">
192 <attribute default="${src.dir}" name="srcdir"/>
193 <attribute default="${build.classes.dir}" name="destdir"/>
194 <attribute default="${javac.classpath}" name="classpath"/>
196 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
199 <pathelement path="@{classpath}"/>
200 <fileset dir="${scala.lib}">
201 <include name="**/*.jar"/>
203 <pathelement location="${build.classes.dir}"/>
209 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
210 <attribute default="${build.classes.dir}" name="destdir"/>
212 <fail unless="javac.includes">Must set javac.includes</fail>
213 <pathconvert pathsep="," property="javac.includes.binary">
215 <filelist dir="@{destdir}" files="${javac.includes}"/>
217 <globmapper from="*.java" to="*.class"/>
220 <files includes="${javac.includes.binary}"/>
225 <target name="-init-macrodef-scalac">
226 <macrodef name="scalac" uri="http://www.netbeans.org/ns/scala-project/1">
227 <attribute default="${src.dir}" name="srcdir"/>
228 <attribute default="${build.classes.dir}" name="destdir"/>
229 <attribute default="${javac.classpath}" name="classpath"/>
230 <attribute default="${extdirs}" name="extdirs"/>
231 <attribute default="${includes}" name="includes"/>
232 <attribute default="${excludes}" name="excludes"/>
233 <attribute default="${scalac.compilerargs}" name="addparams"/>
234 <attribute default="" name="sourcepath"/>
235 <element name="customize" optional="true"/>
237 <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}">
240 <pathelement path="@{classpath}"/>
241 <fileset dir="${scala.lib}">
242 <include name="**/*.jar"/>
244 <pathelement location="${build.classes.dir}"/>
251 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
252 <attribute default="${build.classes.dir}" name="destdir"/>
254 <fail unless="javac.includes">Must set javac.includes</fail>
255 <pathconvert pathsep="," property="javac.includes.binary">
257 <filelist dir="@{destdir}" files="${javac.includes}"/>
259 <globmapper from="*.scala" to="*.class"/>
262 <files includes="${javac.includes.binary}"/>
267 <target name="-init-macrodef-junit">
268 <macrodef name="junit" uri="http://www.netbeans.org/ns/scala-project/1">
269 <attribute default="${includes}" name="includes"/>
270 <attribute default="${excludes}" name="excludes"/>
271 <attribute default="**" name="testincludes"/>
273 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
274 <batchtest todir="${build.test.results.dir}">
275 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
276 <filename name="@{testincludes}"/>
280 <path path="${run.test.classpath}"/>
281 <fileset dir="${scala.lib}">
282 <include name="**/*.jar"/>
286 <propertyref prefix="test-sys-prop."/>
287 <mapper from="test-sys-prop.*" to="*" type="glob"/>
289 <formatter type="brief" usefile="false"/>
290 <formatter type="xml"/>
291 <jvmarg line="${run.jvmargs}"/>
296 <target name="-init-macrodef-nbjpda">
297 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/scala-project/1">
298 <attribute default="${main.class}" name="name"/>
299 <attribute default="${debug.classpath}" name="classpath"/>
300 <attribute default="" name="stopclassname"/>
302 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
304 <path path="@{classpath}"/>
309 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/scala-project/1">
310 <attribute default="${build.classes.dir}" name="dir"/>
313 <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
318 <target name="-init-debug-args">
319 <property name="version-output" value="java version "${ant.java.version}"/>
320 <condition property="have-jdk-older-than-1.4">
322 <contains string="${version-output}" substring="java version "1.0"/>
323 <contains string="${version-output}" substring="java version "1.1"/>
324 <contains string="${version-output}" substring="java version "1.2"/>
325 <contains string="${version-output}" substring="java version "1.3"/>
328 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
329 <istrue value="${have-jdk-older-than-1.4}"/>
332 <target depends="-init-debug-args" name="-init-macrodef-debug">
333 <macrodef name="debug" uri="http://www.netbeans.org/ns/scala-project/1">
334 <attribute default="${main.class}" name="classname"/>
335 <attribute default="${debug.classpath}" name="classpath"/>
336 <element name="customize" optional="true"/>
338 <java classname="@{classname}" dir="${work.dir}" fork="true">
339 <jvmarg line="${debug-args-line}"/>
340 <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
341 <jvmarg line="${run.jvmargs}"/>
343 <path path="@{classpath}"/>
344 <fileset dir="${scala.lib}">
345 <include name="**/*.jar"/>
349 <propertyref prefix="run-sys-prop."/>
350 <mapper from="run-sys-prop.*" to="*" type="glob"/>
357 <target name="-init-macrodef-java">
358 <macrodef name="java" uri="http://www.netbeans.org/ns/scala-project/1">
359 <attribute default="${main.class}" name="classname"/>
360 <element name="customize" optional="true"/>
362 <java classname="@{classname}" dir="${work.dir}" fork="true">
363 <jvmarg line="${run.jvmargs}"/>
365 <path path="${run.classpath}"/>
366 <fileset dir="${scala.lib}">
367 <include name="**/*.jar"/>
371 <propertyref prefix="run-sys-prop."/>
372 <mapper from="run-sys-prop.*" to="*" type="glob"/>
379 <target name="-init-presetdef-jar">
380 <presetdef name="jar" uri="http://www.netbeans.org/ns/scala-project/1">
381 <jar compress="${jar.compress}" jarfile="${dist.jar}">
382 <scalaProject1:fileset dir="${build.classes.dir}"/>
386 <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"/>
392 <target depends="init" name="deps-jar" unless="no.deps"/>
393 <target depends="init,deps-jar" name="-pre-pre-compile">
394 <mkdir dir="${build.classes.dir}"/>
396 <target name="-pre-compile">
397 <!-- Empty placeholder for easier customization. -->
398 <!-- You can override this target in the ../build.xml file. -->
400 <target if="do.depend.true" name="-compile-depend">
401 <scalaProject1:depend/>
403 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
404 <scalaProject1:scalac/>
405 <scalaProject1:javac/>
406 <copy todir="${build.classes.dir}">
407 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes} " includes="${includes}"/>
410 <target name="-post-compile">
411 <!-- Empty placeholder for easier customization. -->
412 <!-- You can override this target in the ../build.xml file. -->
414 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
415 <target name="-pre-compile-single">
416 <!-- Empty placeholder for easier customization. -->
417 <!-- You can override this target in the ../build.xml file. -->
419 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
420 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
421 <scalaProject1:force-recompile/>
422 <scalaProject1:scalac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
424 <target name="-post-compile-single">
425 <!-- Empty placeholder for easier customization. -->
426 <!-- You can override this target in the ../build.xml file. -->
428 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
434 <target depends="init" name="-pre-pre-jar">
435 <dirname file="${dist.jar}" property="dist.jar.dir"/>
436 <mkdir dir="${dist.jar.dir}"/>
438 <target name="-pre-jar">
439 <!-- Empty placeholder for easier customization. -->
440 <!-- You can override this target in the ../build.xml file. -->
442 <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
445 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
446 <scalaProject1:jar manifest="${manifest.file}"/>
448 <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">
449 <scalaProject1:jar manifest="${manifest.file}">
450 <scalaProject1:manifest>
451 <scalaProject1:attribute name="Main-Class" value="${main.class}"/>
452 </scalaProject1:manifest>
454 <echo>To run this application from the command line without Ant, try:</echo>
455 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
456 <property location="${dist.jar}" name="dist.jar.resolved"/>
457 <pathconvert property="run.classpath.with.dist.jar">
458 <path path="${run.classpath}"/>
459 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
461 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}
464 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
465 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
466 <pathconvert property="run.classpath.without.build.classes.dir">
467 <path path="${run.classpath}"/>
468 <map from="${build.classes.dir.resolved}" to=""/>
470 <pathconvert pathsep=" " property="jar.classpath">
471 <path path="${run.classpath.without.build.classes.dir}"/>
474 <globmapper from="*" to="lib/*"/>
477 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
478 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
479 <fileset dir="${build.classes.dir}"/>
481 <attribute name="Main-Class" value="${main.class}"/>
482 <attribute name="Class-Path" value="${jar.classpath}"/>
485 <echo>To run this application from the command line without Ant, try:</echo>
486 <property location="${dist.jar}" name="dist.jar.resolved"/>
487 <echo>java -jar "${dist.jar.resolved}"
490 <target name="-post-jar">
491 <!-- Empty placeholder for easier customization. -->
492 <!-- You can override this target in the ../build.xml file. -->
494 <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"/>
500 <target depends="init,compile" description="Run a main class." name="run">
503 <arg line="${application.args}"/>
505 </scalaProject1:java>
507 <target name="-do-not-recompile">
508 <property name="javac.includes.binary" value=""/>
510 <target depends="init,-do-not-recompile,compile-single" name="run-single">
511 <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
512 <scalaProject1:java classname="${run.class}"/>
519 <target depends="init" if="netbeans.home" name="-debug-start-debugger">
520 <scalaProject1:nbjpdastart name="${debug.class}"/>
522 <target depends="init,compile" name="-debug-start-debuggee">
523 <scalaProject1:debug>
525 <arg line="${application.args}"/>
527 </scalaProject1:debug>
529 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
530 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
531 <scalaProject1:nbjpdastart stopclassname="${main.class}"/>
533 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
534 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
535 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
536 <scalaProject1:debug classname="${debug.class}"/>
538 <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
539 <target depends="init" name="-pre-debug-fix">
540 <fail unless="fix.includes">Must set fix.includes</fail>
541 <property name="javac.includes" value="${fix.includes}.java"/>
543 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
544 <scalaProject1:nbjpdareload/>
546 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
552 <target depends="init" name="-javadoc-build">
553 <mkdir dir="${dist.javadoc.dir}"/>
554 <scaladoc addparams="${javadoc.additionalparam}" deprecation="yes" destdir="${dist.javadoc.dir}" doctitle="${javadoc.windowtitle}" encoding="${javadoc.encoding.used}" srcdir="${src.dir}" unchecked="yes">
556 <path path="${javac.classpath}"/>
557 <fileset dir="${scala.lib}">
558 <include name="**/*.jar"/>
563 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
564 <nbbrowse file="${dist.javadoc.dir}/index.html"/>
566 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
568 =========================
569 JUNIT COMPILATION SECTION
570 =========================
572 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
573 <mkdir dir="${build.test.classes.dir}"/>
575 <target name="-pre-compile-test">
576 <!-- Empty placeholder for easier customization. -->
577 <!-- You can override this target in the ../build.xml file. -->
579 <target if="do.depend.true" name="-compile-test-depend">
580 <scalaProject1:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
582 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
583 <scalaProject1:scalac classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
584 <copy todir="${build.test.classes.dir}">
585 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes} " includes="${includes}"/>
588 <target name="-post-compile-test">
589 <!-- Empty placeholder for easier customization. -->
590 <!-- You can override this target in the ../build.xml file. -->
592 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
593 <target name="-pre-compile-test-single">
594 <!-- Empty placeholder for easier customization. -->
595 <!-- You can override this target in the ../build.xml file. -->
597 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
598 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
599 <scalaProject1:force-recompile destdir="${build.test.classes.dir}"/>
600 <scalaProject1:scalac classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
601 <copy todir="${build.test.classes.dir}">
602 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes} " includes="${includes}"/>
605 <target name="-post-compile-test-single">
606 <!-- Empty placeholder for easier customization. -->
607 <!-- You can override this target in the ../build.xml file. -->
609 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
611 =======================
612 JUNIT EXECUTION SECTION
613 =======================
615 <target depends="init" if="have.tests" name="-pre-test-run">
616 <mkdir dir="${build.test.results.dir}"/>
618 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
619 <scalaProject1:junit testincludes="**/*Test.class"/>
621 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
622 <fail if="tests.failed">Some tests failed; see details above.</fail>
624 <target depends="init" if="have.tests" name="test-report"/>
625 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
626 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
627 <target depends="init" if="have.tests" name="-pre-test-run-single">
628 <mkdir dir="${build.test.results.dir}"/>
630 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
631 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
632 <scalaProject1:junit excludes="" includes="${test.includes}"/>
634 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
635 <fail if="tests.failed">Some tests failed; see details above.</fail>
637 <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"/>
639 =======================
640 JUNIT DEBUGGING SECTION
641 =======================
643 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
644 <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
645 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
646 <delete file="${test.report.file}"/>
647 <mkdir dir="${build.test.results.dir}"/>
648 <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}">
651 <propertyref prefix="test-sys-prop."/>
652 <mapper from="test-sys-prop.*" to="*" type="glob"/>
654 <arg value="${test.class}"/>
655 <arg value="showoutput=true"/>
656 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
657 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
659 </scalaProject1:debug>
661 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
662 <scalaProject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
664 <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
665 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
666 <scalaProject1:nbjpdareload dir="${build.test.classes.dir}"/>
668 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
670 =========================
671 APPLET EXECUTION SECTION
672 =========================
674 <target depends="init,compile-single" name="run-applet">
675 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
676 <scalaProject1:java classname="sun.applet.AppletViewer">
678 <arg value="${applet.url}"/>
680 </scalaProject1:java>
683 =========================
684 APPLET DEBUGGING SECTION
685 =========================
687 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
688 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
689 <scalaProject1:debug classname="sun.applet.AppletViewer">
691 <arg value="${applet.url}"/>
693 </scalaProject1:debug>
695 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
701 <target depends="init" name="deps-clean" unless="no.deps"/>
702 <target depends="init" name="-do-clean">
703 <delete dir="${build.dir}"/>
704 <delete dir="${dist.dir}"/>
706 <target name="-post-clean">
707 <!-- Empty placeholder for easier customization. -->
708 <!-- You can override this target in the ../build.xml file. -->
710 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>