samples/effectivelist/nbproject/build-impl.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 20:46:27 +0100
changeset 408 9a439a79c6d0
parent 402 e25dbfce40e9
permissions -rw-r--r--
Use scala 2.10.4 to compile on JDK8
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 *** GENERATED FROM project.xml - DO NOT EDIT  ***
     4 ***         EDIT ../build.xml INSTEAD         ***
     5 
     6 For the purpose of easier reading the script
     7 is divided into following sections:
     8 
     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
    20 
    21         
    22         -->
    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"/>
    25     <!--
    26                 ======================
    27                 INITIALIZATION SECTION
    28                 ======================
    29             -->
    30     <target name="-pre-init">
    31         <!-- Empty placeholder for easier customization. -->
    32         <!-- You can override this target in the ../build.xml file. -->
    33     </target>
    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"/>
    41         </condition>
    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.
    46                 </fail>
    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">
    51             <classpath>
    52                 <pathelement location="${scala.compiler}"/>
    53                 <pathelement location="${scala.compiler}/../scala-reflect.jar"/>
    54                 <pathelement location="${scala.library}"/>
    55             </classpath>
    56         </taskdef>
    57     </target>
    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"/>
    64     </target>
    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"/>
    68     </target>
    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">
    72             <and>
    73                 <isset property="manifest.available"/>
    74                 <isset property="main.class"/>
    75                 <not>
    76                     <equals arg1="${main.class}" arg2="" trim="true"/>
    77                 </not>
    78             </and>
    79         </condition>
    80         <condition property="manifest.available+main.class+mkdist.available">
    81             <and>
    82                 <istrue value="${manifest.available+main.class}"/>
    83                 <isset property="libs.CopyLibs.classpath"/>
    84             </and>
    85         </condition>
    86         <condition property="have.tests">
    87             <or>
    88                 <available file="${test.src.dir}"/>
    89             </or>
    90         </condition>
    91         <condition property="have.sources">
    92             <or>
    93                 <available file="${src.dir}"/>
    94             </or>
    95         </condition>
    96         <condition property="netbeans.home+have.tests">
    97             <and>
    98                 <isset property="netbeans.home"/>
    99                 <isset property="have.tests"/>
   100             </and>
   101         </condition>
   102         <condition property="no.javadoc.preview">
   103             <and>
   104                 <isset property="javadoc.preview"/>
   105                 <isfalse value="${javadoc.preview}"/>
   106             </and>
   107         </condition>
   108         <property name="run.jvmargs" value=""/>
   109         <property name="javac.compilerargs" value=""/>
   110         <property name="work.dir" value="${basedir}"/>
   111         <condition property="no.deps">
   112             <and>
   113                 <istrue value="${no.dependencies}"/>
   114             </and>
   115         </condition>
   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}">
   121             <and>
   122                 <isset property="javadoc.encoding"/>
   123                 <not>
   124                     <equals arg1="${javadoc.encoding}" arg2=""/>
   125                 </not>
   126             </and>
   127         </condition>
   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}"/>
   135         </condition>
   136         <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
   137             <and>
   138                 <isset property="jaxws.endorsed.dir"/>
   139                 <available file="nbproject/jaxws-build.xml"/>
   140             </and>
   141         </condition>
   142     </target>
   143     <target name="-post-init">
   144         <!-- Empty placeholder for easier customization. -->
   145         <!-- You can override this target in the ../build.xml file. -->
   146     </target>
   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>
   158     </target>
   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"/>
   163             <sequential>
   164                 <property name="@{name}" value="${@{value}}"/>
   165             </sequential>
   166         </macrodef>
   167     </target>
   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"/>
   178             <sequential>
   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}">
   180                     <classpath>
   181                         <path path="@{classpath}"/>
   182                         <fileset dir="${scala.lib}">
   183                             <include name="**/*.jar"/>
   184                         </fileset>
   185                     </classpath>
   186                     <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
   187                     <customize/>
   188                 </javac>
   189             </sequential>
   190         </macrodef>
   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"/>
   195             <sequential>
   196                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
   197                     <classpath>
   198                         <path>
   199                             <pathelement path="@{classpath}"/>
   200                             <fileset dir="${scala.lib}">
   201                                 <include name="**/*.jar"/>
   202                             </fileset>
   203                             <pathelement location="${build.classes.dir}"/>
   204                         </path>
   205                     </classpath>
   206                 </depend>
   207             </sequential>
   208         </macrodef>
   209         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
   210             <attribute default="${build.classes.dir}" name="destdir"/>
   211             <sequential>
   212                 <fail unless="javac.includes">Must set javac.includes</fail>
   213                 <pathconvert pathsep="," property="javac.includes.binary">
   214                     <path>
   215                         <filelist dir="@{destdir}" files="${javac.includes}"/>
   216                     </path>
   217                     <globmapper from="*.java" to="*.class"/>
   218                 </pathconvert>
   219                 <delete>
   220                     <files includes="${javac.includes.binary}"/>
   221                 </delete>
   222             </sequential>
   223         </macrodef>
   224     </target>
   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"/>
   236             <sequential>
   237                 <scalac addparams="-make:transitive -dependencyfile &quot;${basedir}/${build.dir}/.scala_dependencies&quot; @{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}">
   238                     <classpath>
   239                         <path>
   240                             <pathelement path="@{classpath}"/>
   241                             <fileset dir="${scala.lib}">
   242                                 <include name="**/*.jar"/>
   243                             </fileset>
   244                             <pathelement location="${build.classes.dir}"/>
   245                         </path>
   246                     </classpath>
   247                     <customize/>
   248                 </scalac>
   249             </sequential>
   250         </macrodef>
   251         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
   252             <attribute default="${build.classes.dir}" name="destdir"/>
   253             <sequential>
   254                 <fail unless="javac.includes">Must set javac.includes</fail>
   255                 <pathconvert pathsep="," property="javac.includes.binary">
   256                     <path>
   257                         <filelist dir="@{destdir}" files="${javac.includes}"/>
   258                     </path>
   259                     <globmapper from="*.scala" to="*.class"/>
   260                 </pathconvert>
   261                 <delete>
   262                     <files includes="${javac.includes.binary}"/>
   263                 </delete>
   264             </sequential>
   265         </macrodef>
   266     </target>
   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"/>
   272             <sequential>
   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}"/>
   277                         </fileset>
   278                     </batchtest>
   279                     <classpath>
   280                         <path path="${run.test.classpath}"/>
   281                         <fileset dir="${scala.lib}">
   282                             <include name="**/*.jar"/>
   283                         </fileset>
   284                     </classpath>
   285                     <syspropertyset>
   286                         <propertyref prefix="test-sys-prop."/>
   287                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   288                     </syspropertyset>
   289                     <formatter type="brief" usefile="false"/>
   290                     <formatter type="xml"/>
   291                     <jvmarg line="${run.jvmargs}"/>
   292                 </junit>
   293             </sequential>
   294         </macrodef>
   295     </target>
   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"/>
   301             <sequential>
   302                 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
   303                     <classpath>
   304                         <path path="@{classpath}"/>
   305                     </classpath>
   306                 </nbjpdastart>
   307             </sequential>
   308         </macrodef>
   309         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/scala-project/1">
   310             <attribute default="${build.classes.dir}" name="dir"/>
   311             <sequential>
   312                 <nbjpdareload>
   313                     <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
   314                 </nbjpdareload>
   315             </sequential>
   316         </macrodef>
   317     </target>
   318     <target name="-init-debug-args">
   319         <property name="version-output" value="java version &quot;${ant.java.version}"/>
   320         <condition property="have-jdk-older-than-1.4">
   321             <or>
   322                 <contains string="${version-output}" substring="java version &quot;1.0"/>
   323                 <contains string="${version-output}" substring="java version &quot;1.1"/>
   324                 <contains string="${version-output}" substring="java version &quot;1.2"/>
   325                 <contains string="${version-output}" substring="java version &quot;1.3"/>
   326             </or>
   327         </condition>
   328         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
   329             <istrue value="${have-jdk-older-than-1.4}"/>
   330         </condition>
   331     </target>
   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"/>
   337             <sequential>
   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}"/>
   342                     <classpath>
   343                         <path path="@{classpath}"/>
   344                         <fileset dir="${scala.lib}">
   345                             <include name="**/*.jar"/>
   346                         </fileset>
   347                     </classpath>
   348                     <syspropertyset>
   349                         <propertyref prefix="run-sys-prop."/>
   350                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   351                     </syspropertyset>
   352                     <customize/>
   353                 </java>
   354             </sequential>
   355         </macrodef>
   356     </target>
   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"/>
   361             <sequential>
   362                 <java classname="@{classname}" dir="${work.dir}" fork="true">
   363                     <jvmarg line="${run.jvmargs}"/>
   364                     <classpath>
   365                         <path path="${run.classpath}"/>
   366                         <fileset dir="${scala.lib}">
   367                             <include name="**/*.jar"/>
   368                         </fileset>
   369                     </classpath>
   370                     <syspropertyset>
   371                         <propertyref prefix="run-sys-prop."/>
   372                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
   373                     </syspropertyset>
   374                     <customize/>
   375                 </java>
   376             </sequential>
   377         </macrodef>
   378     </target>
   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}"/>
   383             </jar>
   384         </presetdef>
   385     </target>
   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"/>
   387     <!--
   388                 ===================
   389                 COMPILATION SECTION
   390                 ===================
   391             -->
   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}"/>
   395     </target>
   396     <target name="-pre-compile">
   397         <!-- Empty placeholder for easier customization. -->
   398         <!-- You can override this target in the ../build.xml file. -->
   399     </target>
   400     <target if="do.depend.true" name="-compile-depend">
   401         <scalaProject1:depend/>
   402     </target>
   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}&#10;                        " includes="${includes}"/>
   408         </copy>
   409     </target>
   410     <target name="-post-compile">
   411         <!-- Empty placeholder for easier customization. -->
   412         <!-- You can override this target in the ../build.xml file. -->
   413     </target>
   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. -->
   418     </target>
   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}"/>
   423     </target>
   424     <target name="-post-compile-single">
   425         <!-- Empty placeholder for easier customization. -->
   426         <!-- You can override this target in the ../build.xml file. -->
   427     </target>
   428     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
   429     <!--
   430                 ====================
   431                 JAR BUILDING SECTION
   432                 ====================
   433             -->
   434     <target depends="init" name="-pre-pre-jar">
   435         <dirname file="${dist.jar}" property="dist.jar.dir"/>
   436         <mkdir dir="${dist.jar.dir}"/>
   437     </target>
   438     <target name="-pre-jar">
   439         <!-- Empty placeholder for easier customization. -->
   440         <!-- You can override this target in the ../build.xml file. -->
   441     </target>
   442     <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
   443         <scalaProject1:jar/>
   444     </target>
   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}"/>
   447     </target>
   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>
   453         </scalaProject1:jar>
   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}"/>
   460         </pathconvert>
   461         <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}
   462                 </echo>
   463     </target>
   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=""/>
   469         </pathconvert>
   470         <pathconvert pathsep=" " property="jar.classpath">
   471             <path path="${run.classpath.without.build.classes.dir}"/>
   472             <chainedmapper>
   473                 <flattenmapper/>
   474                 <globmapper from="*" to="lib/*"/>
   475             </chainedmapper>
   476         </pathconvert>
   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}"/>
   480             <manifest>
   481                 <attribute name="Main-Class" value="${main.class}"/>
   482                 <attribute name="Class-Path" value="${jar.classpath}"/>
   483             </manifest>
   484         </copylibs>
   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}"
   488                 </echo>
   489     </target>
   490     <target name="-post-jar">
   491         <!-- Empty placeholder for easier customization. -->
   492         <!-- You can override this target in the ../build.xml file. -->
   493     </target>
   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"/>
   495     <!--
   496                 =================
   497                 EXECUTION SECTION
   498                 =================
   499             -->
   500     <target depends="init,compile" description="Run a main class." name="run">
   501         <scalaProject1:java>
   502             <customize>
   503                 <arg line="${application.args}"/>
   504             </customize>
   505         </scalaProject1:java>
   506     </target>
   507     <target name="-do-not-recompile">
   508         <property name="javac.includes.binary" value=""/>
   509     </target>
   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}"/>
   513     </target>
   514     <!--
   515                 =================
   516                 DEBUGGING SECTION
   517                 =================
   518             -->
   519     <target depends="init" if="netbeans.home" name="-debug-start-debugger">
   520         <scalaProject1:nbjpdastart name="${debug.class}"/>
   521     </target>
   522     <target depends="init,compile" name="-debug-start-debuggee">
   523         <scalaProject1:debug>
   524             <customize>
   525                 <arg line="${application.args}"/>
   526             </customize>
   527         </scalaProject1:debug>
   528     </target>
   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}"/>
   532     </target>
   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}"/>
   537     </target>
   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"/>
   542     </target>
   543     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
   544         <scalaProject1:nbjpdareload/>
   545     </target>
   546     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
   547     <!--
   548                 ===============
   549                 JAVADOC SECTION
   550                 ===============
   551             -->
   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">
   555             <classpath>
   556                 <path path="${javac.classpath}"/>
   557                 <fileset dir="${scala.lib}">
   558                     <include name="**/*.jar"/>
   559                 </fileset>
   560             </classpath>
   561         </scaladoc>
   562     </target>
   563     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
   564         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
   565     </target>
   566     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
   567     <!--
   568                 =========================
   569                 JUNIT COMPILATION SECTION
   570                 =========================
   571             -->
   572     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
   573         <mkdir dir="${build.test.classes.dir}"/>
   574     </target>
   575     <target name="-pre-compile-test">
   576         <!-- Empty placeholder for easier customization. -->
   577         <!-- You can override this target in the ../build.xml file. -->
   578     </target>
   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}"/>
   581     </target>
   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}&#10;                        " includes="${includes}"/>
   586         </copy>
   587     </target>
   588     <target name="-post-compile-test">
   589         <!-- Empty placeholder for easier customization. -->
   590         <!-- You can override this target in the ../build.xml file. -->
   591     </target>
   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. -->
   596     </target>
   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}&#10;                        " includes="${includes}"/>
   603         </copy>
   604     </target>
   605     <target name="-post-compile-test-single">
   606         <!-- Empty placeholder for easier customization. -->
   607         <!-- You can override this target in the ../build.xml file. -->
   608     </target>
   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"/>
   610     <!--
   611                 =======================
   612                 JUNIT EXECUTION SECTION
   613                 =======================
   614             -->
   615     <target depends="init" if="have.tests" name="-pre-test-run">
   616         <mkdir dir="${build.test.results.dir}"/>
   617     </target>
   618     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
   619         <scalaProject1:junit testincludes="**/*Test.class"/>
   620     </target>
   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>
   623     </target>
   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}"/>
   629     </target>
   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}"/>
   633     </target>
   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>
   636     </target>
   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"/>
   638     <!--
   639                 =======================
   640                 JUNIT DEBUGGING SECTION
   641                 =======================
   642             -->
   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}">
   649             <customize>
   650                 <syspropertyset>
   651                     <propertyref prefix="test-sys-prop."/>
   652                     <mapper from="test-sys-prop.*" to="*" type="glob"/>
   653                 </syspropertyset>
   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}"/>
   658             </customize>
   659         </scalaProject1:debug>
   660     </target>
   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}"/>
   663     </target>
   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}"/>
   667     </target>
   668     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
   669     <!--
   670                 =========================
   671                 APPLET EXECUTION SECTION
   672                 =========================
   673             -->
   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">
   677             <customize>
   678                 <arg value="${applet.url}"/>
   679             </customize>
   680         </scalaProject1:java>
   681     </target>
   682     <!--
   683                 =========================
   684                 APPLET DEBUGGING  SECTION
   685                 =========================
   686             -->
   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">
   690             <customize>
   691                 <arg value="${applet.url}"/>
   692             </customize>
   693         </scalaProject1:debug>
   694     </target>
   695     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
   696     <!--
   697                 ===============
   698                 CLEANUP SECTION
   699                 ===============
   700             -->
   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}"/>
   705     </target>
   706     <target name="-post-clean">
   707         <!-- Empty placeholder for easier customization. -->
   708         <!-- You can override this target in the ../build.xml file. -->
   709     </target>
   710     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
   711 </project>