RFR: 8335912: Add an operation mode to the jar command when extracting to not overwriting existing files [v4]
Jaikiran Pai
jpai at openjdk.org
Sat Sep 28 14:11:34 UTC 2024
On Fri, 27 Sep 2024 01:41:33 GMT, Henry Jen <henryjen at openjdk.org> wrote:
>> This PR support a -k, --keep options like tar that allows jar to avoid override existing files.
>
> Henry Jen has updated the pull request incrementally with one additional commit since the last revision:
>
> Address review feedbacks
test/jdk/tools/jar/ExtractFilesTest.java line 168:
> 166:
> 167: private Stream<Path> mkpath(String... args) {
> 168: return Arrays.stream(args).map(d -> Paths.get(".", d.split("/")));
For newer code usages, like this one, it's recommended to use `Path.of(...)` instead of `Paths.get(...)`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21141#discussion_r1779494948
More information about the core-libs-dev
mailing list