-
Notifications
You must be signed in to change notification settings - Fork 53
🐛 Fix JVM proxy args passing #978
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
Conversation
Proxy setting with `-Djava...Proxies=true` was placed in args after `jar` which was most likely ignored by JVM. Changing its order to ensure its understood correctly by JVM running jdtls. Replaces konveyor/java-analyzer-bundle#173 Fixes: konveyor#172 Signed-off-by: Marek Aufart <[email protected]>
WalkthroughThe Java launcher command in the external provider is modified to ensure JVM system properties are positioned before the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
shawn-hurley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is working in a test environment, then please ignore this.
But I wanted to know whether we also needed to explicitly add the environment to the command here: https://github.com/konveyor/analyzer-lsp/pull/978/files#diff-2430297ef0a9e63ec1a282c9ba2b450043754ad1efc7fe73cd9b54045e5fa724R409
If we don't have a test environment that can test proxied environments easily/automated, can we can add an issue tracking this in the CI repo?
|
@aufi go ahead and merge when you are ready! |
Proxy setting with `-Djava...Proxies=true` was placed in args after `jar` which was most likely ignored by JVM. Changing its order to ensure its understood correctly by JVM running jdtls. Replaces konveyor/java-analyzer-bundle#173 Fixes: konveyor/java-analyzer-bundle#172 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed Java application launcher argument ordering to ensure system proxy settings are correctly applied before the application runs. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Marek Aufart <[email protected]> Signed-off-by: Cherry Picker <[email protected]>
Proxy setting with
-Djava...Proxies=truewas placed in args afterjarwhich was most likely ignored by JVM.Changing its order to ensure its understood correctly by JVM running jdtls.
Replaces konveyor/java-analyzer-bundle#173
Fixes: konveyor/java-analyzer-bundle#172
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.