1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/samples/effectivelist/nbproject/build-impl.xml Fri Aug 31 20:16:57 2012 +0200
1.3 @@ -0,0 +1,710 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<!--
1.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
1.7 +*** EDIT ../build.xml INSTEAD ***
1.8 +
1.9 +For the purpose of easier reading the script
1.10 +is divided into following sections:
1.11 +
1.12 + - initialization
1.13 + - compilation
1.14 + - jar
1.15 + - execution
1.16 + - debugging
1.17 + - javadoc
1.18 + - junit compilation
1.19 + - junit execution
1.20 + - junit debugging
1.21 + - applet
1.22 + - cleanup
1.23 +
1.24 +
1.25 + -->
1.26 +<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">
1.27 + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
1.28 + <!--
1.29 + ======================
1.30 + INITIALIZATION SECTION
1.31 + ======================
1.32 + -->
1.33 + <target name="-pre-init">
1.34 + <!-- Empty placeholder for easier customization. -->
1.35 + <!-- You can override this target in the ../build.xml file. -->
1.36 + </target>
1.37 + <target depends="-pre-init" name="-init-private">
1.38 + <property file="nbproject/private/config.properties"/>
1.39 + <property file="nbproject/private/configs/${config}.properties"/>
1.40 + <property file="nbproject/private/private.properties"/>
1.41 + <property environment="env"/>
1.42 + <condition property="scala.home" value="${env.SCALA_HOME}">
1.43 + <isset property="env.SCALA_HOME"/>
1.44 + </condition>
1.45 + <fail unless="scala.home">
1.46 + You must set SCALA_HOME or environment property and append "-J-Dscala.home=scalahomepath"
1.47 + property to the end of "netbeans_default_options" in NetBeansInstallationPath/etc/netbeans.conf to point to
1.48 + Scala installation directory.
1.49 + </fail>
1.50 + <property name="scala.compiler" value="${scala.home}/lib/scala-compiler.jar"/>
1.51 + <property name="scala.library" value="${scala.home}/lib/scala-library.jar"/>
1.52 + <property name="scala.lib" value="${scala.home}/lib"/>
1.53 + <taskdef resource="scala/tools/ant/antlib.xml">
1.54 + <classpath>
1.55 + <pathelement location="${scala.compiler}"/>
1.56 + <pathelement location="${scala.library}"/>
1.57 + </classpath>
1.58 + </taskdef>
1.59 + </target>
1.60 + <target depends="-pre-init,-init-private" name="-init-user">
1.61 + <property file="${user.properties.file}"/>
1.62 + <!-- The two properties below are usually overridden -->
1.63 + <!-- by the active platform. Just a fallback. -->
1.64 + <property name="default.javac.source" value="1.5"/>
1.65 + <property name="default.javac.target" value="1.5"/>
1.66 + </target>
1.67 + <target depends="-pre-init,-init-private,-init-user" name="-init-project">
1.68 + <property file="nbproject/configs/${config}.properties"/>
1.69 + <property file="nbproject/project.properties"/>
1.70 + </target>
1.71 + <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
1.72 + <available file="${manifest.file}" property="manifest.available"/>
1.73 + <condition property="manifest.available+main.class">
1.74 + <and>
1.75 + <isset property="manifest.available"/>
1.76 + <isset property="main.class"/>
1.77 + <not>
1.78 + <equals arg1="${main.class}" arg2="" trim="true"/>
1.79 + </not>
1.80 + </and>
1.81 + </condition>
1.82 + <condition property="manifest.available+main.class+mkdist.available">
1.83 + <and>
1.84 + <istrue value="${manifest.available+main.class}"/>
1.85 + <isset property="libs.CopyLibs.classpath"/>
1.86 + </and>
1.87 + </condition>
1.88 + <condition property="have.tests">
1.89 + <or>
1.90 + <available file="${test.src.dir}"/>
1.91 + </or>
1.92 + </condition>
1.93 + <condition property="have.sources">
1.94 + <or>
1.95 + <available file="${src.dir}"/>
1.96 + </or>
1.97 + </condition>
1.98 + <condition property="netbeans.home+have.tests">
1.99 + <and>
1.100 + <isset property="netbeans.home"/>
1.101 + <isset property="have.tests"/>
1.102 + </and>
1.103 + </condition>
1.104 + <condition property="no.javadoc.preview">
1.105 + <and>
1.106 + <isset property="javadoc.preview"/>
1.107 + <isfalse value="${javadoc.preview}"/>
1.108 + </and>
1.109 + </condition>
1.110 + <property name="run.jvmargs" value=""/>
1.111 + <property name="javac.compilerargs" value=""/>
1.112 + <property name="work.dir" value="${basedir}"/>
1.113 + <condition property="no.deps">
1.114 + <and>
1.115 + <istrue value="${no.dependencies}"/>
1.116 + </and>
1.117 + </condition>
1.118 + <property name="javac.debug" value="true"/>
1.119 + <property name="javadoc.preview" value="true"/>
1.120 + <property name="application.args" value=""/>
1.121 + <property name="source.encoding" value="${file.encoding}"/>
1.122 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
1.123 + <and>
1.124 + <isset property="javadoc.encoding"/>
1.125 + <not>
1.126 + <equals arg1="${javadoc.encoding}" arg2=""/>
1.127 + </not>
1.128 + </and>
1.129 + </condition>
1.130 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
1.131 + <property name="includes" value="**"/>
1.132 + <property name="excludes" value=""/>
1.133 + <property name="extdirs" value=" "/>
1.134 + <property name="do.depend" value="false"/>
1.135 + <condition property="do.depend.true">
1.136 + <istrue value="${do.depend}"/>
1.137 + </condition>
1.138 + <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
1.139 + <and>
1.140 + <isset property="jaxws.endorsed.dir"/>
1.141 + <available file="nbproject/jaxws-build.xml"/>
1.142 + </and>
1.143 + </condition>
1.144 + </target>
1.145 + <target name="-post-init">
1.146 + <!-- Empty placeholder for easier customization. -->
1.147 + <!-- You can override this target in the ../build.xml file. -->
1.148 + </target>
1.149 + <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
1.150 + <fail unless="src.dir">Must set src.dir</fail>
1.151 + <fail unless="test.src.dir">Must set test.src.dir</fail>
1.152 + <fail unless="build.dir">Must set build.dir</fail>
1.153 + <fail unless="dist.dir">Must set dist.dir</fail>
1.154 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
1.155 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
1.156 + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
1.157 + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
1.158 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
1.159 + <fail unless="dist.jar">Must set dist.jar</fail>
1.160 + </target>
1.161 + <target name="-init-macrodef-property">
1.162 + <macrodef name="property" uri="http://www.netbeans.org/ns/scala-project/1">
1.163 + <attribute name="name"/>
1.164 + <attribute name="value"/>
1.165 + <sequential>
1.166 + <property name="@{name}" value="${@{value}}"/>
1.167 + </sequential>
1.168 + </macrodef>
1.169 + </target>
1.170 + <target name="-init-macrodef-javac">
1.171 + <macrodef name="javac" uri="http://www.netbeans.org/ns/scala-project/1">
1.172 + <attribute default="${src.dir}" name="srcdir"/>
1.173 + <attribute default="${build.classes.dir}" name="destdir"/>
1.174 + <attribute default="${javac.classpath}" name="classpath"/>
1.175 + <attribute default="${includes}" name="includes"/>
1.176 + <attribute default="${excludes}" name="excludes"/>
1.177 + <attribute default="${javac.debug}" name="debug"/>
1.178 + <attribute default="" name="sourcepath"/>
1.179 + <element name="customize" optional="true"/>
1.180 + <sequential>
1.181 + <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}">
1.182 + <classpath>
1.183 + <path path="@{classpath}"/>
1.184 + <fileset dir="${scala.lib}">
1.185 + <include name="**/*.jar"/>
1.186 + </fileset>
1.187 + </classpath>
1.188 + <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
1.189 + <customize/>
1.190 + </javac>
1.191 + </sequential>
1.192 + </macrodef>
1.193 + <macrodef name="depend" uri="http://www.netbeans.org/ns/scala-project/1">
1.194 + <attribute default="${src.dir}" name="srcdir"/>
1.195 + <attribute default="${build.classes.dir}" name="destdir"/>
1.196 + <attribute default="${javac.classpath}" name="classpath"/>
1.197 + <sequential>
1.198 + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
1.199 + <classpath>
1.200 + <path>
1.201 + <pathelement path="@{classpath}"/>
1.202 + <fileset dir="${scala.lib}">
1.203 + <include name="**/*.jar"/>
1.204 + </fileset>
1.205 + <pathelement location="${build.classes.dir}"/>
1.206 + </path>
1.207 + </classpath>
1.208 + </depend>
1.209 + </sequential>
1.210 + </macrodef>
1.211 + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
1.212 + <attribute default="${build.classes.dir}" name="destdir"/>
1.213 + <sequential>
1.214 + <fail unless="javac.includes">Must set javac.includes</fail>
1.215 + <pathconvert pathsep="," property="javac.includes.binary">
1.216 + <path>
1.217 + <filelist dir="@{destdir}" files="${javac.includes}"/>
1.218 + </path>
1.219 + <globmapper from="*.java" to="*.class"/>
1.220 + </pathconvert>
1.221 + <delete>
1.222 + <files includes="${javac.includes.binary}"/>
1.223 + </delete>
1.224 + </sequential>
1.225 + </macrodef>
1.226 + </target>
1.227 + <target name="-init-macrodef-scalac">
1.228 + <macrodef name="scalac" uri="http://www.netbeans.org/ns/scala-project/1">
1.229 + <attribute default="${src.dir}" name="srcdir"/>
1.230 + <attribute default="${build.classes.dir}" name="destdir"/>
1.231 + <attribute default="${javac.classpath}" name="classpath"/>
1.232 + <attribute default="${extdirs}" name="extdirs"/>
1.233 + <attribute default="${includes}" name="includes"/>
1.234 + <attribute default="${excludes}" name="excludes"/>
1.235 + <attribute default="${scalac.compilerargs}" name="addparams"/>
1.236 + <attribute default="" name="sourcepath"/>
1.237 + <element name="customize" optional="true"/>
1.238 + <sequential>
1.239 + <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}">
1.240 + <classpath>
1.241 + <path>
1.242 + <pathelement path="@{classpath}"/>
1.243 + <fileset dir="${scala.lib}">
1.244 + <include name="**/*.jar"/>
1.245 + </fileset>
1.246 + <pathelement location="${build.classes.dir}"/>
1.247 + </path>
1.248 + </classpath>
1.249 + <customize/>
1.250 + </scalac>
1.251 + </sequential>
1.252 + </macrodef>
1.253 + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1">
1.254 + <attribute default="${build.classes.dir}" name="destdir"/>
1.255 + <sequential>
1.256 + <fail unless="javac.includes">Must set javac.includes</fail>
1.257 + <pathconvert pathsep="," property="javac.includes.binary">
1.258 + <path>
1.259 + <filelist dir="@{destdir}" files="${javac.includes}"/>
1.260 + </path>
1.261 + <globmapper from="*.scala" to="*.class"/>
1.262 + </pathconvert>
1.263 + <delete>
1.264 + <files includes="${javac.includes.binary}"/>
1.265 + </delete>
1.266 + </sequential>
1.267 + </macrodef>
1.268 + </target>
1.269 + <target name="-init-macrodef-junit">
1.270 + <macrodef name="junit" uri="http://www.netbeans.org/ns/scala-project/1">
1.271 + <attribute default="${includes}" name="includes"/>
1.272 + <attribute default="${excludes}" name="excludes"/>
1.273 + <attribute default="**" name="testincludes"/>
1.274 + <sequential>
1.275 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
1.276 + <batchtest todir="${build.test.results.dir}">
1.277 + <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
1.278 + <filename name="@{testincludes}"/>
1.279 + </fileset>
1.280 + </batchtest>
1.281 + <classpath>
1.282 + <path path="${run.test.classpath}"/>
1.283 + <fileset dir="${scala.lib}">
1.284 + <include name="**/*.jar"/>
1.285 + </fileset>
1.286 + </classpath>
1.287 + <syspropertyset>
1.288 + <propertyref prefix="test-sys-prop."/>
1.289 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.290 + </syspropertyset>
1.291 + <formatter type="brief" usefile="false"/>
1.292 + <formatter type="xml"/>
1.293 + <jvmarg line="${run.jvmargs}"/>
1.294 + </junit>
1.295 + </sequential>
1.296 + </macrodef>
1.297 + </target>
1.298 + <target name="-init-macrodef-nbjpda">
1.299 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/scala-project/1">
1.300 + <attribute default="${main.class}" name="name"/>
1.301 + <attribute default="${debug.classpath}" name="classpath"/>
1.302 + <attribute default="" name="stopclassname"/>
1.303 + <sequential>
1.304 + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket">
1.305 + <classpath>
1.306 + <path path="@{classpath}"/>
1.307 + </classpath>
1.308 + </nbjpdastart>
1.309 + </sequential>
1.310 + </macrodef>
1.311 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/scala-project/1">
1.312 + <attribute default="${build.classes.dir}" name="dir"/>
1.313 + <sequential>
1.314 + <nbjpdareload>
1.315 + <fileset dir="@{dir}" includes="${fix.includes}*.class"/>
1.316 + </nbjpdareload>
1.317 + </sequential>
1.318 + </macrodef>
1.319 + </target>
1.320 + <target name="-init-debug-args">
1.321 + <property name="version-output" value="java version "${ant.java.version}"/>
1.322 + <condition property="have-jdk-older-than-1.4">
1.323 + <or>
1.324 + <contains string="${version-output}" substring="java version "1.0"/>
1.325 + <contains string="${version-output}" substring="java version "1.1"/>
1.326 + <contains string="${version-output}" substring="java version "1.2"/>
1.327 + <contains string="${version-output}" substring="java version "1.3"/>
1.328 + </or>
1.329 + </condition>
1.330 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
1.331 + <istrue value="${have-jdk-older-than-1.4}"/>
1.332 + </condition>
1.333 + </target>
1.334 + <target depends="-init-debug-args" name="-init-macrodef-debug">
1.335 + <macrodef name="debug" uri="http://www.netbeans.org/ns/scala-project/1">
1.336 + <attribute default="${main.class}" name="classname"/>
1.337 + <attribute default="${debug.classpath}" name="classpath"/>
1.338 + <element name="customize" optional="true"/>
1.339 + <sequential>
1.340 + <java classname="@{classname}" dir="${work.dir}" fork="true">
1.341 + <jvmarg line="${debug-args-line}"/>
1.342 + <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
1.343 + <jvmarg line="${run.jvmargs}"/>
1.344 + <classpath>
1.345 + <path path="@{classpath}"/>
1.346 + <fileset dir="${scala.lib}">
1.347 + <include name="**/*.jar"/>
1.348 + </fileset>
1.349 + </classpath>
1.350 + <syspropertyset>
1.351 + <propertyref prefix="run-sys-prop."/>
1.352 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
1.353 + </syspropertyset>
1.354 + <customize/>
1.355 + </java>
1.356 + </sequential>
1.357 + </macrodef>
1.358 + </target>
1.359 + <target name="-init-macrodef-java">
1.360 + <macrodef name="java" uri="http://www.netbeans.org/ns/scala-project/1">
1.361 + <attribute default="${main.class}" name="classname"/>
1.362 + <element name="customize" optional="true"/>
1.363 + <sequential>
1.364 + <java classname="@{classname}" dir="${work.dir}" fork="true">
1.365 + <jvmarg line="${run.jvmargs}"/>
1.366 + <classpath>
1.367 + <path path="${run.classpath}"/>
1.368 + <fileset dir="${scala.lib}">
1.369 + <include name="**/*.jar"/>
1.370 + </fileset>
1.371 + </classpath>
1.372 + <syspropertyset>
1.373 + <propertyref prefix="run-sys-prop."/>
1.374 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
1.375 + </syspropertyset>
1.376 + <customize/>
1.377 + </java>
1.378 + </sequential>
1.379 + </macrodef>
1.380 + </target>
1.381 + <target name="-init-presetdef-jar">
1.382 + <presetdef name="jar" uri="http://www.netbeans.org/ns/scala-project/1">
1.383 + <jar compress="${jar.compress}" jarfile="${dist.jar}">
1.384 + <scalaProject1:fileset dir="${build.classes.dir}"/>
1.385 + </jar>
1.386 + </presetdef>
1.387 + </target>
1.388 + <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"/>
1.389 + <!--
1.390 + ===================
1.391 + COMPILATION SECTION
1.392 + ===================
1.393 + -->
1.394 + <target depends="init" name="deps-jar" unless="no.deps"/>
1.395 + <target depends="init,deps-jar" name="-pre-pre-compile">
1.396 + <mkdir dir="${build.classes.dir}"/>
1.397 + </target>
1.398 + <target name="-pre-compile">
1.399 + <!-- Empty placeholder for easier customization. -->
1.400 + <!-- You can override this target in the ../build.xml file. -->
1.401 + </target>
1.402 + <target if="do.depend.true" name="-compile-depend">
1.403 + <scalaProject1:depend/>
1.404 + </target>
1.405 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
1.406 + <scalaProject1:scalac/>
1.407 + <scalaProject1:javac/>
1.408 + <copy todir="${build.classes.dir}">
1.409 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes} " includes="${includes}"/>
1.410 + </copy>
1.411 + </target>
1.412 + <target name="-post-compile">
1.413 + <!-- Empty placeholder for easier customization. -->
1.414 + <!-- You can override this target in the ../build.xml file. -->
1.415 + </target>
1.416 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
1.417 + <target name="-pre-compile-single">
1.418 + <!-- Empty placeholder for easier customization. -->
1.419 + <!-- You can override this target in the ../build.xml file. -->
1.420 + </target>
1.421 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
1.422 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.423 + <scalaProject1:force-recompile/>
1.424 + <scalaProject1:scalac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
1.425 + </target>
1.426 + <target name="-post-compile-single">
1.427 + <!-- Empty placeholder for easier customization. -->
1.428 + <!-- You can override this target in the ../build.xml file. -->
1.429 + </target>
1.430 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
1.431 + <!--
1.432 + ====================
1.433 + JAR BUILDING SECTION
1.434 + ====================
1.435 + -->
1.436 + <target depends="init" name="-pre-pre-jar">
1.437 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
1.438 + <mkdir dir="${dist.jar.dir}"/>
1.439 + </target>
1.440 + <target name="-pre-jar">
1.441 + <!-- Empty placeholder for easier customization. -->
1.442 + <!-- You can override this target in the ../build.xml file. -->
1.443 + </target>
1.444 + <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
1.445 + <scalaProject1:jar/>
1.446 + </target>
1.447 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
1.448 + <scalaProject1:jar manifest="${manifest.file}"/>
1.449 + </target>
1.450 + <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">
1.451 + <scalaProject1:jar manifest="${manifest.file}">
1.452 + <scalaProject1:manifest>
1.453 + <scalaProject1:attribute name="Main-Class" value="${main.class}"/>
1.454 + </scalaProject1:manifest>
1.455 + </scalaProject1:jar>
1.456 + <echo>To run this application from the command line without Ant, try:</echo>
1.457 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1.458 + <property location="${dist.jar}" name="dist.jar.resolved"/>
1.459 + <pathconvert property="run.classpath.with.dist.jar">
1.460 + <path path="${run.classpath}"/>
1.461 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
1.462 + </pathconvert>
1.463 + <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}
1.464 + </echo>
1.465 + </target>
1.466 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
1.467 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
1.468 + <pathconvert property="run.classpath.without.build.classes.dir">
1.469 + <path path="${run.classpath}"/>
1.470 + <map from="${build.classes.dir.resolved}" to=""/>
1.471 + </pathconvert>
1.472 + <pathconvert pathsep=" " property="jar.classpath">
1.473 + <path path="${run.classpath.without.build.classes.dir}"/>
1.474 + <chainedmapper>
1.475 + <flattenmapper/>
1.476 + <globmapper from="*" to="lib/*"/>
1.477 + </chainedmapper>
1.478 + </pathconvert>
1.479 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
1.480 + <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
1.481 + <fileset dir="${build.classes.dir}"/>
1.482 + <manifest>
1.483 + <attribute name="Main-Class" value="${main.class}"/>
1.484 + <attribute name="Class-Path" value="${jar.classpath}"/>
1.485 + </manifest>
1.486 + </copylibs>
1.487 + <echo>To run this application from the command line without Ant, try:</echo>
1.488 + <property location="${dist.jar}" name="dist.jar.resolved"/>
1.489 + <echo>java -jar "${dist.jar.resolved}"
1.490 + </echo>
1.491 + </target>
1.492 + <target name="-post-jar">
1.493 + <!-- Empty placeholder for easier customization. -->
1.494 + <!-- You can override this target in the ../build.xml file. -->
1.495 + </target>
1.496 + <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"/>
1.497 + <!--
1.498 + =================
1.499 + EXECUTION SECTION
1.500 + =================
1.501 + -->
1.502 + <target depends="init,compile" description="Run a main class." name="run">
1.503 + <scalaProject1:java>
1.504 + <customize>
1.505 + <arg line="${application.args}"/>
1.506 + </customize>
1.507 + </scalaProject1:java>
1.508 + </target>
1.509 + <target name="-do-not-recompile">
1.510 + <property name="javac.includes.binary" value=""/>
1.511 + </target>
1.512 + <target depends="init,-do-not-recompile,compile-single" name="run-single">
1.513 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
1.514 + <scalaProject1:java classname="${run.class}"/>
1.515 + </target>
1.516 + <!--
1.517 + =================
1.518 + DEBUGGING SECTION
1.519 + =================
1.520 + -->
1.521 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
1.522 + <scalaProject1:nbjpdastart name="${debug.class}"/>
1.523 + </target>
1.524 + <target depends="init,compile" name="-debug-start-debuggee">
1.525 + <scalaProject1:debug>
1.526 + <customize>
1.527 + <arg line="${application.args}"/>
1.528 + </customize>
1.529 + </scalaProject1:debug>
1.530 + </target>
1.531 + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
1.532 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
1.533 + <scalaProject1:nbjpdastart stopclassname="${main.class}"/>
1.534 + </target>
1.535 + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
1.536 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
1.537 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
1.538 + <scalaProject1:debug classname="${debug.class}"/>
1.539 + </target>
1.540 + <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
1.541 + <target depends="init" name="-pre-debug-fix">
1.542 + <fail unless="fix.includes">Must set fix.includes</fail>
1.543 + <property name="javac.includes" value="${fix.includes}.java"/>
1.544 + </target>
1.545 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
1.546 + <scalaProject1:nbjpdareload/>
1.547 + </target>
1.548 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
1.549 + <!--
1.550 + ===============
1.551 + JAVADOC SECTION
1.552 + ===============
1.553 + -->
1.554 + <target depends="init" name="-javadoc-build">
1.555 + <mkdir dir="${dist.javadoc.dir}"/>
1.556 + <scaladoc addparams="${javadoc.additionalparam}" deprecation="yes" destdir="${dist.javadoc.dir}" doctitle="${javadoc.windowtitle}" encoding="${javadoc.encoding.used}" srcdir="${src.dir}" unchecked="yes">
1.557 + <classpath>
1.558 + <path path="${javac.classpath}"/>
1.559 + <fileset dir="${scala.lib}">
1.560 + <include name="**/*.jar"/>
1.561 + </fileset>
1.562 + </classpath>
1.563 + </scaladoc>
1.564 + </target>
1.565 + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
1.566 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
1.567 + </target>
1.568 + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
1.569 + <!--
1.570 + =========================
1.571 + JUNIT COMPILATION SECTION
1.572 + =========================
1.573 + -->
1.574 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
1.575 + <mkdir dir="${build.test.classes.dir}"/>
1.576 + </target>
1.577 + <target name="-pre-compile-test">
1.578 + <!-- Empty placeholder for easier customization. -->
1.579 + <!-- You can override this target in the ../build.xml file. -->
1.580 + </target>
1.581 + <target if="do.depend.true" name="-compile-test-depend">
1.582 + <scalaProject1:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1.583 + </target>
1.584 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
1.585 + <scalaProject1:scalac classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
1.586 + <copy todir="${build.test.classes.dir}">
1.587 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes} " includes="${includes}"/>
1.588 + </copy>
1.589 + </target>
1.590 + <target name="-post-compile-test">
1.591 + <!-- Empty placeholder for easier customization. -->
1.592 + <!-- You can override this target in the ../build.xml file. -->
1.593 + </target>
1.594 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
1.595 + <target name="-pre-compile-test-single">
1.596 + <!-- Empty placeholder for easier customization. -->
1.597 + <!-- You can override this target in the ../build.xml file. -->
1.598 + </target>
1.599 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
1.600 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
1.601 + <scalaProject1:force-recompile destdir="${build.test.classes.dir}"/>
1.602 + <scalaProject1:scalac classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
1.603 + <copy todir="${build.test.classes.dir}">
1.604 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes} " includes="${includes}"/>
1.605 + </copy>
1.606 + </target>
1.607 + <target name="-post-compile-test-single">
1.608 + <!-- Empty placeholder for easier customization. -->
1.609 + <!-- You can override this target in the ../build.xml file. -->
1.610 + </target>
1.611 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
1.612 + <!--
1.613 + =======================
1.614 + JUNIT EXECUTION SECTION
1.615 + =======================
1.616 + -->
1.617 + <target depends="init" if="have.tests" name="-pre-test-run">
1.618 + <mkdir dir="${build.test.results.dir}"/>
1.619 + </target>
1.620 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
1.621 + <scalaProject1:junit testincludes="**/*Test.class"/>
1.622 + </target>
1.623 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
1.624 + <fail if="tests.failed">Some tests failed; see details above.</fail>
1.625 + </target>
1.626 + <target depends="init" if="have.tests" name="test-report"/>
1.627 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
1.628 + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
1.629 + <target depends="init" if="have.tests" name="-pre-test-run-single">
1.630 + <mkdir dir="${build.test.results.dir}"/>
1.631 + </target>
1.632 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
1.633 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
1.634 + <scalaProject1:junit excludes="" includes="${test.includes}"/>
1.635 + </target>
1.636 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
1.637 + <fail if="tests.failed">Some tests failed; see details above.</fail>
1.638 + </target>
1.639 + <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"/>
1.640 + <!--
1.641 + =======================
1.642 + JUNIT DEBUGGING SECTION
1.643 + =======================
1.644 + -->
1.645 + <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
1.646 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
1.647 + <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
1.648 + <delete file="${test.report.file}"/>
1.649 + <mkdir dir="${build.test.results.dir}"/>
1.650 + <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}">
1.651 + <customize>
1.652 + <syspropertyset>
1.653 + <propertyref prefix="test-sys-prop."/>
1.654 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
1.655 + </syspropertyset>
1.656 + <arg value="${test.class}"/>
1.657 + <arg value="showoutput=true"/>
1.658 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
1.659 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
1.660 + </customize>
1.661 + </scalaProject1:debug>
1.662 + </target>
1.663 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
1.664 + <scalaProject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
1.665 + </target>
1.666 + <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
1.667 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
1.668 + <scalaProject1:nbjpdareload dir="${build.test.classes.dir}"/>
1.669 + </target>
1.670 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
1.671 + <!--
1.672 + =========================
1.673 + APPLET EXECUTION SECTION
1.674 + =========================
1.675 + -->
1.676 + <target depends="init,compile-single" name="run-applet">
1.677 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1.678 + <scalaProject1:java classname="sun.applet.AppletViewer">
1.679 + <customize>
1.680 + <arg value="${applet.url}"/>
1.681 + </customize>
1.682 + </scalaProject1:java>
1.683 + </target>
1.684 + <!--
1.685 + =========================
1.686 + APPLET DEBUGGING SECTION
1.687 + =========================
1.688 + -->
1.689 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
1.690 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
1.691 + <scalaProject1:debug classname="sun.applet.AppletViewer">
1.692 + <customize>
1.693 + <arg value="${applet.url}"/>
1.694 + </customize>
1.695 + </scalaProject1:debug>
1.696 + </target>
1.697 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
1.698 + <!--
1.699 + ===============
1.700 + CLEANUP SECTION
1.701 + ===============
1.702 + -->
1.703 + <target depends="init" name="deps-clean" unless="no.deps"/>
1.704 + <target depends="init" name="-do-clean">
1.705 + <delete dir="${build.dir}"/>
1.706 + <delete dir="${dist.dir}"/>
1.707 + </target>
1.708 + <target name="-post-clean">
1.709 + <!-- Empty placeholder for easier customization. -->
1.710 + <!-- You can override this target in the ../build.xml file. -->
1.711 + </target>
1.712 + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1.713 +</project>