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:43:30 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-7.1.x 52b6e61f1 -> 249f42310


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/249f4231
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/249f4231
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/249f4231

Branch: refs/heads/tomee-7.1.x
Commit: 249f42310b0351ec19ee07f6a27f5b4a93e680e1
Parents: 52b6e61
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:43:10 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/249f4231/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