ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <>
Subject AW: Setter in my own Anttask
Date Fri, 12 Feb 2010 14:26:57 GMT

Thanks for the answers!

I now understood more about the task I investigate:

There are nested elements, that require that the application is started.

The challenge is: Start the application
1.after the setters executed
2.before the nested elements are added.

So the programmer started the application in a setter, to be sure that it is started before
the nested element is executed.
But I dont like that, because I added a second attribute that defines how the application
is started!

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?
Is it right that nested elements are added after the setters have been executed?

It seems to work...

Greetings Juergen

J├╝rgen Knuplesch                    
-----Urspr├╝ngliche Nachricht-----
Von: Stefan Bodewig [] 
Gesendet: Freitag, 12. Februar 2010 10:23
Betreff: Re: Setter in my own Anttask

On 2010-02-11, Knuplesch, Juergen <> wrote:

> In what sequence the setters are executed?

> I guess in the sewuence I wrote them into ma call inside my Antfile.

There is no defined order and in fact I'd be surprised if it was the same accross all possible
combinations of Java VMs and XML parsers.

XML Parsers are allowed attributes in any order (in XML attribute order is insignificant)
so even if the setters were invoked in the same order they have been handed down by the XML
parser - which they not necessarily are - the final order would still depend on the XML parser.


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

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

View raw message