[jdk21u-dev] RFR: 8335912: Add an operation mode to the jar command when extracting to not overwriting existing files
Goetz Lindenmaier
goetz at openjdk.org
Tue Dec 3 22:04:44 UTC 2024
On Fri, 22 Nov 2024 21:08:42 GMT, Alexey Bakhtin <abakhtin at openjdk.org> wrote:
> Clean backport of jar tool enhancement from JDK23
>
> JTREG tests passed
This is the same change as the pull request targeted to 23. (Not really a clean _backport_, as the PR for 23 was never pushed.)
Wrt. to the head version it adds the enum OptionType.EXTRACT, which is needed to implement flags applicable in addition to the parameter or mode "extract". JDK-8173970 adds a different flag, independent of this one. So it's a good idea to reuse this code snippet. Besides this the change is identical to head.
-------------
Marked as reviewed by goetz (Reviewer).
PR Review: https://git.openjdk.org/jdk21u-dev/pull/1177#pullrequestreview-2476844228
More information about the jdk-updates-dev
mailing list