ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: JUnitTask - Question
Date Thu, 23 Mar 2006 19:42:21 GMT
One can use the "configured" form of the add method.
public void addConfiguredCommandline(Commandline c) {
}
Ant  will set the attributes / elements on Commandline c before
calling addConfiguredCommandline(Commandline c)

Peter


On 3/23/06, Stefan Bodewig <bodewig@apache.org> wrote:
>
> On Tue, 14 Mar 2006, Daniel Kasmeroglu
> <Daniel.Kasmeroglu@kasisoft.net> wrote:
>
> > Generally this is okay for ANT because it seems that ANT creates the
> > child-elements before setting the attributes, so this won't produce
> > an error (correct me if I'm wrong).  But I would like to know if
> > this is part of ANT's design so a developer must take this into
> > account when the API is used directly or is it just an unproper way
> > of implementation within the JUnitTask ?
>
> See the "Developing with Ant" -> "Writing Your Own Task" -> "Lifecycle
> of a Task" section in the Ant manual.  child elements are handled in
> step 6, attributes in step 7.  So yes, this is part of Ant's contract
> with tasks.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message