picking up the pieces Peter hasn't already answered.

On Tue, 5 Aug 2003, Adam Jack <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to