ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: DataTypes
Date Wed, 06 Aug 2003 10:31:56 GMT
picking up the pieces Peter hasn't already answered.

On Tue, 5 Aug 2003, Adam Jack <ajack@trysybase.com> wrote:
> Thanks Stefan, good information, I appreciate it.
> 
>>	In principle with Ant 1.2, but <typedef> didn't exist before
>>	Ant 1.4 (and didn't work properly before 1.5).
> 
> So, let's see. If I make my classes sub-class from DataType, but
> don't rely upon folks having to typedef them, then I ought be in
> good shape for 1.2 onwards, and users can leverage <typedef> (and
> perhaps references).

Note that data-types don't have to extend DataType at all.

> Again, and sorry if it is an FAQ -- but what is the "correct" ant to
> be backwards compatible with these days?  1.5? Older?

Ask your (potential) users 8-)

Ant itself tries hard to be compatible with Ant 1.2 (and in larger
parts to pre-Ant 1.1).

> I will have to investigate is there is an easy way/pattern to allow
> something to be a nested sub-element or have reference id, on the
> parent element.

The "parent" decides which nested elements it will accept.  The
patterns for that are listed in the "Writing your own task" section
(at least for 1.5).  The same rules that apply to tasks apply to
nested elements of nested elements as well - i.e. the "parent element"
defines create/add methods.

Stefan

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


Mime
View raw message