You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert James Oxspring (Jira)" <ji...@apache.org> on 2020/07/15 15:35:00 UTC

[jira] [Commented] (MRESOURCES-258) Only overwrite filtered resources when contents differ

    [ https://issues.apache.org/jira/browse/MRESOURCES-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17158482#comment-17158482 ] 

Robert James Oxspring commented on MRESOURCES-258:
--------------------------------------------------

Note that this is effectively fixed by the commit below, but we need to release maven-shared-utils, bump maven-filtering to use that and release, bump maven-resources-plugin to use that.

 

https://github.com/apache/maven-shared-utils/commit/e57180309a64758e161513d80f1185e13dc84826

> Only overwrite filtered resources when contents differ
> ------------------------------------------------------
>
>                 Key: MRESOURCES-258
>                 URL: https://issues.apache.org/jira/browse/MRESOURCES-258
>             Project: Maven Resources Plugin
>          Issue Type: Improvement
>          Components: filtering
>    Affects Versions: 3.1.0
>            Reporter: Robert James Oxspring
>            Priority: Major
>
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)