Marco Brandizi created MASSEMBLY-880:
----------------------------------------

             Summary: Maven assembly per-extension file permissions
                 Key: MASSEMBLY-880
                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-880
             Project: Maven Assembly Plugin
          Issue Type: New Feature
            Reporter: Marco Brandizi


I often have to write the following when using the Maven Assembly plug-in, in 
order to have file permissions correctly set for executable and non-executable 
files:

<fileSet>
  <directory>src/main/assembly/resources</directory>
  <outputDirectory></outputDirectory>
  <excludes>
    <!-- Defined below, with x permissions, non-executables only here -->
    <exclude>**/*.sh</exclude>
  </excludes>  
  <fileMode>0644</fileMode>
  <directoryMode>0755</directoryMode>                           
</fileSet>
<fileSet>
  <directory>src/main/assembly/resources</directory>
  <outputDirectory></outputDirectory>
  <includes>
    <include>**/*.sh</include>
  </includes>  
  <fileMode>0755</fileMode>
  <directoryMode>0755</directoryMode>      
</fileSet>

This is redundant and cumbersome, I wonder if there is a simpler way to do the 
same, e.g., by specifying maps of file pattern => fileMode. It doesn't seem 
that anything like that is available, so I'm filing this as a new feature 
proposal.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to