-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
[jvm-run] use target specified jdk when invoking run #8492
[jvm-run] use target specified jdk when invoking run #8492
Conversation
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.
Thanks!
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.
Does this close #8419?
IIRC that was closed by another PR... will resolve. |
3bffc70
to
581eef7
Compare
There were some test flakes: rebased to rerun. |
@baroquebobcat : It looks like there are some actual test failures in here. |
I'll take a look. |
Sooo. Shoot. It occurred to me that we had discussed renaming Is that something you want to do here...? |
Hm. After doing some exploring, I think I want to try and hoist the JvmPlatform references here and other places into JvmTask and maybe drop this. Then I can do the |
One of the other issues here is that platform isn't a perfect fit for describing which java to run on, since source/target aren't a great abstraction for that. It feels like a stronger relationship between distribution and platform would make sense, or maybe adding more distributiony options to platform would help. eg allowing platforms to declare version ranges. I don't think this needs to be resolved to support multi-jdk builds, but it would be good to have the configuration here be clearer. |
Problem
jvm-run ignores the target specific platform when running a target.
Related #8419
Solution
Use the target platform for distribution lookup instead of using the default. Pass the platform specific args to jvm_options.
Result
The specified jdk is used for execution and the specified jdk's args are used.