[ 
https://jira.codehaus.org/browse/MASSEMBLY-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291173#comment-291173
 ] 

Marco Brandizi commented on MASSEMBLY-422:
------------------------------------------

I have a similar situation and I found a trick to fix the problem, until this 
bug is resolved. If I have this in an assembly descriptor: 

<fileSet>
  <directory>target/site</directory>
  <fileMode>0644</fileMode>                     
  <directoryMode>0755</directoryMode>      
  <outputDirectory>doc/project-site</outputDirectory>
  <filtered>true</filtered>
</fileSet>

doc/ will have 0777, while project-site/ and all doc/ sub-folders will have 
0755. If I use doc as outputDirectory, all the folders get 0755. This prompted 
me to try to prefix this to the above block: 

<fileSet>
  <directory>target</directory>
  <excludes><exclude>**/*</exclude></excludes>
  <directoryMode>0755</directoryMode>      
  <outputDirectory>doc</outputDirectory>
  <filtered>true</filtered>
</fileSet>

which doesn't copy anything in practice, but with the two blocks one after 
another, doc/ receives the correct 0755 permissions.

                
> Generated directories have wrong file attributes
> ------------------------------------------------
>
>                 Key: MASSEMBLY-422
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-422
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-4
>            Reporter: Sergiu Dumitriu
>            Priority: Minor
>
> When the assembly creates directories not already found in the resources (for 
> example when using <includeBaseDirectory>true</includeBaseDirectory> or 
> <outputDirectory>some/new/folder</outputDirectory>), the directory has the 
> wrong file attributes (177777 octal, ?rwsrwsrwt). This causes the archive to 
> be somewhat broken, since the directory doesn't appear to be a directory 
> according to the file attributes.
> This causes problems with the Midnight Commander virtual file system, for 
> example.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to