Yes, I opted for the regexmapper.

Thanks for the response!

-----Original Message-----
From: Stefan Bodewig [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 14, 2005 12:22 AM
To: user@ant.apache.org
Subject: Re: help with copy and glob mapper


On Tue, 13 Dec 2005, EJ Ciramella <[EMAIL PROTECTED]> wrote:

>    <copy todir="target" verbose="true">
>     <fileset dir="source" includes="**/*"/>
>     <globmapper from="template-*" to="*"/>
>     <filterchain>
>       <expandproperties/>
>     </filterchain>
>   </copy>
>  
> But for whatever reason, this only picks up files at the top level
> (things in source, but not source/somesubdir/someotherdir).

This is because your other files are not matched by the glob pattern
(they don't start with "template" but the directory path leading up to
it.

You need to preserve the directory structure, right?  Otherwise you
could use chained mappers and flatten the file names first.

I currently don't see anything but

<regexpmapper from="^(.*)template-(.*)$$" to="\1\2"/>

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to