User: chirino Date: 02/03/08 22:13:24 Modified: jboss build.bat Log: So that you can pass more than 8 arguments in the ant build. Good for when have to set alot of properties on the command line. Revision Changes Path 1.9 +19 -7 build/jboss/build.bat Index: build.bat =================================================================== RCS file: /cvsroot/jboss/build/jboss/build.bat,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- build.bat 28 Feb 2002 04:08:00 -0000 1.8 +++ build.bat 9 Mar 2002 06:13:24 -0000 1.9 @@ -1,4 +1,5 @@ @echo off + REM ====================================================================== REM REM This is the main entry point for the build system. @@ -8,7 +9,7 @@ REM REM ====================================================================== REM -REM $Id: build.bat,v 1.8 2002/02/28 04:08:00 user57 Exp $ +REM $Id: build.bat,v 1.9 2002/03/09 06:13:24 chirino Exp $ REM REM Authors: REM Jason Dillon <[EMAIL PROTECTED]> @@ -46,7 +47,7 @@ REM ****************************************************** SET EXECUTED=FALSE -for %%i in (%NAMES%) do call :subLoop %%i %1 %2 %3 %4 %5 %6 +for %%i in (%NAMES%) do call :subLoop %%i %* goto :EOF @@ -56,7 +57,18 @@ REM ****************************************************** :subLoop -for %%j in (%SUBFOLDERS%) do call :testIfExists %%j\%1\bin\ant.bat %2 %3 %4 %5 %6 %7 +SET SUBDIR=%1 +SHIFT + +set OTHER_ARGS= +:setupArgs +if %1a==a goto doneSetupArgs +set OTHER_ARGS=%OTHER_ARGS% %1 +shift +goto setupArgs +:doneSetupArgs + +for %%j in (%SUBFOLDERS%) do call :testIfExists %%j\%SUBDIR%\bin\ant.bat %OTHER_ARGS% goto :EOF @@ -66,7 +78,7 @@ REM ****************************************************** :testIfExists -if exist %1 call :BatchFound %1 %2 %3 %4 %5 %6 %7 %8 +if exist %1 call :BatchFound %* goto :EOF @@ -76,7 +88,7 @@ REM ****************************************************** :BatchFound -if (%EXECUTED%)==(FALSE) call :ExecuteBatch %1 %2 %3 %4 %5 %6 %7 %8 +if (%EXECUTED%)==(FALSE) call :ExecuteBatch %* set EXECUTED=TRUE goto :EOF @@ -86,8 +98,8 @@ REM ****************************************************** :ExecuteBatch -echo Calling %1 %2 %3 %4 %5 %6 %7 %8 -call %1 %2 %3 %4 %5 %6 %7 %8 +echo Calling %* +call %* :end
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
