I'm still stuck on this problem, I have the following in my assembly.xml file
and am using maven-assembly-plugin 2.1. Tried it with 2.2 and still see the
same problem.
<files>
<file>
<source>src/main/scripts/searchTestCaseEvaluator.bat</source>
<fileMode>0755</fileMode>
<outputDirectory>/scripts</outputDirectory>
</file>
<file>
<source>src/main/scripts/searchTestCaseGenerator.bat</source>
<fileMode>0755</fileMode>
<outputDirectory>/scripts</outputDirectory>
</file>
</files>
But I get the following when I unzip the file:
$ ls -al test/scripts/*
--wxrw--wt 1 operations users 602 Mar 1 17:42 test/scripts/search
TestCaseEvaluator.bat
--wxrw--wt 1 operations users 240 Mar 1 17:42 test/scripts/search
TestCaseGenerator.bat
Thanks
Marnie McCormack wrote:
>
> All,
>
> Please ignore - apologies.
>
> It transpires that we have reverted to 2.1, so thus need octal file modes
> again I guess :-(
>
> Thanks,
> Marnie
>
>
> On 2/9/07, Marnie McCormack <[EMAIL PROTECTED]> wrote:
>>
>> All,
>>
>> Our project (Qpid) is currently using the Maven assembly plugin snapshot
>> 2.2.
>>
>> I'm seeing some odd behaviour around fileMode. We had previously been
>> using octal values with assembly plugin 2.1, and when we moved to
>> 2.2those failed validation. So, I amended them back to decimal values and
>> removed the fileMode tag for files which we want to use the default of
>> '0644' (taken from here:
>> http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html)
>>
>> However, the setting of fileModes does not seem to be working as I'd
>> expect it to i.e. they were incorrect. So, I reintroduced the fileMode
>> tag
>> for these elements and set it to '0644' and built a distribution on
>> windows.
>> When I build a tar.gz file and unpack it on Solaris the permissions look
>> like this:
>>
>> --w----r-- 1 mm py 4293 Feb 6 09:56 virtualhosts.xml
>> --w----r-- 1 mm py 4284 Jan 24 18:31 config.xml
>> --w----r-- 1 mm py 2105 Jan 18 09:46 log4j.xml
>> --w----r-- 1 mm py 973 Nov 28 09:26 qpid-server.conf
>> --w----r-- 1 mm py 990 Nov 21 16:01 qpid-run.conf
>> --w----r-- 1 mm py 12 Nov 21 16:00 passwd
>>
>> I've looked in the JIRA (http://jira.codehaus.org/browse/MPA) codehaus
>> but think this might be the wrong place to look for bugs ? At any rate, I
>> couldn't spot anything relating to fileMode.
>>
>> Are there any known issues or can anyone suggest the root cause ? Looking
>> a little more, it looks like only the '7' value works correctly.
>>
>> Thanks & Regards,
>> Marnie
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Assembly-Plugin-2.2---fileMode-behaviour-tf3199662s177.html#a9448363
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]