ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Martin <>
Subject RE: copying files without path information
Date Thu, 21 Sep 2000 08:48:27 GMT
The flatten attribute is definitely new to 1.2

-----Original Message-----
From: Diane Holt []
Sent: 20 September 2000 18:35
Subject: Re: copying files without path information

--- 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