summaryrefslogblamecommitdiff
path: root/build.xml
blob: eaa66d2e9923bd00cf581f1ed60ec7a356c81412 (plain) (tree)
1
2
3

                                      
 
















                                                                                
                                                         




                                                                            


                               











                                                      
                                                            







                                                                         



                                                             


                                                            



                                                           




                                                                 








                                                                            












                                                                                
 













                                                                      



















































                                                                              
                



                                           
           



                                                 
           
                                    
                            
                                                                             

                                                                  













                                                              
           









                                                             
           











                                                                                



                                 


                                


                                                              
                                                             
                                                          
                                                        





                                                                   
                                                             
                                                          



                                                          



                                                                   










                                  


                                                             
                                                 
                                                             
                                                          
                                                        



                                                                  
                   
                                                             
                                                          



                                                          
                                                                   

                    

                 
 





























































                                                                                



                                                     
                                                           




                                                           































































                                                                                



                                                     
                                                          




                                                           
































































                                                                                



                                                     
                                                          




                                                           

                                          



                                             




                                                                      



                                             


























                                                                                








                                                


                                                            




                                                                   
                                                           

                                    







                                                              




                                                               


























                                                                                


                                           
           

          
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->

<project name="scala-core" default="build">

  <description>
    I am Sabbus for Scala-core, the build system for the Scala compiler and core
    library. Please check the 'docs/README' file for more information about me.
  </description>
  
  <echo>Running Sabbus for Scala-core</echo>

  <!--
  ##############################################################################
  PROPERTIES
  ##############################################################################
  -->
  
  <property environment="env"/>
  <condition property="memory.set">
    <contains string="${env.ANT_OPTS}" substring="-Xmx"/>
  </condition>
  <fail unless="memory.set">
    Sabbus requires additional memory. Please set the 'ANT_OPTS' environment
    property to '-Xmx256M' or more.
  </fail>
  <condition property="os.win">
    <os family="windows"/>
  </condition>

  <!-- Prevents system classpath from being used -->
  <property name="build.sysclasspath" value="ignore"/>

  <!-- Base properties -->
  <property name="docs.dir" value="${basedir}/docs"/>
  <property name="lib.dir" value="${basedir}/lib"/>
  <property name="src.dir" value="${basedir}/src"/>
  <property name="test.dir" value="${basedir}/test"/>
  <!-- User properties -->
  <property file="${basedir}/build.properties"/>
  <!-- General properties -->
  <property name="copyright" value="(c) 2002-06 LAMP/EPFL"/>
  <!-- NSC configuration properties -->
  <property name="nsc.logging" value="none"/>
  <property name="nsc.debug-info" value="true"/>
  <property name="nsc.excludes" value="build.excludes"/>
  <!-- Location of pre-compiled libraries properties -->
  <property name="starr.lib.jar" value="${lib.dir}/scala-library.jar"/>
  <property name="starr.comp.jar" value="${lib.dir}/scala-compiler.jar"/>
  <property name="jaco.jar" value="${lib.dir}/jaco.jar"/>
  <property name="fjbg.name" value="fjbg.jar"/>
  <property name="fjbg.jar" value="${lib.dir}/${fjbg.name}"/>
  <property name="msil.name" value="msil.jar"/>
  <property name="msil.jar" value="${lib.dir}/${msil.name}"/>
  <property name="scala.dll" value="${lib.dir}/scala.dll"/>
  <property name="ant.jar" value="${ant.home}/lib/ant.jar"/>
  <!-- Location of build products properties -->
  <property name="build.dir" value="${basedir}/build"/>
  <property name="locker.dir" value="${build.dir}/locker"/>
  <property name="quick.dir" value="${build.dir}/quick"/>
  <property name="strap.dir" value="${build.dir}/strap"/>
  <!-- Location of source and build elements names properties -->
  <property name="lib.dir.name" value="library"/>
  <property name="comp.dir.name" value="compiler"/>
  <property name="exec.dir.name" value="exec"/>
  <!-- Location of structure of the distribution properties -->
  <property name="dist.dir" value="${basedir}/dists"/>
  <property name="dist.latest.dir" value="${dist.dir}/latest"/>
  <property name="dist.name" value="scala"/>
  <property name="lib.jar.name" value="${dist.name}-${lib.dir.name}.jar"/>
  <property name="comp.jar.name" value="${dist.name}-${comp.dir.name}.jar"/>
  <property name="scala.exec.name" value="${dist.name}"/>
  <property name="scalai.exec.name" value="${dist.name}i"/>
  <property name="scalac.exec.name" value="${dist.name}c"/>
  <property name="scalatok.exec.name" value="${dist.name}tok"/>
  <!-- Shorcut names -->
  <property name="locker.lib.dir" value="${locker.dir}/${lib.dir.name}"/>
  <property name="locker.comp.dir" value="${locker.dir}/${comp.dir.name}"/>
  <property name="quick.lib.dir" value="${quick.dir}/${lib.dir.name}"/>
  <property name="quick.comp.dir" value="${quick.dir}/${comp.dir.name}"/>
  <property name="strap.lib.dir" value="${strap.dir}/${lib.dir.name}"/>
  <property name="strap.comp.dir" value="${strap.dir}/${comp.dir.name}"/>

  <!--
  ##############################################################################
  INITIALISATION
  ##############################################################################
  -->

  <target name="init.cygwin" if="os.win">
    <exec executable="cygpath" vmlauncher="false" errorproperty="err">
      <arg value="--windir"/>
    </exec>
    <condition property="os.cygwin">
      <equals arg1="${err}" arg2=""/>
    </condition>
  </target>

  <target name="init" depends="init.cygwin">
    <condition property="os.unix"><or>
      <os family="unix"/><os family="mac"/>
      <isset property="os.cygwin"/>
    </or></condition>
    <!-- Testing if everything is in place -->
    <echo level="verbose">starr.lib.jar=${starr.lib.jar}</echo>
    <fail message="STARR library in 'lib/' is not available">
      <condition><not><and>
        <available classname="scala.Predef" 
                   classpath="${starr.lib.jar}"/>
        <available classname="scala.List"
                   classpath="${starr.lib.jar}"/>
        <available classname="scala.runtime.ObjectRef"
                   classpath="${starr.lib.jar}"/>
      </and></not></condition>
    </fail>
    <echo level="verbose">starr.comp.jar=${starr.comp.jar}</echo>
    <fail message="STARR compiler in 'lib/' is not available">
      <condition><not>
        <available classname="scala.tools.nsc.ant.NSC"
                   classpath="${starr.comp.jar}:${starr.lib.jar}"/>
      </not></condition>
    </fail>
    <echo level="verbose">fjbg.jar=${fjbg.jar}</echo>
    <fail message="FJBG library in 'lib/' is not available">
      <condition><not>
        <available classname="ch.epfl.lamp.fjbg.JCode"
                   classpath="${fjbg.jar}"/>
      </not></condition>
    </fail>
    <echo level="verbose">msil.jar=${msil.jar}</echo>
    <fail message="MSIL library in 'lib/' is not available">
      <condition><not>
        <available classname="ch.epfl.lamp.compiler.msil.Assembly"
                   classpath="${msil.jar}"/>
      </not></condition>
    </fail>
    <echo level="verbose">jaco.jar=${jaco.jar}</echo>
    <fail message="JaCo compiler in 'lib/' is not available">
      <condition><not>
        <available classname="jaco.pizza.Main" classpath="${jaco.jar}"/>
      </not></condition>
    </fail>
    <echo level="verbose">ant.jar=${ant.jar}</echo>
    <!-- Finding out what is available -->
    <available property="excludes.avail" file="${nsc.excludes}"/>
    <condition property="locker.avail">
      <and>
        <available classname="scala.Predef" classpath="${locker.lib.dir}"/>
        <available classname="scala.List" classpath="${locker.lib.dir}"/>
        <available classname="scala.runtime.ObjectRef"
                   classpath="${locker.lib.dir}"/>
        <available classname="scala.tools.nsc.ant.NSC"
                   classpath="${locker.comp.dir}:${locker.lib.dir}"/>
        <available file="${locker.dir}/${exec.dir.name}/${scalac.exec.name}"/>
      </and>
    </condition>
    <!-- Creating class-pathes -->
    <path id="common.classpath">
      <pathelement location="${fjbg.jar}"/>
      <pathelement location="${msil.jar}"/>
    </path>
    <path id="starr.classpath">
      <pathelement location="${starr.lib.jar}"/>
      <pathelement location="${starr.comp.jar}"/>
      <path refid="common.classpath"/>
    </path>
    <!-- Defining version number -->
    <tstamp prefix="start"/>
    <property name="version.number" value="${start.DSTAMP}-${start.TSTAMP}"/>
    <property name="dist.current.dir"
              value="${dist.dir}/${dist.name}-${version.number}"/>
    <!-- Creating boot-level tasks -->
    <taskdef name="starr"
             classname="scala.tools.nsc.ant.NSC"
             classpathref="starr.classpath"/>
    <taskdef name="pico"
             classname="jaco.pizza.ant.Pico"
             classpath="${jaco.jar}"/>
  </target>
  
  <target name="init.locker" depends="init, build.locker">
    <path id="locker.classpath">
      <pathelement location="${locker.dir}/${lib.dir.name}"/>
      <pathelement location="${locker.dir}/${comp.dir.name}"/>
      <path refid="common.classpath"/>
    </path>
    <taskdef name="locker"
             classname="scala.tools.nsc.ant.NSC"
             classpathref="locker.classpath"/>
  </target>
  
  <target name="init.quick" depends="init, build">
    <path id="quick.classpath">
      <pathelement location="${quick.dir}/${lib.dir.name}"/>
      <pathelement location="${quick.dir}/${comp.dir.name}"/>
      <path refid="common.classpath"/>
    </path>
    <taskdef name="quick"
             classname="scala.tools.nsc.ant.NSC"
             classpathref="quick.classpath"/>
  </target>
  
  <!--
  ##############################################################################
  BUILD SUPPORT MACROS
  ##############################################################################
  -->
  
  <macrodef name="build.exec">
    <attribute name="lib.path"/>
    <attribute name="comp.path"/>
    <attribute name="fjbg.path"/>
    <attribute name="msil.path"/>
    <attribute name="exec.dir"/>
    <sequential>
      <mkdir dir="@{exec.dir}"/>
      <copy file="${src.dir}/${exec.dir.name}/scala.unix.tmpl"
            tofile="@{exec.dir}/scala">
        <filterset>
          <filter token="version" value="${version.number}"/>
          <filter token="copyright" value="${copyright}"/>
          <filter token="lib.path" value="@{lib.path}"/>
        </filterset>
      </copy>
      <chmod file="@{exec.dir}/scala" perm="ugo+rx"/>
      <copy file="${src.dir}/${exec.dir.name}/scala-tool.unix.tmpl"
            tofile="@{exec.dir}/scalac">
        <filterset>
          <filter token="version" value="${version.number}"/>
          <filter token="copyright" value="${copyright}"/>
          <filter token="lib.path" value="@{lib.path}"/>
          <filter token="comp.path" value="@{comp.path}"/>
          <filter token="fjbg.jar" value="@{fjbg.path}"/>
          <filter token="msil.jar" value="@{msil.path}"/>
          <filter token="tool.class" value="scala.tools.nsc.Main"/>
        </filterset>
      </copy>
      <chmod file="@{exec.dir}/scalac" perm="ugo+rx"/>
    </sequential>
  </macrodef>

  <macrodef name="build.exec.win">
    <attribute name="lib.path"/>
    <attribute name="comp.path"/>
    <attribute name="fjbg.path"/>
    <attribute name="msil.path"/>
    <attribute name="exec.dir"/>
    <sequential>
      <mkdir dir="@{exec.dir}"/>
      <copy file="${src.dir}/${exec.dir.name}/scala.win.tmpl"
            tofile="@{exec.dir}/scala.bat">
        <filterset>
          <filter token="product" value="scala"/>
          <filter token="version" value="${version.number}"/>
          <filter token="copyright" value="${copyright}"/>
          <filter token="lib.path" value="@{lib.path}"/>
        </filterset>
      </copy>
      <copy file="${src.dir}/${exec.dir.name}/scala-tool.win.tmpl"
            tofile="@{exec.dir}/scalac.bat">
        <filterset>
          <filter token="version" value="${version.number}"/>
          <filter token="copyright" value="${copyright}"/>
          <filter token="lib.path" value="@{lib.path}"/>
          <filter token="comp.path" value="@{comp.path}"/>
          <filter token="fjbg.jar" value="@{fjbg.path}"/>
          <filter token="msil.jar" value="@{msil.path}"/>
          <filter token="tool.class" value="scala.tools.nsc.Main"/>
        </filterset>
      </copy>
    </sequential>
  </macrodef>

  <!--
  ##############################################################################
  BUILD LOCAL REFERENCE (LOCKER) LAYER
  ##############################################################################
  -->
  
  <target name="build.locker" depends="init" unless="locker.avail">
    <!-- Build library -->
    <mkdir dir="${locker.lib.dir}"/>
    <pico srcdir="${src.dir}/${lib.dir.name}"
          destdir="${locker.lib.dir}"
          scalahack="true">
      <classpath>
        <pathelement location="${locker.lib.dir}"/>
      </classpath>
      <include name="**/*.java"/>
    </pico>
    <starr srcdir="${src.dir}/${lib.dir.name}"
           destdir="${locker.lib.dir}"
           usepredefs="false"
           debuginfo="${nsc.debug-info}">
      <classpath>
        <pathelement location="${locker.lib.dir}"/>
      </classpath>
      <include name="scala/Predef.scala"/>
      <include name="scala/runtime/ScalaRunTime.scala"/>
    </starr>
    <starr srcdir="${src.dir}/${lib.dir.name}"
           destdir="${locker.lib.dir}"
           debuginfo="${nsc.debug-info}">
      <classpath>
        <pathelement location="${locker.lib.dir}"/>
      </classpath>
      <include name="**/*.scala"/>
      <exclude name="scala/Predef.scala"/>
      <exclude name="scala/runtime/ScalaRunTime.scala"/>
      <excludesfile name="${nsc.excludes}" if="excludes.avail"/>
    </starr>
    <!-- Build compiler -->
    <mkdir dir="${locker.comp.dir}"/>
    <pico srcdir="${src.dir}/${comp.dir.name}"
          destdir="${locker.comp.dir}"
          scalahack="true">
      <classpath>
        <pathelement location="${locker.lib.dir}"/>
        <pathelement location="${locker.comp.dir}"/>
      </classpath>
      <include name="**/*.java"/>
    </pico>
    <starr srcdir="${src.dir}/${comp.dir.name}"
           destdir="${locker.comp.dir}"
           debuginfo="${nsc.debug-info}">
      <classpath>
        <pathelement location="${locker.lib.dir}"/>
        <pathelement location="${locker.comp.dir}"/>
        <path refid="starr.classpath"/>
        <pathelement location="${ant.jar}"/>
      </classpath>
      <include name="**/*.scala"/>
      <excludesfile name="${nsc.excludes}" if="excludes.avail"/>
    </starr>
    <!-- Build executable files -->
    <build.exec lib.path="$$PREFIX/${lib.dir.name}"
                comp.path="$$PREFIX/${comp.dir.name}"
                fjbg.path="../../../lib/${fjbg.name}"
                msil.path="../../../lib/${msil.name}"
                exec.dir="${locker.dir}/${exec.dir.name}"/>
    <build.exec.win lib.path="%SCALA_HOME%\${lib.dir.name}"
                comp.path="%SCALA_HOME%\${comp.dir.name}"
                fjbg.path="..\..\..\lib\${fjbg.name}"
                msil.path="..\..\..\lib\${msil.name}"
                exec.dir="${locker.dir}\${exec.dir.name}"/>
  </target>
  
  <!--
  ##############################################################################
  BUILD QUICK-TEST LAYER
  ##############################################################################
  -->
  
  <target name="build" depends="init.locker">
    <!-- Build library -->
    <mkdir dir="${quick.lib.dir}"/>
    <pico srcdir="${src.dir}/${lib.dir.name}"
          destdir="${quick.lib.dir}"
          scalahack="true">
      <classpath>
        <pathelement location="${quick.lib.dir}"/>
      </classpath>
      <include name="**/*.java"/>
    </pico>
    <locker srcdir="${src.dir}/${lib.dir.name}"
           destdir="${quick.lib.dir}"
           usepredefs="false"
           debuginfo="${nsc.debug-info}">
      <classpath>
        <pathelement location="${quick.lib.dir}"/>
      </classpath>
      <include name="scala/Predef.scala"/>
      <include name="scala/runtime/ScalaRunTime.scala"/>
    </locker>
    <locker srcdir="${src.dir}/${lib.dir.name}"
           destdir="${quick.lib.dir}"
           debuginfo="${nsc.debug-info}">
      <classpath>
        <pathelement location="${quick.lib.dir}"/>
      </classpath>
      <include name="**/*.scala"/>
      <exclude name="scala/Predef.scala"/>
      <exclude name="scala/runtime/ScalaRunTime.scala"/>
      <excludesfile name="${nsc.excludes}" if="excludes.avail"/>
    </locker>
    <!-- Build compiler -->
    <mkdir dir="${quick.comp.dir}"/>
    <pico srcdir="${src.dir}/${comp.dir.name}"
          destdir="${quick.comp.dir}"
          scalahack="true">
      <classpath>
        <pathelement location="${quick.lib.dir}"/>
        <pathelement location="${quick.comp.dir}"/>
      </classpath>
      <include name="**/*.java"/>
    </pico>
    <locker srcdir="${src.dir}/${comp.dir.name}"
           destdir="${quick.comp.dir}"
           debuginfo="${nsc.debug-info}">
      <classpath>
        <pathelement location="${quick.lib.dir}"/>
        <pathelement location="${quick.comp.dir}"/>
        <path refid="locker.classpath"/>
        <pathelement location="${ant.jar}"/>
      </classpath>
      <include name="**/*.scala"/>
      <excludesfile name="${nsc.excludes}" if="excludes.avail"/>
    </locker>
    <!-- Build executable files -->
    <build.exec lib.path="$$PREFIX/${lib.dir.name}"
                comp.path="$$PREFIX/${comp.dir.name}"
                fjbg.path="../../../lib/${fjbg.name}"
                msil.path="../../../lib/${msil.name}"
                exec.dir="${quick.dir}/${exec.dir.name}"/>
    <build.exec.win lib.path="%SCALA_HOME%\${lib.dir.name}"
                comp.path="%SCALA_HOME%\${comp.dir.name}"
                fjbg.path="..\..\..\lib\${fjbg.name}"
                msil.path="..\..\..\lib\${msil.name}"
                exec.dir="${quick.dir}\${exec.dir.name}"/>
  </target>

  <!--
  ##############################################################################
  TEST
  ##############################################################################
  -->
  
  <target name="test" depends="init.quick">
    <!-- Build the bootstrap layer -->
    <!-- Build library -->
    <mkdir dir="${strap.lib.dir}"/>
    <pico srcdir="${src.dir}/${lib.dir.name}"
          destdir="${strap.lib.dir}"
          scalahack="true">
      <classpath>
        <pathelement location="${strap.lib.dir}"/>
      </classpath>
      <include name="**/*.java"/>
    </pico>
    <quick srcdir="${src.dir}/${lib.dir.name}"
           destdir="${strap.lib.dir}"
           usepredefs="false"
           debuginfo="${nsc.debug-info}">
      <classpath>
        <pathelement location="${strap.lib.dir}"/>
      </classpath>
      <include name="scala/Predef.scala"/>
      <include name="scala/runtime/ScalaRunTime.scala"/>
    </quick>
    <quick srcdir="${src.dir}/${lib.dir.name}"
           destdir="${strap.lib.dir}"
           debuginfo="${nsc.debug-info}">
      <classpath>
        <pathelement location="${strap.lib.dir}"/>
      </classpath>
      <include name="**/*.scala"/>
      <exclude name="scala/Predef.scala"/>
      <exclude name="scala/runtime/ScalaRunTime.scala"/>
      <excludesfile name="${nsc.excludes}" if="excludes.avail"/>
    </quick>
    <!-- Build compiler -->
    <mkdir dir="${strap.comp.dir}"/>
    <pico srcdir="${src.dir}/${comp.dir.name}"
          destdir="${strap.comp.dir}"
          scalahack="true">
      <classpath>
        <pathelement location="${strap.lib.dir}"/>
        <pathelement location="${strap.comp.dir}"/>
      </classpath>
      <include name="**/*.java"/>
    </pico>
    <quick srcdir="${src.dir}/${comp.dir.name}"
           destdir="${strap.comp.dir}"
           debuginfo="${nsc.debug-info}">
      <classpath>
        <pathelement location="${strap.lib.dir}"/>
        <pathelement location="${strap.comp.dir}"/>
        <path refid="quick.classpath"/>
        <pathelement location="${ant.jar}"/>
      </classpath>
      <include name="**/*.scala"/>
      <excludesfile name="${nsc.excludes}" if="excludes.avail"/>
    </quick>
    <!-- Build executable files -->
    <build.exec lib.path="$$$PREFIX/${lib.dir.name}"
                comp.path="$$PREFIX/${comp.dir.name}"
                fjbg.path="../../../lib/${fjbg.name}"
                msil.path="../../../lib/${msil.name}"
                exec.dir="${strap.dir}/${exec.dir.name}"/>
    <build.exec.win lib.path="%SCALA_HOME%\${lib.dir.name}"
                comp.path="%SCALA_HOME%\${comp.dir.name}"
                fjbg.path="..\..\..\lib\${fjbg.name}"
                msil.path="..\..\..\lib\${msil.name}"
                exec.dir="${strap.dir}\${exec.dir.name}"/>
    <!-- Compares quick and test level -->
    <checksum totalproperty="quick.md5">
      <fileset dir="${quick.dir}">
        <include name="${lib.dir.name}/**"/>
        <include name="${comp.dir.name}/**"/>
      </fileset>
    </checksum>
    <delete quiet="true" failonerror="false">
      <fileset dir="${quick.dir}"><include name="**/*.MD5"/></fileset>
    </delete>
    <checksum totalproperty="strap.md5">
      <fileset dir="${strap.dir}">
        <include name="${lib.dir.name}/**"/>
        <include name="${comp.dir.name}/**"/>
      </fileset>
    </checksum>
    <delete quiet="true" failonerror="false">
      <fileset dir="${strap.dir}"><include name="**/*.MD5"/></fileset>
    </delete>
    <fail message="Build is not stable">
      <condition><not>
        <equals arg1="${quick.md5}" arg2="${strap.md5}"/>
      </not></condition>
    </fail>
    <echo>Build is stable</echo>
  </target>

  <!--
  ##############################################################################
  DOCUMENT
  ##############################################################################
  -->
  
  <target name="docs">
    <echo>Docs is not available yet.</echo>
  </target>

  <!--
  ##############################################################################
  GENERATES A DISTRIBUTION
  ##############################################################################
  -->

  <target name="init.dist" if="os.unix">
    <mkdir dir="${dist.current.dir}"/>
    <symlink link="${dist.latest.dir}"
             resource="${dist.current.dir}"
             overwrite="yes"/>
  </target>

  <target name="dist" depends="test, init.dist">
    <mkdir dir="${dist.current.dir}"/>
    <mkdir dir="${dist.current.dir}/lib"/>
    <jar destfile="${dist.current.dir}/lib/${comp.jar.name}"
         basedir="${strap.comp.dir}">
      <manifest>
        <attribute name="Main-Class" value="scala.tools.nsc.Main"/>
      </manifest>
    </jar>
    <jar destfile="${dist.current.dir}/lib/${lib.jar.name}"
         basedir="${strap.lib.dir}">
    </jar>
    <copy file="${fjbg.jar}" todir="${dist.current.dir}/lib"/>
    <copy file="${msil.jar}" todir="${dist.current.dir}/lib"/>
    <mkdir dir="${dist.current.dir}/bin"/>
    <build.exec lib.path="$$PREFIX/lib/${lib.jar.name}"
                comp.path="$$PREFIX/lib/${comp.jar.name}"
                fjbg.path="$$PREFIX/lib/${fjbg.name}"
                msil.path="$$PREFIX/lib/${msil.name}"
                exec.dir="${dist.current.dir}/bin"/>
    <build.exec.win lib.path="%SCALA_HOME%\lib\${lib.jar.name}"
                comp.path="%SCALA_HOME%\lib\${comp.jar.name}"
                fjbg.path="%SCALA_HOME%\lib\${fjbg.name}"
                msil.path="%SCALA_HOME%\lib\${msil.name}"
                exec.dir="${dist.current.dir}\bin"/>
  </target>
  
  <!--
  ##############################################################################
  CLEAN
  ##############################################################################
  -->
  
  <macrodef name="remove">
    <attribute name="dir"/>
    <sequential>
      <delete dir="@{dir}"
              includeemptydirs="true"
              quiet="true"
              failonerror="false"/>
    </sequential>
  </macrodef>
  
  <target name="clean">
    <remove dir="${quick.dir}"/>
    <remove dir="${strap.dir}"/>
  </target>
  
  <target name="clean.all">
    <remove dir="${locker.dir}"/>
    <remove dir="${quick.dir}"/>
    <remove dir="${strap.dir}"/>
    <remove dir="${dist.unix.dir}"/>
    <remove dir="${dist.win.dir}"/>
    <remove dir="${dist.unix.latest.dir}"/>
  </target>

</project>