diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-10-13 09:16:19 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-10-13 09:16:19 +0000 |
commit | 90b1ff4a62708c0b2e555f9c7c3fd1cac90a1ac4 (patch) | |
tree | ae551c6292f3a6fb219350cd16ec48bae516011c | |
parent | d2c7c9829125dcf0c21369fd2fdb3bbc3370169e (diff) | |
download | scala-90b1ff4a62708c0b2e555f9c7c3fd1cac90a1ac4.tar.gz scala-90b1ff4a62708c0b2e555f9c7c3fd1cac90a1ac4.tar.bz2 scala-90b1ff4a62708c0b2e555f9c7c3fd1cac90a1ac4.zip |
Added a simple test to make sure that additiona...
Added a simple test to make sure that additional memory has been
provided to the script.
-rw-r--r-- | build.xml | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -3,14 +3,20 @@ <project name="nsc" default="build"> <description> - This build-file builds the Scala NSC compiler as well as various related - tools. The 'build.TEMPLATE.properties' file must be customised for your - own particular system, no other customisation should be required. The - build file expects the file structure of a Scala CVS distribution. + This is SABBUS, the system to build the Scala NSC compiler as well as + various related tools. The 'build.TEMPLATE.properties' file must be + customised for your own particular system, no other customisation should + be required. The build file expects the file structure of a Scala CVS + distribution. </description> + + <echo>This is SABBUS, your helpful build script for new Scala.</echo> <property environment="env" /> - <echo level="verbose">ANT_OPTS=${env.ANT_OPTS}</echo> + <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> <!-- The system classpath should not be used --> <property name="build.sysclasspath" value="ignore" /> @@ -421,9 +427,9 @@ <target name="clean.distrib" description="Deletes all generated distribution files."> - <delete dir="${distrib.dir}" includeemptydirs="true" + <delete includeemptydirs="true" quiet="true" failonerror="false"> - <fileset> + <fileset dir="${distrib.dir}"> <include name="${distrib.current.prefix}-*" /> </fileset> </delete> |