summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2009-08-27 15:02:39 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2009-08-27 15:02:39 +0000
commitd0a82fb9dbb5206996e8f08159cd522a5bfcca04 (patch)
treeb96091a9c13aff0280f6ae8eb9145118bcc2241e /build.xml
parenta04195e63727872f04ad01900a18f6ca9ec5cf2b (diff)
downloadscala-d0a82fb9dbb5206996e8f08159cd522a5bfcca04.tar.gz
scala-d0a82fb9dbb5206996e8f08159cd522a5bfcca04.tar.bz2
scala-d0a82fb9dbb5206996e8f08159cd522a5bfcca04.zip
error messge when ANT_OPTS is not set
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 7f3054b2ea..e431ed7002 100644
--- a/build.xml
+++ b/build.xml
@@ -154,6 +154,12 @@ 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 -->