ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: depends executed before if/unless
Date Mon, 14 Mar 2005 06:49:26 GMT
see also
http://issues.apache.org/bugzilla/show_bug.cgi?id=33956

Jan

> -----Ursprüngliche Nachricht-----
> Von: Ninju Bohra [mailto:ninju_bohra@yahoo.com]
> Gesendet am: Freitag, 11. März 2005 19:43
> An: Ant Users List
> Betreff: Re: depends executed before if/unless
> 
> I think the problem lies in the fact the you are too
> deep before you decide to check whether you should be
> here or not.
> 
> In you example:
>    <target name="bake" depends="getFlour, getMilk,
> > getYeast etc.."
> > if="user.hungry">
> 
> I would expect that the "bake" target would have been
> called from a higher task which would make the
> check...i.e.
> 
>    <target name="need.a.meal" depends="shopping, bake,
> cut" if="user.hungry">
> 
> And that the lower level tasks (shopping, bake, cut)
> don't have the if check becuase by the time you
> starting to bake something you should already known if
> you are hungry :-)
> 
> Later,
> 
> Ninju
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/ 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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