ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <qazw...@gmail.com>
Subject Re: Proposal for improving Ant output (post-1.7)
Date Fri, 04 Sep 2009 19:35:24 GMT
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@one2team.com> wrote:

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


-- 
David Weintraub
qazwart@gmail.com

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