ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: General Question on nested element of tasks
Date Sun, 28 Jan 2007 23:53:55 GMT
On 1/28/07, Mikael Sitruk <> wrote:
> Is it possible to have a global declaration of nested element of a task and reference
them later in the container task?

Yes. Your nested elements need to support a refid attribute of course,
but also have logic for all other attributes/elements to check whether
the current instance is the "real thing", or a reference. By
convention, elements refid'd should not accept any other attributes or
nested elements. Look into the Ant sources for example, and into
DataType, the base class for many nested elements. --DD

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

View raw message