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

<fileMode> inside a <file> tag is interpreted as decimal, not octal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2-beta-1
    • None
    • None
    • Mac OS X 10.4.8 (8L2127) Intel
      Maven version: 2.0.4

    Description

      If I want to use the <fileMode> tag inside a <file> tag I have to resort to decimal numbers. This doesn't happen inside the <fileSet> tags. As example some snipped from a Assembly Descriptor I currently use:

      <files>
      <file>
      <source>target/MDEditor-fat.jar</source>
      <fileMode>0493</fileMode><!-- for some silly reason fileMode inside a file tag is interpreted as decimal, not octal. decimal 493 is octal 755-->
      </file>
      </files>
      <fileSets>
      <fileSet><!-- shell scripts -->
      <directory>deploy/Euro1</directory>
      <lineEnding>keep</lineEnding>
      <outputDirectory>/</outputDirectory>
      <includes>
      <include> */.sh </include>
      </includes>
      <fileMode>0755</fileMode>
      </fileSet>
      <fileSet><!-- all the other stuff -->
      <directory>deploy/Euro1</directory>
      <lineEnding>keep</lineEnding>
      <outputDirectory>/</outputDirectory>
      <excludes>
      <exclude> */.sh </exclude>
      </excludes>
      <fileMode>0644</fileMode>
      </fileSet>
      </fileSets>

      Attachments

        Activity

          People

            Unassigned Unassigned
            iooi Lars Sonchocky-Helldorf
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: