ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Alberto Fernandez <j_a_fernan...@yahoo.com>
Subject Re: New copy like task
Date Fri, 14 Jun 2002 18:13:16 GMT
 --- Stefan Bodewig <bodewig@apache.org> wrote: > On
Thu, 13 Jun 2002, Jose Alberto Fernandez
> 
> It may be possible to write a custom selector and
> use plain copy for
> this.
> 

Humm, I looked a little on the documentation and it
seem I could use the <present> selector to do this,
something like:

<copy todir='dest'>
 <fileset dir='dir1'>
   <include name='**'/>
 </fileset>
 <fileset dir='dir2'>
   <include name='**'/>
   <none>
    <present targetdir='dir1'/>
   </none>
 </fileset>
 <fileset dir='dir3'>
   <include name='**'/>
   <none>
    <present targetdir='dir1'/>
    <present targetdir='dir2'/>
   </none>
 </fileset>
</copy>

I will try as soon as I upgrade, thanks for the
suggestion.

Jose Alberto


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message