[jboss-cvs] JBossAS SVN: r61860 - trunk/testsuite.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Mar 29 13:20:38 EDT 2007


Author: dimitris at jboss.org
Date: 2007-03-29 13:20:38 -0400 (Thu, 29 Mar 2007)
New Revision: 61860

Modified:
   trunk/testsuite/build.bat
Log:
JBAS-4243, process all command line arguments

Modified: trunk/testsuite/build.bat
===================================================================
--- trunk/testsuite/build.bat	2007-03-29 17:19:58 UTC (rev 61859)
+++ trunk/testsuite/build.bat	2007-03-29 17:20:38 UTC (rev 61860)
@@ -1,4 +1,5 @@
 @echo off
+
 REM  ======================================================================
 REM
 REM  This is the main entry point for the build system.
@@ -9,11 +10,6 @@
 REM  ======================================================================
 REM
 REM $Id$
-REM
-REM Authors:
-REM     Jason Dillon <jason at planet57.com>
-REM     Sacha Labourey <sacha.labourey at cogito-info.ch>
-REM
 
 REM ******************************************************
 REM Ignore the ANT_HOME variable: we want to use *our*
@@ -25,8 +21,10 @@
 
 SETLOCAL
 
+set NOPAUSE=true
 set CLASSPATH=
 set ANT_HOME=
+
 set ANT_OPTS=-Xmx256m -Djava.protocol.handler.pkgs=org.jboss.net.protocol -Dbuild.script=build.bat
 
 REM ******************************************************
@@ -38,40 +36,51 @@
 set SUBFOLDERS=..;..\..;..\..\..;..\..\..\..
 
 REM ******************************************************
+REM ********Save the command line arguments***************
 REM ******************************************************
+set BUILD_ARGS=%1
+if ""%1""=="""" goto completedArgs
+shift
+:processArg
+if ""%1""=="""" goto completedArgs
+set BUILD_ARGS=%BUILD_ARGS% %1
+shift
+goto processArg
 
+:completedArgs
+
+REM ******************************************************
+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 %BUILD_ARGS%
 
 goto :EOF
 
-
 REM ******************************************************
 REM ********* Search for names in the subfolders *********
 REM ******************************************************
 
 :subLoop
-for %%j in (%SUBFOLDERS%) do call :testIfExists %%j\%1\bin\ant.bat %2 %3 %4 %5 %6 %7
+for %%j in (%SUBFOLDERS%) do call :testIfExists %%j\%1\bin\ant.bat %BUILD_ARGS%
 
 goto :EOF
 
-
 REM ******************************************************
 REM ************ Test if ANT Batch file exists ***********
 REM ******************************************************
 
 :testIfExists
-if exist %1 call :BatchFound %1 %2 %3 %4 %5 %6 %7 %8
+if exist %1 call :BatchFound %1 %BUILD_ARGS%
 
 goto :EOF
 
-
 REM ******************************************************
 REM ************** Batch file has been found *************
 REM ******************************************************
 
 :BatchFound
-if (%EXECUTED%)==(FALSE) call :ExecuteBatch %1 %2 %3 %4 %5 %6 %7 %8
+if (%EXECUTED%)==(FALSE) call :ExecuteBatch %1 %BUILD_ARGS%
 set EXECUTED=TRUE
 
 goto :EOF
@@ -81,8 +90,8 @@
 REM ******************************************************
 
 :ExecuteBatch
-echo Calling %1 %2 %3 %4 %5 %6 %7 %8
-call %1 %2 %3 %4 %5 %6 %7 %8
+echo Calling %1 %BUILD_ARGS%
+call %1 %BUILD_ARGS%
 
 :end
 




More information about the jboss-cvs-commits mailing list