You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by fl...@apache.org on 2018/01/23 12:20:46 UTC

[karaf] branch karaf-4.1.x updated: [KARAF-5573] Fix Java version detection when running on windows with whitespace

This is an automated email from the ASF dual-hosted git repository.

flange pushed a commit to branch karaf-4.1.x
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/karaf-4.1.x by this push:
     new 48bfaf9  [KARAF-5573] Fix Java version detection when running on windows with whitespace
48bfaf9 is described below

commit 48bfaf94d2167f59c32cd0e8ccd9940e5bb65002
Author: Fabian Lange <la...@gmail.com>
AuthorDate: Tue Jan 23 10:25:32 2018 +0100

    [KARAF-5573] Fix Java version detection when running on windows with whitespace
---
 .../features/base/src/main/filtered-resources/resources/bin/karaf.bat   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat
index 0c0d9d2..5863da8 100644
--- a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat
+++ b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat
@@ -379,7 +379,7 @@ if "%KARAF_PROFILER%" == "" goto :RUN
     if "%ROOT_INSTANCE_RUNNING%" == "false" SET IS_RUNNABLE=true
     if "%CHECK_ROOT_INSTANCE_RUNNING%" == "false" SET IS_RUNNABLE=true
     if "%IS_RUNNABLE%" == "true" (
-        for /f tokens^=2-5^ delims^=.-_^" %%j in ('%JAVA% -fullversion 2^>^&1') do set "JAVA_VERSION=%%k%"
+        for /f tokens^=2-5^ delims^=.-_^" %%j in ('"%JAVA%" -fullversion 2^>^&1') do set "JAVA_VERSION=%%k%"
         if "%JAVA_VERSION%" GTR 8 (
             "%JAVA%" %JAVA_OPTS% %OPTS% ^
                 --add-opens java.base/java.security=ALL-UNNAMED ^

-- 
To stop receiving notification emails like this one, please contact
flange@apache.org.