summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-08-28 02:23:48 +0000
committerPaul Phillips <paulp@improving.org>2009-08-28 02:23:48 +0000
commite7bd2c9fe58e4d6bebc529614bd0ec11031d21d5 (patch)
tree31e21dfb30578c3f87a1cd7f16b02b40aa31afe1 /build.xml
parentd19685e7a52bd421934cfe389886f1a1cc938df1 (diff)
downloadscala-e7bd2c9fe58e4d6bebc529614bd0ec11031d21d5.tar.gz
scala-e7bd2c9fe58e4d6bebc529614bd0ec11031d21d5.tar.bz2
scala-e7bd2c9fe58e4d6bebc529614bd0ec11031d21d5.zip
Put a default for ANT_OPTS in build.xml.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml9
1 files changed, 3 insertions, 6 deletions
diff --git a/build.xml b/build.xml
index e431ed7002..1a309c6f05 100644
--- a/build.xml
+++ b/build.xml
@@ -100,6 +100,9 @@ PROPERTIES
============================================================================ -->
<property environment="env"/>
+ <!-- if ANT_OPTS is already set by the environment, it will be unaltered,
+ but if it is unset it will take this default value. -->
+ <property name="env.ANT_OPTS" value="-Xms512M -Xmx1024M -Xss1M -XX:MaxPermSize=128M" />
<!-- Prevents system classpath from being used -->
<property name="build.sysclasspath" value="ignore"/>
@@ -154,12 +157,6 @@ INITIALISATION
============================================================================ -->
<target name="init">
- <fail message="You need to set the ANT_OPTS environment variable to something like '-Xms512M -Xmx1024M -Xss1M -XX:MaxPermSize=128M'">
- <condition><or>
- <not><isset property="env.ANT_OPTS"/></not>
- <equals arg1="${env.ANT_OPTS}" arg2=""/>
- </or></condition>
- </fail>
<!-- Setting-up Ant contrib tasks -->
<taskdef resource="net/sf/antcontrib/antlib.xml" classpath="${lib.dir}/ant/ant-contrib.jar"/>
<!-- This is the start time for the distribution -->