From 6c32a0653cf3815cdd9d3f52de3adc4adb921539 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Gonzalez Date: Sat, 16 Apr 2005 04:16:29 +0000 Subject: [PATCH] Fix issue when JAVA_HOME contains spaces git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163960 13f79535-47bb-0310-9956-ffa450edef68 --- maven-core-it/maven-core-it.bat | 2 +- maven-mboot2/build.bat | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/maven-core-it/maven-core-it.bat b/maven-core-it/maven-core-it.bat index fd4c690bfa..7ee133d33e 100755 --- a/maven-core-it/maven-core-it.bat +++ b/maven-core-it/maven-core-it.bat @@ -20,5 +20,5 @@ @REM NOTE: for simplicity, only Windows NT/2000/XP is current supported @REM This also assumes that M2_HOME and JAVA_HOME are set, which are verified in the bootstrap script only -%JAVA_HOME%\bin\java.exe %* -Dmaven.home="%M2_HOME%" -cp "..\maven-core-it-verifier\target\maven-core-it-verifier-1.0.jar" org.apache.maven.it.Verifier +"%JAVA_HOME%\bin\java.exe" %* -Dmaven.home="%M2_HOME%" -cp "..\maven-core-it-verifier\target\maven-core-it-verifier-1.0.jar" org.apache.maven.it.Verifier diff --git a/maven-mboot2/build.bat b/maven-mboot2/build.bat index 2faf537ee3..95a0f37ac8 100644 --- a/maven-mboot2/build.bat +++ b/maven-mboot2/build.bat @@ -11,11 +11,11 @@ mkdir %buildDir% mkdir %classesDir% dir /B /s %srcDir%\*.java >sources -%JAVA_HOME%\bin\javac -d %classesDir% @sources +"%JAVA_HOME%\bin\javac" -d %classesDir% @sources del /F/Q sources cd %classesDir% -%JAVA_HOME%\bin\jar -cfm ..\mboot.jar ..\..\manifest.txt *.* +"%JAVA_HOME%\bin\jar" -cfm ..\mboot.jar ..\..\manifest.txt *.* cd ..\.. copy %buildDir%\mboot.jar ..