From c188ae171c2f02b7789b43d5a77591140cfc4f32 Mon Sep 17 00:00:00 2001 From: michelou Date: Mon, 12 Sep 2005 12:23:28 +0000 Subject: - moved handling of Ant buildfile to ant-common... - moved handling of Ant buildfile to ant-common.bat --- ant-common.bat | 50 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 18 deletions(-) (limited to 'ant-common.bat') 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 ########################################################################## -- cgit v1.2.3