[jdk23u] RFR: 8335912: Add an operation mode to the jar command when extracting to not overwriting existing files

Martin Balao mbalao at openjdk.org
Wed Dec 18 05:54:45 UTC 2024


On Tue, 19 Nov 2024 02:19:31 GMT, Alexey Bakhtin <abakhtin at openjdk.org> wrote:

> Please review the JAR tool enhancement.
> It allows suppressing the overwriting of existing files with a new cmd line option.
> The backport is almost clean except of src/jdk.jartool/share/classes/sun/tools/jar/GNUStyleOptions.java line 264
> OptionType.EXTRACT was defined by JDK-8173970 but not backported to JDK23 yet.
> 
> All related JTREG tests passed

Thanks @alexeybakhtin for contributing this backport. Looks good to me.

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

Marked as reviewed by mbalao (Reviewer).

PR Review: https://git.openjdk.org/jdk23u/pull/227#pullrequestreview-2510865591


More information about the jdk-updates-dev mailing list