Skip to content

Comments

Introduce ChangeDetection#323

Open
cstamas wants to merge 12 commits intomaven-filtering-3.xfrom
maven-filtering-3.x-issue-453
Open

Introduce ChangeDetection#323
cstamas wants to merge 12 commits intomaven-filtering-3.xfrom
maven-filtering-3.x-issue-453

Conversation

@cstamas
Copy link
Member

@cstamas cstamas commented Feb 19, 2026

Instead to jump between ways how to perform "change detection" (decide should existing target file be overwritten), make it a configurable strategy.

Before 3.4.0 it was timestamp, post 3.4.0 it was content, but in any case users were left short.

Fixes
apache/maven-resources-plugin#453
#321
#271

Instead to jump between ways how to perform "change detection"
(decide should existing target file be overwritten), make it
a configurable strategy.

Before 3.4.0 it was timestamp, post 3.4.0 it was content, but
in any case users were left short.

Fixes
apache/maven-resources-plugin#453
@cstamas cstamas self-assigned this Feb 19, 2026
@cstamas cstamas marked this pull request as ready for review February 19, 2026 20:42
@cstamas cstamas added the enhancement New feature or request label Feb 19, 2026
@cstamas cstamas linked an issue Feb 19, 2026 that may be closed by this pull request
@cstamas cstamas linked an issue Feb 19, 2026 that may be closed by this pull request
}
}
}
copyFilePermissions(from, to);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bit is confusing me: to me it sounds like if copied then apply perms, but we have UT that ensures perms are always copied...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, i missed at method beginning: we modify perms

It simply copied if target does not exists, and stands off
if target exists.
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.

FilteringUtils always copies file while comment says otherwise [MSHARED-1360] Remove apache commons dependencies

1 participant