Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
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.