ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Creating custom data container rather than task for use as nested element in a custom task
Date Thu, 08 Aug 2002 06:42:06 GMT
On Wed, 7 Aug 2002, <jlcarpenter@household.com> wrote:

> I am still a bit confused as to when a class corresponding to a
> nested element should inherit from the
> org.apache.tools.ant.types.DataType class

There is no real reason to do so apart from

(1) getting support for detection of circular references (you may very
well not need that at all).

(2) implicitly inheriting from ProjectComponent which means your class
has access to the Project instance as well as to Ant's BuildEvents
(via log()).

I may be missing something, though.

Stefan

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


Mime
View raw message