AW: depends executed before if/unless

2005-03-13 Thread Jan . Materne
see also http://issues.apache.org/bugzilla/show_bug.cgi?id=33956 Jan > -Ursprüngliche Nachricht- > Von: Ninju Bohra [mailto:[EMAIL PROTECTED] > Gesendet am: Freitag, 11. März 2005 19:43 > An: Ant Users List > Betreff: Re: depends executed before if/unless > > I thin

Re: depends executed before if/unless

2005-03-11 Thread Ninju Bohra
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: 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. And that the lower

Re: depends executed before if/unless

2005-03-11 Thread Stefan Bodewig
On Fri, 11 Mar 2005, Andrew Ferguson <[EMAIL PROTECTED]> wrote: > Is this a misunderstanding of the intended use of the if/unless > attributes? Maybe, at least what you see is correct - both your description and from Ant's intentions. It is a very common design pattern in build files to set the

depends executed before if/unless

2005-03-11 Thread Andrew Ferguson
hi, I've come across what seems to be quite a deep problem with my understanding of ANT. When you declare a target is both conditional, and that it has dependencies, the dependencies are executed first, and then the condition is evaluated. So will go to all of the trouble of setting up