summaryrefslogtreecommitdiff
path: root/ant-common.sh
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2005-07-30 23:18:59 +0000
committerBurak Emir <emir@epfl.ch>2005-07-30 23:18:59 +0000
commit526917486633c5f69aab6fe64021b2c0998b74c6 (patch)
tree7235b51e6842ee8e39fdd39b8ab8c4358ab9e1cf /ant-common.sh
parent7df39b24cf872a65203769cb76a9f0cd90d979b5 (diff)
downloadscala-526917486633c5f69aab6fe64021b2c0998b74c6.tar.gz
scala-526917486633c5f69aab6fe64021b2c0998b74c6.tar.bz2
scala-526917486633c5f69aab6fe64021b2c0998b74c6.zip
userExclude feature for build and test infrastr...
userExclude feature for build and test infrastructure
Diffstat (limited to 'ant-common.sh')
-rwxr-xr-xant-common.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/ant-common.sh b/ant-common.sh
new file mode 100755
index 0000000000..7da266bd54
--- /dev/null
+++ b/ant-common.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+export ANT_OPTS=-Xmx256m
+
+awk '/^$/ {next;} /^#/ {next;} {print "export " $1 $2 $3}' build-nsc.properties > env.sh
+
+. env.sh
+
+# ------- don't change these, change build-nsc.properties instead
+
+function addJar() { # string -> void
+ if [ -f $1 ]; then
+ CLASSPATH=$1:$CLASSPATH;
+ return 0;
+ else
+ echo you supplied $1 for $2, but it does not exists;
+ return -1;
+ fi
+}