zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cnaur...@apache.org
Subject svn commit: r1706631 - in /zookeeper/trunk: CHANGES.txt bin/zkEnv.cmd
Date Sat, 03 Oct 2015 21:07:25 GMT
Author: cnauroth
Date: Sat Oct  3 21:07:25 2015
New Revision: 1706631

URL: http://svn.apache.org/viewvc?rev=1706631&view=rev
Log:
ZOOKEEPER-2281: ZK Server startup fails if there are spaces in the JAVA_HOME path (Neha Bathra
via cnauroth)

Modified:
    zookeeper/trunk/CHANGES.txt
    zookeeper/trunk/bin/zkEnv.cmd

Modified: zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1706631&r1=1706630&r2=1706631&view=diff
==============================================================================
--- zookeeper/trunk/CHANGES.txt (original)
+++ zookeeper/trunk/CHANGES.txt Sat Oct  3 21:07:25 2015
@@ -184,6 +184,9 @@ BUGFIXES:
   ZOOKEEPER-2268: Zookeeper doc creation fails on windows
   (Arshad Mohammad via cnauroth)
 
+  ZOOKEEPER-2281: ZK Server startup fails if there are spaces in the JAVA_HOME
+  path (Neha Bathra via cnauroth)
+
 IMPROVEMENTS:
   ZOOKEEPER-1660 Documentation for Dynamic Reconfiguration (Reed Wanderman-Milne via shralex)
 
 

Modified: zookeeper/trunk/bin/zkEnv.cmd
URL: http://svn.apache.org/viewvc/zookeeper/trunk/bin/zkEnv.cmd?rev=1706631&r1=1706630&r2=1706631&view=diff
==============================================================================
--- zookeeper/trunk/bin/zkEnv.cmd (original)
+++ zookeeper/trunk/bin/zkEnv.cmd Sat Oct  3 21:07:25 2015
@@ -39,10 +39,12 @@ if not defined JAVA_HOME (
   goto :eof
 )
 
-if not exist %JAVA_HOME%\bin\java.exe (
+set JAVA_HOME=%JAVA_HOME:"=%
+
+if not exist "%JAVA_HOME%"\bin\java.exe (
   echo Error: JAVA_HOME is incorrectly set.
   goto :eof
 )
 
-set JAVA=%JAVA_HOME%\bin\java
+set JAVA="%JAVA_HOME%"\bin\java
 



Mime
View raw message