File openjfx-javaversion.patch of Package java-1_8_0-openjdk-openjfx

--- rt-8u141-b14/build.gradle	2017-06-13 18:28:39.000000000 +0200
+++ rt-8u141-b14/build.gradle	2017-09-22 08:00:24.077076083 +0200
@@ -730,19 +730,17 @@
 // We need to parse the second line
 def inStream = new java.io.BufferedReader(new java.io.InputStreamReader(new java.lang.ProcessBuilder(JAVA, "-version").start().getErrorStream()));
 try {
-    if (inStream.readLine() != null) {
         String v = inStream.readLine();
         if (v != null) {
-            int ib = v.indexOf(" (build ");
+            int ib = v.indexOf("\"");
             if (ib != -1) {
-                String ver = v.substring(ib + 8, v.size() - 1);
+                String ver = v.substring(ib + 1, v.size() - 1);
 
                 defineProperty("jdkRuntimeVersion", ver)
                 defineProperty("jdkVersion", jdkRuntimeVersion.split("-")[0])
                 defineProperty("jdkBuildNumber", jdkRuntimeVersion.substring(jdkRuntimeVersion.lastIndexOf("-b") + 2))
             }
         }
-    }
 } finally {
     inStream.close();
 }