In the example you just gave, what happens if "bar" is define
to "true" before the target "foo" is run? According to what you said,
the dependencies "x, y, z" will be run and then "foo" will discover
"bar" is set, so its body will not execute. Correct?

Gili

On Thu, 2 Dec 2004 11:27:20 -0800 (PST), Matt Benson wrote:

>--- Gili <[EMAIL PROTECTED]> wrote:
>> 
>>      That is very good news. So you are saying:
>> 
>> 1) All "depends" are executed
>> 2) "Unless" is evaluated
>> 3) If "Unless" is false, the actual target is
>> executed.
>> 
>>      Correct?
>
>Basically yes, there is the possibility you could have
>this:
>
><target name="foo" depends="x,y,z" unless="bar">
>  <echo>foo</echo>
></target>
>
><target name="x">
>  <echo>x</echo>
></target>
>
><target name="y">
>  <echo>y</echo>
>  <property name="no-z" value="anyvalue" />
></target>
>
><target name="z" unless="no-z">
>  <echo>z</echo>
></target>
>
>In such a case, z would not be executed, because y set
>the no-z property, but I believe you understand the
>general sequence of events now.
>
>> 
>> Thanks,
>
>You're welcome.
>
>-Matt
>
>> Gili
>
>
>
>       
>               
>__________________________________ 
>Do you Yahoo!? 
>Yahoo! Mail - You care about security. So do we. 
>http://promotions.yahoo.com/new_mail
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to