RFR: 8311302: Allow for jlinking a custom runtime without packaged modules being present [v23]

Alan Bateman alanb at openjdk.org
Tue Apr 16 13:57:51 UTC 2024


On Tue, 16 Apr 2024 11:59:12 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> If I understand you correctly, this would be no longer a build-time only approach to produce the "linkable runtime"? It would be some-kind of jlink-option driven approach (as it would run some code that should only run when producing a linkable runtime is requested)? Other than that, it should be fine as the previous iteration basically did that but at a different phase. Also note that the previous iteration used a build-only jlink plugin so as to satisfy the build-time only approach, yet it ran as part of the plugin-pipeline which wasn't desired either. But it was something similar to what you seem to be describing now. Did I get something wrong?

I think it continues to build time, it's just using some hidden jlink option. So yes, it similar to a previous iteration except that it doesn't run as a plugin the pipeline and the delta goes to the lib directory.

Let's see what @mlchung says. You've put a lot of work into this so let's see if we can converge to avoid too many more rounds.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14787#issuecomment-2059157584


More information about the core-libs-dev mailing list