ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject <copy> of absolute paths/URLs
Date Mon, 06 Oct 2008 13:40:52 GMT
Hi all,

while looking into Bug 45944
<> I realized
that <copy>'s manual doesn't really talk about how the task deals with
resources that provide absolute path names.

Currently if you don't specify any mapper but a target directory,
nothing is going to happen (which the report claims is a bug, I
disagree).  This is because the target path and the source path are
the same and thus the target is uptodate.

We probably should stress the fact that you really really need to
specify a mapper (or use flatten) if you deal with absolute resources.

One thing I realized was that if your mapper returns an absolute file
name outside of todir, <copy> will happily copy files where your
mapper tells it to.  Should it?

I also realized that URLResources are always relative (getName will
only return the "file" part), which I probably knew but forgot.


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

View raw message