Hello,

Since it seems you only need to determine if the executable bit needs to be preserved, maybe you could write a Perl script that given a source directory, a list of files in that directory and a target directory will find all the executable files and chmod the corresponding target file. You could then call that script from <apply> after your <copy> where preserving execute permissions is required.

Another option is to write a <cp> task that supports some subset of the <copy> task but runs the cp command to perform the copies.

-Bill

Alexey Solofnenko wrote:
I do not know about you, but I need to be able to copy executable files
regardless how difficult it can be to implement. It is a basic
functionality. Sometimes I wonder if people really use some products.

- Alexey.

--
{ http://trelony.cjb.net/   } Alexey N. Solofnenko
Pleasant Hill, CA (GMT-8 usually)

-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 04, 2002 9:31 AM
To: Ant Developers List
Subject: Re: Any chance to have <copy> to preserve file permissions?





----- Original Message ----- From: "Ken Wood" <[EMAIL PROTECTED]> To: "Ant Developers List" <[EMAIL PROTECTED]> Sent: Tuesday, December 03, 2002 7:44 PM Subject: Re: Any chance to have <copy> to preserve file permissions?



Yes, everyone wishes ant could copy files on unix and
preserve permissions. But, java doesn't recognize those
permissions, so the copy cannot preserve them - it can't
preserve something it does not see.

You can use 'exec' to run 'cp' and preserve permissions...

Alexey Solofnenko wrote:

Fair enough. But don't you think it might be really important to be able

to

copy executable files on Unix?

- Alexey.


At some point in the future, ant is bound add ant-native tasks where we do our own JNI wrappers to do things not possible before: symlink work, getting at permissions, maybe some more. But it would a dog to try and port, build, test all that stuff for all the platforms ant supports, which is why I am not in a rush to do it.

-steve



-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to