maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Berger (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MASSEMBLY-173) <fileMode> inside a <file> tag is interpreted as decimal, not octal
Date Thu, 01 Mar 2007 09:29:44 GMT

    [ http://jira.codehaus.org/browse/MASSEMBLY-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88894
] 

Max Berger commented on MASSEMBLY-173:
--------------------------------------

When you do fix this issue, please ensure the following:

0644 should be interpreted as octal (leading 0)
420 should be interpreted as decimal (no leading 0)

this way those of use who applied the workaround will not run into problems later.

Thanks

> <fileMode> inside a <file> tag is interpreted as decimal, not octal
> -------------------------------------------------------------------
>
>                 Key: MASSEMBLY-173
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-173
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>         Environment: Mac OS X 10.4.8 (8L2127) Intel
> Maven version: 2.0.4
>            Reporter: Lars Sonchocky-Helldorf
>             Fix For: 2.2
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message