ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: task - if
Date Wed, 05 Jun 2002 06:42:22 GMT
--- Rum Pel <rum_pel@hotmail.com> wrote:
> It would be great if every task has an 'if' clause. Currently
> only 'target' task seems to have 'if'. (target isn't a task at all,
> right?).
> 
> 
> I want to compile a source only if it is available.
> 
> <available file="src/A.java" property="A.is.present"/>
> 
> <javac src="src/A.java" if="A.is.present"/>
> 
> Can I do this with 1.4.1?

The <include>/<exclude> elements have 'if'/'unless' attributes.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message