tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgallim...@apache.org
Subject tomee git commit: Fixes TOMEE-2261 Make service.bat compatible with JDK11+
Date Fri, 21 Dec 2018 12:44:45 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-7.0.x cfa04251c -> 894bc89c0


Fixes TOMEE-2261 Make service.bat compatible with JDK11+


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/894bc89c
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/894bc89c
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/894bc89c

Branch: refs/heads/tomee-7.0.x
Commit: 894bc89c0f738c020678e6c06802c66c21287b09
Parents: cfa0425
Author: Gerwin Jansen <gerwin84@gmail.com>
Authored: Fri Dec 21 11:03:55 2018 +0100
Committer: Jonathan Gallimore <jon@jrg.me.uk>
Committed: Fri Dec 21 12:44:31 2018 +0000

----------------------------------------------------------------------
 tomee/apache-tomee/src/main/resources/service.bat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/894bc89c/tomee/apache-tomee/src/main/resources/service.bat
----------------------------------------------------------------------
diff --git a/tomee/apache-tomee/src/main/resources/service.bat b/tomee/apache-tomee/src/main/resources/service.bat
index 3483e98..a8098aa 100644
--- a/tomee/apache-tomee/src/main/resources/service.bat
+++ b/tomee/apache-tomee/src/main/resources/service.bat
@@ -90,7 +90,7 @@ if not exist "%JRE_HOME%\bin\java.exe" goto noJavaHome
 if not exist "%JRE_HOME%\bin\javaw.exe" goto noJavaHome
 goto okJavaHome
 :gotJdkHome
-for /f tokens^=2-5^ delims^=.-_^" %%j in ('%JAVA_HOME%\bin\java.exe -fullversion 2^>^&1')
do set "JAVA_MAJOR_VERSION=%%j"
+for /f tokens^=2^ delims^=.-_^" %%j in ('"%JAVA_HOME%\bin\java.exe" -fullversion 2^>^&1')
do set "JAVA_MAJOR_VERSION=%%j"
 if JAVA_MAJOR_VERSION lss 11 (
     if not exist "%JAVA_HOME%\jre\bin\java.exe" goto noJavaHome
     if not exist "%JAVA_HOME%\jre\bin\javaw.exe" goto noJavaHome


Mime
View raw message