summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xant-build-nsc.sh13
-rwxr-xr-xant-common.sh11
-rwxr-xr-xant-test-nsc.sh13
3 files changed, 13 insertions, 24 deletions
diff --git a/ant-build-nsc.sh b/ant-build-nsc.sh
index 86e2c245d2..ef273d6a9f 100755
--- a/ant-build-nsc.sh
+++ b/ant-build-nsc.sh
@@ -4,22 +4,11 @@
##############################################################################
# $Id$
-. ant-common.sh
+. ant-common.sh build-nsc
##############################################################################
# ant build
-ANT_CONFIG_BUILDFILE=build-nsc.xml
-ANT_BUILDFILE=concrete-$ANT_CONFIG_BUILDFILE
-ANT_EXCLUDEFILE=developer/${USER}/build-nsc-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
-
CLASSPATH=$nsc_fjbg_jar:$nsc_scala_jar:$nsc_tools_jar:$nsc_jaco_jar
# for debugging your classpath
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
+
##############################################################################
diff --git a/ant-test-nsc.sh b/ant-test-nsc.sh
index 438cfb9199..66750f1724 100755
--- a/ant-test-nsc.sh
+++ b/ant-test-nsc.sh
@@ -4,22 +4,11 @@
##############################################################################
# $Id$
-. ant-common.sh
+. ant-common.sh test-nsc
##############################################################################
# ant build
-ANT_CONFIG_BUILDFILE=test-nsc.xml
-ANT_BUILDFILE=concrete-$ANT_CONFIG_BUILDFILE
-ANT_EXCLUDELFILE=developer/${USER}/test-nsc-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
-
CLASSPATH=$nsc_fjbg_jar:$nsc_scala_jar:$nsc_tools_jar:$nsc_nsc_jar:$nsc_nsc4ant_jar
# for debugging your classpath