ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Weighill-Smith <phil.weighill-sm...@volantis.com>
Subject Bug in the "glob" file mapper?
Date Fri, 13 Aug 2004 16:57:36 GMT
The "glob" file mapper is exhibiting a behaviour I didn't expect:

<copy ...
    <fileset ...
    <mapper type="glob" from="*/ant.jar" to="internal/ant.jar"/>
</copy>

Assuming that "*" matches "env/apache-ant-1.6.2/lib" I expected this to
copy the ant.jar to a destination of copy's todir + /internal/ant.jar.
What it actually does is copy it to copy's todir +
/internal/ant.jarenv/apache-ant-1.6.2/lib.

I.e. if you don't use a "*" in the to attribute of the mapper, the "*"
match is suffixed onto the "to". This seems wrong to me. Is this a bug?

Phil :n.
-- 
Phil Weighill-Smith <phil.weighill-smith@volantis.com>
Volantis Systems

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message