Hi all, while looking into Bug 45944 <https://issues.apache.org/bugzilla/show_bug.cgi?id=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. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]