User: user57
Date: 01/08/27 16:51:33
Modified: jboss build.bat
Removed: jboss lcp.bat
Log:
o adding updated win32 build scripts. These should work on 98+, though it
has only really been tested on 2k.
Revision Changes Path
1.2 +81 -40 build/jboss/build.bat
Index: build.bat
===================================================================
RCS file: /cvsroot/jboss/build/jboss/build.bat,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build.bat 2001/08/11 22:33:39 1.1
+++ build.bat 2001/08/27 23:51:33 1.2
@@ -1,40 +1,81 @@
-@echo off
-@if not "%ECHO%" == "" echo %ECHO%
-@if "%OS%" == "Windows_NT" setlocal
-
-REM convenience bat file to build with
-
-
-REM get the pwd
-
-@echo off
-dir | find "Directory" > }1{.bat
-set quote="
-echo if %%3!==! set quote=> directory.bat
-rem echo set PWD=%%quote%%%%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 %%quote%%>>directory.bat
-echo set PWD=%%quote%%>>directory.bat
-echo if not %%2!==! set PWD=%%PWD%%%%2>>directory.bat
-echo if not %%3!==! set PWD=%%PWD%%%%3>>directory.bat
-echo if not %%4!==! set PWD=%%PWD%%%%4>>directory.bat
-echo if not %%5!==! set PWD=%%PWD%%%%5>>directory.bat
-echo if not %%6!==! set PWD=%%PWD%%%%6>>directory.bat
-echo if not %%7!==! set PWD=%%PWD%%%%7>>directory.bat
-echo if not %%8!==! set PWD=%%PWD%%%%8>>directory.bat
-echo if not %%9!==! set PWD=%%PWD%%%%9>>directory.bat
-echo set PWD=%%PWD%%%%quote%%>>directory.bat
-call }1{
-
-rem tidy up and remove temp scripts and unset environment var
-for %%a in (}1{ directory) do del %%a.bat
-set quote=
-
-for %%i in (..\tools\apache\ant\lib\*.jar) do call lcp.bat %%i
-for %%i in (..\tools\sun\javac\lib\*.jar) do call lcp.bat %%i
-for %%i in (..\tools\dreambean\ejbdoclet\lib\*.jar) do call lcp.bat %%i
-for %%i in (..\tools\planet57\buildmagic\lib\*.jar) do call lcp.bat %%i
-
-set CP=%CP%;%PWD%\..\..\build\classes
-
-echo CLASSPATH= %CP%
-
-java %ANT_OPTS% -classpath "%CP%" org.apache.tools.ant.Main %1 %2 %3 %4 %5
+@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.2 2001/08/27 23:51:33 user57 Exp $
+REM
+REM Authors:
+REM Jason Dillon <[EMAIL PROTECTED]>
+REM Sacha Labourey <[EMAIL PROTECTED]>
+REM
+
+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
+
+:end
\ No newline at end of file
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development