ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: conditional <uptodate>?
Date Thu, 02 Dec 2004 19:27:20 GMT
--- Gili <junk@bbs.darktech.org> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message