Permalink
Browse files

Quick fix for getting the JVM version on 1.8 with OpenJDK

  • Loading branch information...
1 parent 0702dca commit e49885293bf32dad701cb08a3394719d4f844a64 @apavlo committed Jun 3, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/getjava.py
View
@@ -6,7 +6,7 @@
jvmVersion = None
output = commands.getoutput("java -version")
-regex = re.compile("java version \"(1\.\d)\..*?\"", re.IGNORECASE)
+regex = re.compile("(?:java|openjdk) version \"(1\.\d)\..*?\"", re.IGNORECASE)
m = regex.search(output)
if m: jvmVersion = m.group(1)

0 comments on commit e498852

Please sign in to comment.