maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Cohen <stevec...@comcast.net>
Subject assembly plugin does not create directory in archive if more than one fileset provides content to it.
Date Thu, 10 Oct 2013 00:53:58 GMT
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


Mime
View raw message