ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject RE: cp or <copy> in windows?
Date Tue, 16 Mar 2004 15:23:31 GMT
--- wrote:
> If "cp" does the job you can use dependend targets
> for copying:
>   <target name="copy"

Also, you could use the concepts at
, the part that begins "It is interesting to note..."
to set up a platform-dependent preset to do the right
thing; i.e. use a <presetdef><copy> on windows, and a
<macrodef><apply exec="cp"> on unix... probably have
to do some more magic for directory structures in the
case of <apply>... or, for that matter, you could use
a <macrodef> to sequence <copy> and <chmod>, but if
I'm not mistaken you would have to know what
permissions you wanted to set in this case.

Isn't this fun?


Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

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

View raw message