ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: [new tasks] presetdef and macrodef
Date Thu, 14 Aug 2003 12:04:41 GMT
On Thursday 14 August 2003 12:28, Knut Wannheden wrote:
>
> A question: is <macrodef> a special task in the sense that it seems to be
> able to suppress Ant from resolving properties for it when the task is
> evaluated?  Is there a mechanism which allows this to be done in custom
> tasks as well?

The trick is that MacroDef uses TaskContainer in a nested element. This
is given UnknownElements before they are executed.  MacroInstance
then copies and walks the tree of unknownelements, modifing
attribute values and text values.

Peter


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


Mime
View raw message