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]

Reply via email to