-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Refactor jmxserver detection in native executable build #46699
base: main
Are you sure you want to change the base?
Conversation
… is not built into the image." This reverts commit 11b06d9.
@roberttoyonaga can you please review this? |
Note that there is an ongoing discussion in zulip to see if we can avoid setting the monitoring property as well https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/System.20property.20set.20at.20build.20time.20not.20visible.20at.20runtime |
@zakkak This looks good to me and works on my machine. |
@zakkak I tried what you mentioned on Zulip and was able to successfully obtain the value with:
|
It seems to work with
|
@roberttoyonaga did you place the code snippet in |
@zakkak I modified this PR branch with this code:
inside |
I see, I guess that works because of https://github.com/quarkusio/quarkus/pull/46699/files#diff-65211cbc596a40d560ae4669e85aefdf2fec85c0a9fc11d6c92532d7492e4303R87-R92 , but my goal is to avoid it. |
Status for workflow
|
@zakkak what's the status of this one? |
@gsmet I am still waiting for @radcortez's input in https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/System.20property.20set.20at.20build.20time.20not.20visible.20at.20runtime to see if we can avoid explicitly passing the property down to the native-image invocation If there is time pressure to get this backported to 3.20 in time feel free to merge (as the PR IMO is fine as is, I was just hoping to be able to take it a step further). I have included the revert and the new patch so that you can just backport the later. |
Avoids warnings without introducing a new configuration option
Closes #46692
Reverts/Supersedes #46592
Fixes #46506