Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2-beta-4
-
None
-
None
Description
When a file set specifies a file mode to use, all the following file sets also use that file mode. For example:
<fileSets> <!-- Copy shell scripts and set execute permissions --> <fileSet> <directory>${basedir}/src/main/resources</directory> <outputDirectory>/</outputDirectory> <includes> <include>**/*.sh</include> </includes> <fileMode>755</fileMode> </fileSet> <!-- Copy non shell scripts --> <fileSet> <directory>${basedir}/src/main/resources</directory> <outputDirectory>/</outputDirectory> <excludes> <exclude>**/*.sh</exclude> </excludes> </fileSet> </fileSets>
Even non-sh files will be executable. If the order of the sets is reversed, only .sh files are executable.