Skip to content

Commit

Permalink
Quick fix for getting the JVM version on 1.8 with OpenJDK
Browse files Browse the repository at this point in the history
  • Loading branch information
apavlo committed Jun 3, 2016
1 parent 0702dca commit e498852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/getjava.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e498852

Please sign in to comment.