ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <>
Subject Re: copying files
Date Fri, 14 Apr 2006 14:30:08 GMT
Stan Ou wrote:

Hello Stan,

this is a use of the copy task using a nested regexp mapper.

Please refer to the documentation.

You would roughy do :

<copy todir="c:\to">
     <fileset dir="c:\from">

   <regexpmapper from="^([^/]+)/([^/]+)/(.*)$$" to="\2/\3"/>


Please test this suggestion, the regexp might need tweaking.


>Hi all,
>I've a situation here hope someone could give me some
>In my build script, I need to copy some files like
>now that problem is the list is about 80 files long
>and could grow even more.  I know I could do this:
><copy todir="${to.home}" overwrite="true">
>      <fileset dir="${from.home}/qaz/123"
><copy todir="${to.home}" overwrite="true">
>      <fileset dir="${from.home}/wsx/345"
>But I was wondering if there's a smarter way to do it.
> Am I stuck with writing my task? thanks.
>stan ou
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message