Skip to content

[MRESOURCES-258] Only overwrite filtered resources when contents differ #284

@jira-importer

Description

@jira-importer

Robert James Oxspring opened MRESOURCES-258 and commented

When using mvn resources:copy-resources with filtering enabled, the destination file should only be overwritten if the contents have changed. 

Given a mvn resources:copy-resources call with filtering configured
When an identical mvn resources:copy-resources operation is performed
Then the destination file should remain unmodified

Given a mvn resources:copy-resources call with filtering configured and overwrite set true
When an identical mvn resources:copy-resources operation is performed
Then the destination file should be overwritten


Affects: 3.1.0

Issue Links:

  • MSHARED-884 Only overwrite filtered resources when contents differ
    ("Dependency")

  • MRESOURCES-265 Resource copying not using specified encoding

  • MSHARED-1107 FileUtils.copyFile() fails with source file having lastModified = 0

  • MRESOURCES-289 FileUtils.copyFile() fails with source file having lastModified = 0
    ("breaks")

Remote Links:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions