[
http://jira.codehaus.org/browse/MASSEMBLY-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vincent Massol reopened MASSEMBLY-238:
--------------------------------------
Hi John,
Just upgraded to 2.2 beta 3 and the problem still exists. I have a zip
(generated iself by the assembly plugin). If I unzip it manually using unzip
command on mac I get the file permissions fine but if I create another zip
using the assembly plugin and I unpack it in there then the resulting zip
looses the permissions.
Anything you'd like me to try?
Thanks and sorry to reopen an issue...
> Assembly plugin removes file permissions
> ----------------------------------------
>
> Key: MASSEMBLY-238
> URL: http://jira.codehaus.org/browse/MASSEMBLY-238
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-1
> Reporter: Vincent Massol
> Assignee: John Casey
> Fix For: 2.2-beta-3
>
>
> I have some files with the execute permission set. When they are copied into
> a zip file by the assembly plugin their permissions are removed.
> This forces me to do something ugly (and not efficient) like this:
> {code}
> <!-- Copy sh files so that we can set their permissions. This is required
> since the
> Assembly plugin looses file permissions. -->
> <dependencySet>
> <!-- This shouldn't be required but there's a bug in version 2.2-beta-1
> of the Assembly
> plugin where the artifact name will be used instead of / if
> outputFileNameMapping is
> not specified -->
> <outputFileNameMapping></outputFileNameMapping>
> <includes>
> <include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
> </includes>
> <outputDirectory>/</outputDirectory>
> <unpack>true</unpack>
> <unpackOptions>
> <includes>
> <include>**/*.sh</include>
> </includes>
> </unpackOptions>
> <fileMode>755</fileMode>
> </dependencySet>
> <!-- Copy all other files (excluding sh files). See above for details. -->
> <dependencySet>
> <!-- This shouldn't be required but there's a bug in version 2.2-beta-1
> of the Assembly
> plugin where the artifact name will be used instead of / if
> outputFileNameMapping is
> not specified -->
> <outputFileNameMapping></outputFileNameMapping>
> <includes>
> <include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
> </includes>
> <outputDirectory>/</outputDirectory>
> <unpack>true</unpack>
> <unpackOptions>
> <excludes>
> <exclude>**/*.sh</exclude>
> </excludes>
> </unpackOptions>
> </dependencySet>
> {code}
--
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