summaryrefslogtreecommitdiff
path: root/ant-common.sh
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-09-13 09:18:22 +0000
committermichelou <michelou@epfl.ch>2005-09-13 09:18:22 +0000
commitb6f8d5a603fab46e6e8e30fc85a35d36fda6f05e (patch)
tree620dfe442ff680e55f6034bd21716932ac534570 /ant-common.sh
parentec5c9dff4b975f2532bf6ce900cddd16c29ec70e (diff)
downloadscala-b6f8d5a603fab46e6e8e30fc85a35d36fda6f05e.tar.gz
scala-b6f8d5a603fab46e6e8e30fc85a35d36fda6f05e.tar.bz2
scala-b6f8d5a603fab46e6e8e30fc85a35d36fda6f05e.zip
- moved handling of exclude file to ant-common.sh
Diffstat (limited to 'ant-common.sh')
-rwxr-xr-xant-common.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/ant-common.sh b/ant-common.sh
index df29b1865b..e607119349 100755
--- a/ant-common.sh
+++ b/ant-common.sh
@@ -24,4 +24,15 @@ SED=sed
$ANT_CMD -Dplatform=unix -q -f setenv-nsc.xml
. env.sh
+ANT_CONFIG_BUILDFILE=$1.xml
+ANT_BUILDFILE=concrete-$ANT_CONFIG_BUILDFILE
+ANT_EXCLUDEFILE=developer/${USER}/$1-excludes.xml
+
+if [ -f "$ANT_EXCLUDEFILE" ]; then
+ $SED -e "s#userExcludes\ \"\"#userExcludes\ SYSTEM\ \"$ANT_EXCLUDEFILE\"#" \
+ < $ANT_CONFIG_BUILDFILE > $ANT_BUILDFILE;
+ else
+ $CP $ANT_CONFIG_BUILDFILE $ANT_BUILDFILE;
+fi
+
##############################################################################