summaryrefslogtreecommitdiff
path: root/ant-common.bat
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-09-12 12:23:28 +0000
committermichelou <michelou@epfl.ch>2005-09-12 12:23:28 +0000
commitc188ae171c2f02b7789b43d5a77591140cfc4f32 (patch)
tree344c14a4f6cfb909579d5bae65ea608299b04872 /ant-common.bat
parent675b73f5c46ce638b0e59a3019c7078d869f2ad5 (diff)
downloadscala-c188ae171c2f02b7789b43d5a77591140cfc4f32.tar.gz
scala-c188ae171c2f02b7789b43d5a77591140cfc4f32.tar.bz2
scala-c188ae171c2f02b7789b43d5a77591140cfc4f32.zip
- moved handling of Ant buildfile to ant-common...
- moved handling of Ant buildfile to ant-common.bat
Diffstat (limited to 'ant-common.bat')
-rw-r--r--ant-common.bat50
1 files changed, 32 insertions, 18 deletions
diff --git a/ant-common.bat b/ant-common.bat
index 1db6f81572..565f09ffb6 100644
--- a/ant-common.bat
+++ b/ant-common.bat
@@ -1,29 +1,43 @@
@echo off
-rem ####################################################-*-Batch-script-*-####
-rem # Common settings
-rem ##########################################################################
-rem # $Id$
-
-rem ##########################################################################
-rem # Apache Ant
-
-set _ANTCMD=ant
-set ANT_OPTS=-Xmx256M
-rem set ANT_ARGS=-verbose
+rem ####################################################-*-Batch-script-*-####
+rem # Common settings
+rem ##########################################################################
+rem # $Id$
+
+rem ##########################################################################
+rem # Apache Ant
+
+set _ANTCMD=ant
+set ANT_OPTS=-Xmx256M
+rem set ANT_ARGS=-verbose
rem ##########################################################################
rem # Shell commands
-set CP=cp
+set CP=copy /y
set ECHO=echo
set RM=del /s /q
-
-rem ##########################################################################
-rem # environment setup
-
-echo Setting up the build environment..
+
+rem ##########################################################################
+rem # environment setup
+
+echo Setting up the build environment..
echo.
call %_ANTCMD% -Dplatform=win -q -f setenv-nsc.xml >NUL
call env.bat
-rem ##########################################################################
+rem ##########################################################################
+
+set ANT_CONFIG_BUILDFILE=%1.xml
+set ANT_BUILDFILE=concrete-%ANT_CONFIG_BUILDFILE%
+set ANT_EXCLUDEFILE=developer/%USERNAME%/%1-excludes.xml
+
+if exist "%ANT_EXCLUDEFILE%" goto exclude
+%CP% %ANT_CONFIG_BUILDFILE% %ANT_BUILDFILE%
+goto next
+:exclude
+echo %ANT_EXCLUDEFILE% file not yet supported
+%CP% %ANT_CONFIG_BUILDFILE% %ANT_BUILDFILE%
+:next
+
+rem ##########################################################################