Skip to content

Commit

Permalink
Make bash launcher --version print GraalVM version
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Apr 7, 2021
1 parent 7df6884 commit 98429a1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ public boolean consume(ArgumentQueue args) {
case "--version":
args.poll();
singleArgumentCheck(args, headArg);
String message = System.getProperty("java.vm.version");
String message;
if (NativeImage.IS_AOT) {
message = System.getProperty("java.vm.version");
} else {
message = NativeImage.graalvmVersion;
}
message += " (Java Version " + javaRuntimeVersion + ")";
nativeImage.showMessage(message);
System.exit(0);
Expand Down

0 comments on commit 98429a1

Please sign in to comment.