ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: copying files without path information
Date Wed, 20 Sep 2000 17:34:35 GMT
--- Javier Keller <> wrote:
> Hi, 
> I wonder if it's somehow possible to write something like:
> copy all *.txt files from {$dir} and its subdirectories to {$destiny},
> but forget about the path information, i.e. put all files directly in
> {$destiny}. (Of course, this could be dangerous if there are two files
> with the same name...). You can't do this either with <copydir> nor with
> <file>. Any ideas?

    <copydir src="${dir}"
      <include name="*.txt"/>

Don't know for sure whether "flatten" was available in 1.1, or if it's
only in the latest from CVS.

P.S. I love the idea of a "destiny" directory... :)

Hope this helps,


Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.

View raw message