AW: Nested element problem in custom task

2005-07-08 Thread Jan.Materne
>An: Ant Users List >Betreff: Re: Nested element problem in custom task > >This is expected behaviour. When the Child instance is added >to MyTask, it is not yet configured (i.e. its attributes are >not yet set) . It will be configured by the time your task's >execute() me

Re: Nested element problem in custom task

2005-07-07 Thread Conor MacNeill
This is expected behaviour. When the Child instance is added to MyTask, it is not yet configured (i.e. its attributes are not yet set) . It will be configured by the time your task's execute() method is called. The normal strategy is just to accumulate the Child objects in a collection and only use

Nested element problem in custom task

2005-07-07 Thread Gilles QUERRET
Hello, Short story : I have an issue when adding a child element to its father : child's attribute are not set when in addChild(Child element) method... -- build.xml fragment -- ... In the classfile for Child, there's a setAttribute(String) method. In the classfile for MyTask, ther