Skip to content

[MDEP-480] Add overWriteFiles to keep existing files when unpacking - #1794

Merged
slachiewicz merged 2 commits into
apache:masterfrom
slachiewicz:agent/mdep-480-unpack-overwrite
Nov 14, 2026
Merged

slachiewicz merged 2 commits into
apache:masterfrom
slachiewicz:agent/mdep-480-unpack-overwrite

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Adds overWriteFiles (user property mdep.unpack.overWriteFiles, default true) to unpack, unpack-dependencies and each artifactItem. With false, an entry whose target file already exists, after the fileMappers are applied, is skipped whatever the timestamps, so an unpack after process-resources keeps the filtered resources and only adds missing files. The existing overWrite* options still decide per artifact whether to unpack at all. Single-file archives (gzip, xz, snappy, zstd) are not affected.

Fixes #917


To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
check one of the following:

@slachiewicz slachiewicz added the enhancement New feature or request label Nov 14, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 14, 2026 07:45
@slachiewicz
slachiewicz merged commit e47b272 into apache:master Nov 14, 2026
14 checks passed
@github-actions github-actions Bot added this to the 3.12.0 milestone Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MDEP-480] There should be an option to prevent files overwrite for unpack-dependencies and unpack

1 participant