ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: FileSet with copy fails with NPE..
Date Mon, 15 Dec 2008 05:31:35 GMT
On 2008-12-12, Raja Nagendra Kumar <> wrote:

> However Stefan, not able to convince on why this can't be done
> automatically, as it is so obvious that  new Copy Object is created while
> wring the cutom tag extentions to ant.

How is this obvious?  Your code is creating the instance of the Copy
class, Ant is not involved at all.  I don't really see how Ant could
or should interfere with that.  If you used
getProject().createTask("copy") then Ant could know it (and actually
will set the project instance) but it has other problems.

> This code are used with in project context and it gets invoked
> though custom xml tags only in build file only.

Again, I don't see who should recognize this build file context if not
your very own code.


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

View raw message