Hello, I read about the init() methos in Stefans link about the life cycle of an ANT task: 6.init() is called at run time.
I did not find documentation for this. Is init() a static method or wht else? Greetings Juergen -- Jürgen Knuplesch www.icongmbh.de icon Systemhaus GmbH Tel. +49 711 806098-275 Sophienstraße 40 D-70178 Stuttgart Fax. +49 711 806098-299 Geschäftsführer: Uwe Seltmann HRB Stuttgart 17655 USt-IdNr.: DE 811944121 -----Ursprüngliche Nachricht----- Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] Gesendet: Freitag, 12. Februar 2010 16:00 An: Ant Users List Betreff: AW: Setter in my own Anttask Hello, Thanks for the link, but either I did not understand the docu correct or sth. wrong: 6.init() is called at run time. 7.All child elements of the XML element corresponding to this task are created via this task's createXXX() methods or instantiated and added to this task via its addXXX() methods, at run time. 8.All attributes of this task get set via their corresponding setXXX methods, at runtime. Does this mean that the addConfigured methods should be called before the setters? I experience that the setters are called before the add methods!! So what is now the truth? Greetings Juergen -- Jürgen Knuplesch -----Ursprüngliche Nachricht----- Von: Stefan Bodewig [mailto:bode...@apache.org] Gesendet: Freitag, 12. Februar 2010 15:43 An: user@ant.apache.org Betreff: Re: Setter in my own Anttask On 2010-02-12, Knuplesch, Juergen <juergen.knuple...@icongmbh.de> wrote: > So I now start the application in every method that "runs" a nested > element. E.g. addConfigured... and some others. > Is this a good way to do it? Hard to tell. Maybe it would be better to collect the nested elements and just do something once execute has been called. > Is it right that nested elements are added after the setters have been > executed? It depends on whether you use createX(), addX() or addConfiguredX(). See "The Life-cycle of a Task" in <http://ant.apache.org/manual/develop.html#writingowntask> Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org