opensubscriber
   Find in this group all groups
 
Unknown more information…

u : user@ant.apache.org 5 September 2009 • 3:35AM -0400

Re: Proposal for improving Ant output (post-1.7)
by David Weintraub

REPLY TO AUTHOR
 
REPLY TO GROUP




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 <fge@one2...> wrote:

> On Thu, Sep 3, 2009 at 14:15, <Jan.Materne@rzf....> 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
> fge@one2...
> 40 avenue Raymond Poincaré
> 75116 Paris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant....
> For additional commands, e-mail: user-help@ant....
>
>


--
David Weintraub
qazwart@gmai...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.