mirror of https://github.com/apache/maven.git
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
This commit is contained in:
parent
67f2147deb
commit
6c32a0653c
|
@ -20,5 +20,5 @@
|
||||||
@REM NOTE: for simplicity, only Windows NT/2000/XP is current supported
|
@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
|
@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
|
||||||
|
|
||||||
|
|
|
@ -11,11 +11,11 @@ mkdir %buildDir%
|
||||||
mkdir %classesDir%
|
mkdir %classesDir%
|
||||||
|
|
||||||
dir /B /s %srcDir%\*.java >sources
|
dir /B /s %srcDir%\*.java >sources
|
||||||
%JAVA_HOME%\bin\javac -d %classesDir% @sources
|
"%JAVA_HOME%\bin\javac" -d %classesDir% @sources
|
||||||
del /F/Q sources
|
del /F/Q sources
|
||||||
|
|
||||||
cd %classesDir%
|
cd %classesDir%
|
||||||
%JAVA_HOME%\bin\jar -cfm ..\mboot.jar ..\..\manifest.txt *.*
|
"%JAVA_HOME%\bin\jar" -cfm ..\mboot.jar ..\..\manifest.txt *.*
|
||||||
cd ..\..
|
cd ..\..
|
||||||
|
|
||||||
copy %buildDir%\mboot.jar ..
|
copy %buildDir%\mboot.jar ..
|
||||||
|
|
Loading…
Reference in New Issue