You're thinking about Ant as a programming language. You assume that Ant tries to execute your target, sees the depends, and then executes that first.
Ant is a build description tool. The very first thing Ant does is to build a complete matrix dependency of all targets and then executes the targets based upon the matrix. It has no way of knowing at that point that target "d" called target "a". It simply knows that to execute "d", it must execute "a" first. Use the -default flag, and you can see it build the build dependency step. On Thu, Sep 3, 2009 at 8:27 AM, Francis GALIEGUE <f...@one2team.com> wrote: > On Thu, Sep 3, 2009 at 14:15, <jan.mate...@rzf.fin-nrw.de> wrote: > > <target name="a"/> > > <target name="b" depends="a"/> > > <target name="c" depends="a"/> > > <target naem="d" depends="b,c"/> > > > > current output is > > a: > > b: > > c: > > d: > > > > What do you expect here? > > > > > > If you call target d, I suspect? Well, a is called from b and c, and b > is the first in the call chain. Ant will have resolved the fact that > there's no need to call a from c, right? > > So that would be: > > ---- > a (from b) (from d): > > b (from d): > > c (from d): > > d: > ---- > > -- > > Francis Galiegue > ONE2TEAM > Ingénieur système > Mob : +33 (0) 683 877 875 > Tel : +33 (0) 178 945 552 > f...@one2team.com > 40 avenue Raymond Poincaré > 75116 Paris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > -- David Weintraub qazw...@gmail.com