ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Possible Bug?
Date Thu, 07 Jun 2001 02:02:33 GMT
--- Bhavin Patel <bpatel@go2.com> wrote:
> Anyone ever try to copy a directory and flatten it, while having a
> mapper rename the files?
> 
> I think if you have the mapper rename the files the flatten="yes" is
> ignored.

I may be misreading the code, but looking at scan() in Copy.java, they
look to be exclusive.
 
> For example:
> 
>         <copy todir="${ship.dir}" flatten="yes">
>            <fileset dir="${src.dir}" includes="**/*.src" />
>            <mapper type="glob" from="*.src" to="*.html" />
>         </copy>
> 
> This doesn't flatten the directory
> 
> but if i take the reference out to the mapper it does....

I think for now, you'd need to do just the flatten'd <copy>, followed by a
mapper'd <move>.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message