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

Mandy Chung mchung at openjdk.org
Thu Nov 30 17:25:13 UTC 2023


On Thu, 30 Nov 2023 10:00:48 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

>> src/jdk.jlink/share/classes/jdk/tools/jlink/internal/JlinkTask.java line 88:
>> 
>>> 86: 
>>> 87:     // Run time based link internal resources files
>>> 88:     private static final String OTHER_RESOURCES_FILE = "jdk/tools/jlink/internal/runlink_%s_resources";
>> 
>> This can be shared with the plugin writing this file.   This file collects the hash of the non-class resource files in the image.   "runlink" is a confusing prefix.   What about:
>> Suggestion:
>> 
>>     // jlink's internal resource file keeps track of the hash of per-module non-class resources in the run-time image
>>     public static final String MODULE_RESOURCES_LIST = "jdk/tools/jlink/internal/%s_resources";
>
> Happy to change the prefix. Having a (unique) prefix seems useful, though, since it eases filtering. Note: that file is not only there for the hash sums, but also to keep track of the path to the files in the filesystem, which we'd otherwise not know.

Will see how a few suggested renames looks like and a better term to describe this may come out 😄 `runlink` is a bit confusing.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14787#discussion_r1411004395


More information about the core-libs-dev mailing list