ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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 <A.Solofnenko@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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message