ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: How do deal with <copy> and unix permissions on Unix?
Date Wed, 04 Dec 2002 08:05:31 GMT
On Tue, 3 Dec 2002, Alexey Solofnenko <> 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"/>
  <mapper type="identity"/>
  <fileset />

would work.  Alternatively you can <chmod> the files after <copy>ing
them - if you know the files and permissions, that is.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message