ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [PATCH] Lazy task class loading
Date Tue, 07 Aug 2001 16:07:34 GMT
OK, I'll admit that your reminder triggers this response (I shouldn't
be sitting here on front of the screen anyway, but that's a different
story).

I like the changes to Project, but the way you've implemented the Ant
task, it will only pass on the class names of already loaded tasks,
not the actual classes - this not only means you'll have to load them
once again in the subbuild if you need the same task, but also that
any custom classloader a user may have specified in <taskdef> will be
lost.

As a result, tasks that used to work in the main build may throw a
ClassNotFoundException in the subbuild - or even worse be a different
implementation of the same class.

And then you want to apply the same logic to data types as well 8-)

Stefan

Mime
View raw message