ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject RE: Bug in the "glob" file mapper?
Date Fri, 13 Aug 2004 21:40:54 GMT
> From: Phil Weighill-Smith []
> Thanks for the info. Note that the documentation for the file mappers
> states that "to" and "from" can "contain at most one '*'", which
> to me that they can legitimately have zero stars. In this particular
> the fileset defined selects just one file, ant.jar, which is what I
> to copy to a different directory. The problem is that I don't know (in
> Ant script) the exact path to the ant.jar so I'm using "**/ant.jar":
> <copy todir="${dest}">
>     <fileset dir="${source}" includes="**/ant.jar"/>
>     <mapper type="glob" from="*/ant.jar" to="internal/ant.jar"/>
> </copy>
> What I want to do is copy the one and only "${source}/.../ant.jar" to
> "${dest}/internal/ant.jar". Because the Ant script is itself generated
> (generically) such that the copy "todir" attribute is fixed as
"${dest}" I
> can't simply set that to "${dest}/internal" and use a flatten mapper
> is what I'd otherwise do.
> If you can think of a way of doing this processing with just changing
> body content of the copy element and not the copy element itself I'd
> to know the solution! Perhaps the regexp mapper would do this?

I think I misunderstood what you wanted to do. To copy a single file
from one place to another, just use <copy file="" tofile="" />. --DD

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

View raw message