RFR: 8317634: Introduce the ability to exclude modules from dedup-legal-notices plugin of jlink [v3]
Mandy Chung
mchung at openjdk.org
Thu Oct 19 10:15:41 UTC 2023
On Fri, 6 Oct 2023 02:22:52 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> Can I please get a review of this change which proposes to implement the enhancement request noted in https://bugs.openjdk.org/browse/JDK-8317634?
>>
>> The change in this commit introduces a new `exclude-modules` argument to the `dedup-legal-notices` jlink plugin. This optional argument takes a comma separated values of module names. These module names are then excluded from the de-duplication of license notice files during image generation.
>>
>> (Edited to add some context) The motivation for this change is discussed here https://github.com/openjdk/jdk/pull/13686#issuecomment-1747301865
>>
>> Two new test methods have been added to the existing `LegalFilePluginTest` jtreg test case to verify this implementation. Existing tests in `test/jdk/tools/jlink` continue to pass. tier testing is currently in progress.
>
> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
>
> minor changes to the text in plugin.properties for the new argument, to render better on command line
Unfortunately this does not fully solve JDK-8306980. These legal files are part of the javadoc output (via `javadoc --legal-notices` option). Same problem still exists if running on a custom image without a copy of these javadoc legal files.
I think the right solution should be for javadoc to keep these files from its resources directory like all other files such as `*.js` so that the proper version of these legal files are copied to the javadoc output directory. It should not depend on the jlink output as the content might be transformed by jlink plugins.
I also added a comment in #13686.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16066#issuecomment-1770501386
More information about the core-libs-dev
mailing list