hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1477351 - in /hbase/trunk/bin: hbase-config.cmd hbase.cmd
Date Mon, 29 Apr 2013 21:26:56 GMT
Author: enis
Date: Mon Apr 29 21:26:55 2013
New Revision: 1477351

URL: http://svn.apache.org/r1477351
Log:
HBASE-8456 HBase Windows scripts fail when there's a blank space in JAVA_HOME (Mostafa Elhemali)

Modified:
    hbase/trunk/bin/hbase-config.cmd
    hbase/trunk/bin/hbase.cmd

Modified: hbase/trunk/bin/hbase-config.cmd
URL: http://svn.apache.org/viewvc/hbase/trunk/bin/hbase-config.cmd?rev=1477351&r1=1477350&r2=1477351&view=diff
==============================================================================
--- hbase/trunk/bin/hbase-config.cmd (original)
+++ hbase/trunk/bin/hbase-config.cmd Mon Apr 29 21:26:55 2013
@@ -29,12 +29,12 @@ if not defined JAVA_HOME (
   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\
   exit /B 2
 )
 
-set JAVA=%JAVA_HOME%\bin\java
+set JAVA="%JAVA_HOME%\bin\java"
 
 for %%i in (%0) do (
   if not defined HBASE_BIN_PATH (

Modified: hbase/trunk/bin/hbase.cmd
URL: http://svn.apache.org/viewvc/hbase/trunk/bin/hbase.cmd?rev=1477351&r1=1477350&r2=1477351&view=diff
==============================================================================
--- hbase/trunk/bin/hbase.cmd (original)
+++ hbase/trunk/bin/hbase.cmd Mon Apr 29 21:26:55 2013
@@ -82,7 +82,7 @@ if not "%HBASE_HEAPSIZE%" == "" (
   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
 set cached_classpath_filename=%HBASE_HOME%\target\cached_classpath.txt



Mime
View raw message