ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: accessing attribute values not in the containing target
Date Thu, 08 Nov 2001 07:34:19 GMT
On Wed, 7 Nov 2001, Ed Mooney <Ed.Mooney@Sun.COM> wrote:

> Debugging indicates that while Ant calls the constructor for all
> nested elements during parsing, it calls attribute setter methods
> only for nested elements in the current target.

It calls attribute setters before the task gets executed - so for all
elements that are tasks (or nested into tasks) that have been run
before your current task as well as your current task, they have been
called - for all others, they have not been called.

If you need access to attributes of tasks that have not yet been
executed, invoke the maybeConfigure method of that task before
accessing the attributes.


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

View raw message