buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Van Eeckhoudt (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (BUILDR-702) Merging zip files does not retain file permissions
Date Thu, 28 Aug 2014 15:16:08 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pepijn Van Eeckhoudt updated BUILDR-702:
----------------------------------------

    Comment: was deleted

(was: Patch available via https://github.com/apache/buildr/pull/15)

> Merging zip files does not retain file permissions
> --------------------------------------------------
>
>                 Key: BUILDR-702
>                 URL: https://issues.apache.org/jira/browse/BUILDR-702
>             Project: Buildr
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 1.4.19
>            Reporter: Pepijn Van Eeckhoudt
>
> Given a project containing a file `script.sh` with certain unix permissions set on it;
the following project will not retain those permissions in merged-0.1.zip
> {code}
> define 'foo', :version => 0.1 do
>   base = package(:zip, :id => 'base').tap do |pkg|
>     pkg.include _('script.sh')
>   end
>   package(:zip, :id => 'merged').tap do |pkg|
>     pkg.merge base
>   end
> end
> {code}
> This is caused by the way ZipExpander and ZipTask work together. Zip entries are passed
through as Procs and don't get the opportunity to set permissions.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message