Uploaded image for project: 'Maven Assembly Plugin'
  1. Maven Assembly Plugin
  2. MASSEMBLY-423

Specified file modes are used for all the following fileSets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2-beta-4
    • 2.2
    • 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.

      Attachments

        Activity

          People

            jdcasey John Dennis Casey
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: