You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Napoleon Esmundo C. Ramirez (JIRA)" <ji...@codehaus.org> on 2008/03/03 07:10:28 UTC

[jira] Updated: (MPATCH-1) Support deletion of empty files after the patches have been applied

     [ http://jira.codehaus.org/browse/MPATCH-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Napoleon Esmundo C. Ramirez updated MPATCH-1:
---------------------------------------------

    Attachment: MPATCH-1.patch

Attached MPATCH-1.patch.  It adds support to the -E option and can be used as:
{code}
<plugin>
  <artifactId>maven-patch-plugin</artifactId>
  <configuration>
    ...
    <removeEmptyFiles>true</removeEmptyFiles>
    ...
  </configuration>
</plugin>
{code}

> Support deletion of empty files after the patches have been applied
> -------------------------------------------------------------------
>
>                 Key: MPATCH-1
>                 URL: http://jira.codehaus.org/browse/MPATCH-1
>             Project: Maven 2.x Patch Plugin
>          Issue Type: New Feature
>            Reporter: Napoleon Esmundo C. Ramirez
>            Priority: Minor
>         Attachments: MPATCH-1.patch
>
>
> By default, the patch command does not delete empty files after the patches have been applied. Compilation breaks on empty java sources.  According to the man pages, as a workaround, the to be deleted could be compared to an empty file dated the Epoch (1970-01-01 00:00:00 UTC) if it conforms to POSIX.  Or better yet, use the -E or --remove-empty-files option to be sure.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira