User: slaboure
  Date: 01/09/01 08:57:37

  Modified:    jboss    build.bat
  Log:
  Put batch in SETLOCAL mode so that any environment variable modification
  is only active in the batch: once terminated, original variable values are
  re-activated.
  Cleared the ANT_HOME environment variable to force the use of our ANT
  version.
  
  Revision  Changes    Path
  1.4       +85 -89    build/jboss/build.bat
  
  Index: build.bat
  ===================================================================
  RCS file: /cvsroot/jboss/build/jboss/build.bat,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.bat 2001/09/01 12:06:17     1.3
  +++ build.bat 2001/09/01 15:57:37     1.4
  @@ -1,90 +1,86 @@
  -@echo off
  -REM  ======================================================================
  -REM
  -REM  This is the main entry point for the build system.
  -REM
  -REM  Users should be sure to execute this file rather than 'ant' to ensure
  -REM  the correct version is being used with the correct configuration.
  -REM
  -REM  ======================================================================
  -REM
  -REM $Id: build.bat,v 1.3 2001/09/01 12:06:17 kimptoc Exp $
  -REM
  -REM Authors:
  -REM     Jason Dillon <[EMAIL PROTECTED]>
  -REM     Sacha Labourey  <[EMAIL PROTECTED]>
  -REM
  -
  -REM ******************************************************
  -REM Ignore the users ANT_HOME, cause it might mess
  -REM things up
  -REM ******************************************************
  -
  -set ANT_HOME=
  -
  -
  -
  -REM ******************************************************
  -REM Ignore the users classpath, cause it might mess
  -REM things up
  -REM ******************************************************
  -
  -set CLASSPATH=
  -
  -
  -REM ******************************************************
  -REM - "for" loops have been unrolled for compatibility
  -REM   with some WIN32 systems.
  -REM ******************************************************
  -
  -set NAMES=tools;tools\ant;tools\apache\ant
  -set SUBFOLDERS=..;..\..;..\..\..;..\..\..\..
  -
  -REM ******************************************************
  -REM ******************************************************
  -
  -SET EXECUTED=FALSE
  -for %%i in (%NAMES%) do call :subLoop %%i %1 %2 %3 %4 %5 %6
  -
  -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
  -
  -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
  -
  -goto :EOF
  -
  -
  -REM ******************************************************
  -REM ************** Batch file has been found *************
  -REM ******************************************************
  -
  -:BatchFound
  -if (%EXECUTED%)==(FALSE) call :ExecuteBatch %1 %2 %3 %4 %5 %6 %7 %8
  -set EXECUTED=TRUE
  -
  -goto :EOF
  -
  -REM ******************************************************
  -REM ************* Execute Batch file only once ***********
  -REM ******************************************************
  -
  -:ExecuteBatch
  -echo Calling %1 %2 %3 %4 %5 %6 %7 %8
  -call %1 %2 %3 %4 %5 %6 %7 %8
  -
  +@echo off
  +REM  ======================================================================
  +REM
  +REM  This is the main entry point for the build system.
  +REM
  +REM  Users should be sure to execute this file rather than 'ant' to ensure
  +REM  the correct version is being used with the correct configuration.
  +REM
  +REM  ======================================================================
  +REM
  +REM $Id: build.bat,v 1.4 2001/09/01 15:57:37 slaboure Exp $
  +REM
  +REM Authors:
  +REM     Jason Dillon <[EMAIL PROTECTED]>
  +REM     Sacha Labourey  <[EMAIL PROTECTED]>
  +REM
  +
  +REM ******************************************************
  +REM Ignore the ANT_HOME variable: we want to use *our*
  +REM ANT version and associated JARs.
  +REM ******************************************************
  +REM Ignore the users classpath, cause it might mess
  +REM things up
  +REM ******************************************************
  +
  +SETLOCAL
  +
  +set CLASSPATH=
  +set ANT_HOME=
  +
  +REM ******************************************************
  +REM - "for" loops have been unrolled for compatibility
  +REM   with some WIN32 systems.
  +REM ******************************************************
  +
  +set NAMES=tools;tools\ant;tools\apache\ant
  +set SUBFOLDERS=..;..\..;..\..\..;..\..\..\..
  +
  +REM ******************************************************
  +REM ******************************************************
  +
  +SET EXECUTED=FALSE
  +for %%i in (%NAMES%) do call :subLoop %%i %1 %2 %3 %4 %5 %6
  +
  +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
  +
  +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
  +
  +goto :EOF
  +
  +
  +REM ******************************************************
  +REM ************** Batch file has been found *************
  +REM ******************************************************
  +
  +:BatchFound
  +if (%EXECUTED%)==(FALSE) call :ExecuteBatch %1 %2 %3 %4 %5 %6 %7 %8
  +set EXECUTED=TRUE
  +
  +goto :EOF
  +
  +REM ******************************************************
  +REM ************* Execute Batch file only once ***********
  +REM ******************************************************
  +
  +:ExecuteBatch
  +echo Calling %1 %2 %3 %4 %5 %6 %7 %8
  +call %1 %2 %3 %4 %5 %6 %7 %8
  +
   :end
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to