HBASE-8456 HBase Windows scripts fail when there's a blank space in JAVA_HOME (Mostafa Elhemali)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1477351 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Enis Soztutar 2013-04-29 21:26:55 +00:00
parent 9f86b77906
commit 518168296c
2 changed files with 3 additions and 3 deletions

View File

@ -29,12 +29,12 @@ if not defined JAVA_HOME (
set JAVA_HOME=c:\apps\java set JAVA_HOME=c:\apps\java
) )
if not exist %JAVA_HOME%\bin\java.exe ( if not exist "%JAVA_HOME%\bin\java.exe" (
echo Error: JAVA_HOME is incorrectly set or could not find java at the location %JAVA_HOME%\bin\ echo Error: JAVA_HOME is incorrectly set or could not find java at the location %JAVA_HOME%\bin\
exit /B 2 exit /B 2
) )
set JAVA=%JAVA_HOME%\bin\java set JAVA="%JAVA_HOME%\bin\java"
for %%i in (%0) do ( for %%i in (%0) do (
if not defined HBASE_BIN_PATH ( if not defined HBASE_BIN_PATH (

View File

@ -82,7 +82,7 @@ if not "%HBASE_HEAPSIZE%" == "" (
set JAVA_HEAP_MAX=-Xmx%HBASE_HEAPSIZE%m set JAVA_HEAP_MAX=-Xmx%HBASE_HEAPSIZE%m
) )
set CLASSPATH=%HBASE_CONF_DIR%;%JAVA_HOME%\lib\tools.jar set CLASSPATH=%HBASE_CONF_DIR%;"%JAVA_HOME%\lib\tools.jar"
rem Add maven target directory rem Add maven target directory
set cached_classpath_filename=%HBASE_HOME%\target\cached_classpath.txt set cached_classpath_filename=%HBASE_HOME%\target\cached_classpath.txt