ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Is the flatten attribute of "move" a mapper?
Date Mon, 02 Jul 2001 15:50:18 GMT
See:
  http://marc.theaimsgroup.com/?l=ant-user&m=99189255112149&w=2

Diane

--- Daniel Becker <daniel.becker@datalex.ie> wrote:
> Hi
> Consider this sample:
>        <move todir="requests" flatten="true" >
>             <fileset dir="temp" >
>                     <include name="**/*.java"/>
>               </fileset>
>             <mapper from="([^\.]+).java" to="\1_request.java"
> type="regexp"/>        
>        </move>
> 
> If I have a Source tree of java classes in temp and then execute the
> above,
> I would expect all my java files to be moved into  requests and renamed
> to
> *_request.java. This doesn't happen, the flatten bit doesn't work. It
> works
> when I spilt it into two moves.
> 
> Using a flatten mapper (instead of the attribute) I got a message that
> said
> I'm only allowed one mapper per move. 
> So I'm concluding flatten is somehow considered a mapper.
> 
> Any thoughts?
> 
> 
> Daniel


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



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Mime
View raw message