You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Alexey Solofnenko <A....@mdl.com> on 2002/12/04 02:06:19 UTC
How do deal with and unix permissions on Unix?
Without keeping executable bit ANT becomes not very useful on Unix. How do
you replace <copy> to work correctly on Unix?
- Alexey.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How do deal with and unix permissions on Unix?
Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 3 Dec 2002, Alexey Solofnenko <A....@mdl.com> wrote:
> Without keeping executable bit ANT becomes not very useful on
> Unix.
Maybe. Java doesn't provide access to permissions so there is nothing
much Ant can do.
> How do you replace <copy> to work correctly on Unix?
<apply executable="cp" destdir="...">
<arg value="-p"/>
<srcfile/>
<mapper type="identity"/>
<fileset />
</apply>
would work. Alternatively you can <chmod> the files after <copy>ing
them - if you know the files and permissions, that is.
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>