--- Ringo De Smet <[EMAIL PROTECTED]> wrote: 
>  --- bob mcwhirter <[EMAIL PROTECTED]> wrote: 
> Well, I did a little bit of debugging and the problem is not in the
> build-bootstrap.xml file, but in the Windows maven.bat file. Patch
> attached!

Forget my previous patch. It seems I hadn't noticed Nathan sent it
already. However, in the batch files, the 'CP' environment variable is
used to define a local classpath used by Maven to build. The use of
'CP' is a bit to short and actually conflicts with an environment
variable that is already defined on my system. The attached patches for
maven.bat and cp.bat now use 'MAVEN_CP' as environment variable.

Ringo

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
Index: maven.bat
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/src/bin/maven.bat,v
retrieving revision 1.2
diff -u -r1.2 maven.bat
--- maven.bat   14 Jun 2002 04:57:11 -0000      1.2
+++ maven.bat   29 Jun 2002 13:44:37 -0000
@@ -2,11 +2,11 @@
 
 if "%MAVEN_HOME%" == "" goto error
 
-set CP=
-for %%i in (%MAVEN_HOME%\lib\*.jar) do call cp.bat %%i
-set CP=%JAVA_HOME%\lib\tools.jar;%CP%
+set MAVEN_CP=
+for %%i in (%MAVEN_HOME%\lib\*.jar) do call %MAVEN_HOME%\bin\cp.bat %%i
+set MAVEN_CP=%JAVA_HOME%\lib\tools.jar;%CP%
 
-java -classpath "%CP%" -Dmaven.home=%MAVEN_HOME% org.apache.maven.app.Maven %*
+java -classpath "%MAVEN_CP%" -Dmaven.home=%MAVEN_HOME% org.apache.maven.app.Maven %*
 
 goto end
 
@@ -18,5 +18,5 @@
 
 :end
 
-set LOCALCLASSPATH=
+set MAVEN_CP=
 
Index: cp.bat
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/src/bin/cp.bat,v
retrieving revision 1.1
diff -u -r1.1 cp.bat
--- cp.bat      13 Jun 2002 12:13:03 -0000      1.1
+++ cp.bat      29 Jun 2002 13:44:14 -0000
@@ -1,2 +1,2 @@
-set CP=%1;%CP%
+set MAVEN_CP=%1;%MAVEN_CP%
 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to