Minor: Misleading comment (and typo) in build.gradle

Scott Palmer swpalmer at gmail.com
Thu Jan 19 18:30:03 UTC 2023


This isn't affecting anything, but while trying to figure out my build
issues I noticed this typo and mismatch between the comment and the code..
 "verion" at https://github.com/openjdk/jfx/blob/master/build.gradle#L617
But more significant, the actual command issued is "java -fullversion"
which outputs something substantially different.

// Determine the verion of Java in JDK_HOME. It looks like this:
//
// $ java -version
// java version "1.7.0_45"
// Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
// Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
//
// We need to parse the second line
def inStream = new java.io.BufferedReader(new java.io.InputStreamReader(new
java.lang.ProcessBuilder(JAVA, "-fullversion").start().getErrorStream()));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230119/d11269b7/attachment.htm>


More information about the openjfx-dev mailing list