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 Scholte (JIRA)" <ji...@codehaus.org> on 2014/02/15 00:43:57 UTC

[jira] (MSHARED-194) Inform user when a file will not be overwritten due to age

     [ https://jira.codehaus.org/browse/MSHARED-194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MSHARED-194.
----------------------------------

    Resolution: Won't Fix
      Assignee: Robert Scholte

The logic to overwrite or not is inside {{FileUtils}} and not in maven-filtering. It's not correct to copy these conditions and add logging (in fact, it seems like the patch already has a mismatch with the conditions: overwrite has no effect if there are wrappers).
In the end the logging of the maven-resource-plugin is (was?) incomplete, so that should be fixed instead.

> Inform user when a file will not be overwritten due to age
> ----------------------------------------------------------
>
>                 Key: MSHARED-194
>                 URL: https://jira.codehaus.org/browse/MSHARED-194
>             Project: Maven Shared Components
>          Issue Type: Improvement
>          Components: maven-filtering
>    Affects Versions: maven-filtering-1.0
>            Reporter: Joshua Hyde
>            Assignee: Robert Scholte
>         Attachments: patch.patch
>
>
> We had a build failing due to the <overwrite /> tag not being set in the maven-resources-plugin. It took me a bit to figure out the issue because the debug output kept reporting that it was copying over the file when in fact it wasn't. It would have helped out a bit if the plugin (via this dependency) had reported that it was, in fact, *not* copying over the file.
> See attached patch for suggested change (and accompany JUnit test). Some caveats:
> * I'm afraid I don't know where to get the Eclipse code style used for these projects, so, if the format of the code is objectionable, let me know where to get the Eclipse code style and I'll re-submit the patch with the applied stylings.
> * The code *should* be compatible with Java 1.4, but I wasn't able to fully verify because part of the build brought in a Java 5 dependency and the build wouldn't pass without that. I don't imagine its non-compliance with Java 1.4 is too terrible, given that nothing after Maven 2.0.11 supports it, but it seemed worth noting just in case I'm wrong.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)