summaryrefslogtreecommitdiff
path: root/ant-common.sh
diff options
context:
space:
mode:
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
+
##############################################################################