You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steve Cohen <st...@comcast.net> on 2013/10/10 02:53:58 UTC

assembly plugin does not create directory in archive if more than one fileset provides content to it.

I have found the following.

Given an assembly descriptor that produces an .tar.gz archive,
if more than one fileset provides content feeding into the same output 
directory, the archiver does not create a folder entry in the archive.
This means that there is nothing to apply a <directoryMode> to, and when 
the archive is expanded, the default instead of the desired permissions 
are used in that output directory.

In other words, given the following:

   <fileSet>
     <directory>src/A</directory>
     <outputDirectory>dest</outputDirectory>
     <includes>
       <include>**</include>
     </includes>
     <fileMode>664</fileMode>
     <directoryMode>775</fileMode>
   </fileSet>
   <fileSet>
     <directory>src/B</directory>
     <outputDirectory>dest</outputDirectory>
     <includes>
       <include>**</include>
     </includes>
     <fileMode>664</fileMode>
     <directoryMode>775</fileMode>
   </fileSet>

an archive will be produced without a directory entry for dest.  When 
the archive is expanded the permissions of the dest directory will be 
the default, not 775.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: assembly plugin does not create directory in archive if more than one fileset provides content to it.

Posted by Steve Cohen <sc...@javactivity.org>.
On 10/10/2013 05:35 AM, Martin Gainty wrote:
> MG>Please file a bug in JIRA
> MG>http://jira.codehaus.org/browse/MASSEMBLY

done.
http://jira.codehaus.org/browse/MASSEMBLY-666

also enhancement requests:
http://jira.codehaus.org/browse/MASSEMBLY-667
http://jira.codehaus.org/browse/MASSEMBLY-668

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: assembly plugin does not create directory in archive if more than one fileset provides content to it.

Posted by Martin Gainty <mg...@hotmail.com>.
  


> Date: Wed, 9 Oct 2013 19:53:58 -0500
> From: stevecoh1@comcast.net
> To: users@maven.apache.org
> Subject: assembly plugin does not create directory in archive if more than one fileset provides content to it.
> 
> I have found the following.
> 
> Given an assembly descriptor that produces an .tar.gz archive,
> if more than one fileset provides content feeding into the same output 
> directory, the archiver does not create a folder entry in the archive.
> This means that there is nothing to apply a <directoryMode> to, and when 
> the archive is expanded, the default instead of the desired permissions 
> are used in that output directory.
MG>Please file a bug in JIRA
MG>http://jira.codehaus.org/browse/MASSEMBLY
> 
> In other words, given the following:
> 
> <fileSet>
> <directory>src/A</directory>
> <outputDirectory>dest</outputDirectory>
> <includes>
> <include>**</include>
> </includes>
> <fileMode>664</fileMode>
> <directoryMode>775</fileMode>
> </fileSet>
> <fileSet>
> <directory>src/B</directory>
> <outputDirectory>dest</outputDirectory>
> <includes>
> <include>**</include>
> </includes>
> <fileMode>664</fileMode>
> <directoryMode>775</fileMode>
> </fileSet>
> 
> an archive will be produced without a directory entry for dest. When 
> the archive is expanded the permissions of the dest directory will be 
> the default, not 775.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>