Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display if server is a native binary in init message #950

Merged
merged 1 commit into from
Jan 14, 2021

Conversation

datho7561
Copy link
Contributor

Adds a 'Native Image' entry to the initialization information.
If LemMinX is running as a native-image binary, it is set to true.

Closes #949

Signed-off-by: David Thompson [email protected]

Comment on lines 93 to 94
append(details, "Java", getJava());
append(details, "Native Image", Boolean.toString(IS_NATIVE_IMAGE));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (IS_NATIVE_IMAGE) {
  append(details, "Native Image", null);
} else {
  append(details, "Java", getJava());
}

We might also display graalvm/substratevm version instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a "VM Version" entry that will show the java.vm.version, which will show the GraalVM version when running as a native-image, or the Java version if using a JDK/JRE.

@datho7561 datho7561 force-pushed the message-when-binary branch 2 times, most recently from 7d80642 to d7c20a1 Compare December 22, 2020 14:31
Adds a 'Native Image' entry to the initialization information.
If LemMinX is running as a `native-image` binary, it is set to true.

Closes eclipse#949

Signed-off-by: David Thompson <[email protected]>
@fbricon
Copy link
Contributor

fbricon commented Jan 14, 2021

LGTM

Screenshot 2021-01-14 at 11 02 03

Screenshot 2021-01-14 at 11 05 27

@fbricon fbricon merged commit a2cb245 into eclipse:master Jan 14, 2021
@datho7561 datho7561 deleted the message-when-binary branch January 18, 2021 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include message of if the server is a binary in the startup message
3 participants