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

Alexey Bakhtin abakhtin at openjdk.org
Tue Nov 19 02:24:24 UTC 2024


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

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

Commit messages:
 - Backport 158b93d19a518d2b9d3d185e2d4c4dbff9c82aab

Changes: https://git.openjdk.org/jdk23u/pull/227/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk23u&pr=227&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8335912
  Stats: 528 lines in 5 files changed: 526 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk23u/pull/227.diff
  Fetch: git fetch https://git.openjdk.org/jdk23u.git pull/227/head:pull/227

PR: https://git.openjdk.org/jdk23u/pull/227


More information about the jdk-updates-dev mailing list