You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by hu...@apache.org on 2023/01/18 09:18:33 UTC

[plc4x] branch develop updated: fix(prereq): Remove trailing -ea string in Java version string for version 20

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

hutcheb pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new d465153d5e fix(prereq): Remove trailing -ea string in Java version string for version 20
d465153d5e is described below

commit d465153d5e4db99a2fda42a1ef222e066ae54b73
Author: Ben Hutcheson <be...@gmail.com>
AuthorDate: Wed Jan 18 10:15:18 2023 +0100

    fix(prereq): Remove trailing -ea string in Java version string for version 20
---
 src/main/script/prerequisiteCheck.groovy | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/script/prerequisiteCheck.groovy b/src/main/script/prerequisiteCheck.groovy
index b348aa3a58..950cda7c56 100644
--- a/src/main/script/prerequisiteCheck.groovy
+++ b/src/main/script/prerequisiteCheck.groovy
@@ -98,7 +98,8 @@ def checkDotnet() {
 
 def checkJavaVersion(String minVersion, String maxVersion) {
     print "Detecting Java version:    "
-    String curVersion = System.properties['java.version']
+    String curVersion = System.properties['java.version'].split("-")[0]
+
     def result
     if (minVersion != null) {
         result = checkVersionAtLeast(curVersion, minVersion)