diff options
author | michelou <michelou@epfl.ch> | 2005-09-12 12:23:28 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2005-09-12 12:23:28 +0000 |
commit | c188ae171c2f02b7789b43d5a77591140cfc4f32 (patch) | |
tree | 344c14a4f6cfb909579d5bae65ea608299b04872 /ant-common.bat | |
parent | 675b73f5c46ce638b0e59a3019c7078d869f2ad5 (diff) | |
download | scala-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.bat | 50 |
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 ########################################################################## |