ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cowwoc <>
Subject Re: Enforcing "depends" order for 3rd-party targets?
Date Mon, 18 Aug 2008 21:48:48 GMT

Right, but how would I make this work even for a future theoretical parallel
executor? It is my understanding that the Ant documentation does not
guarantee the execution order and relying upon the existing behavior is
discouraged, which is why I ask.


Dominique Devienne-2 wrote:
> On Mon, Aug 18, 2008 at 4:09 PM, cowwoc <> wrote:
>> <target name="one" depends="internal, external"/>
>> how do I guarantee that "internal" gets executed before "external" if
>> "external" is declared by some 3rd-party script I have no control over
>> (that
>> is, I can't add depends="internal" to "external").
> But default that is what happens. In theory, dependencies of a target
> could be executed in parallel or a different order (depending on the
> dependencies' dependencies that is), but in practice Ant's
> DefaultExecutor makes sure internal is executed before external*. This
> behavior could be overridden by using another executor (search for
> executor in and the mailing
> list too). --DD
> * well there could be other higher-level targets which could
> depends="external, one", taking precedence over one's
> depends="internal, external". Ant does a topological sort of the
> top-level target(s) called, so a non-top-level target could have its
> specified dependency order changed by one "higher-up".
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Ant - Users mailing list archive at

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

View raw message