ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Condition task to print message
Date Fri, 08 Aug 2003 15:11:47 GMT
See <available> and <fail>. --DD

> -----Original Message-----
> From: Matthew Oatham [mailto:matthewoatham@hotmail.com]
> Sent: Friday, August 08, 2003 10:10 AM
> To: user@ant.apache.org
> Subject: Condition task to print message
> 
> Hi,
> 
> During a build I need to check for the existence of a file and want to
> alert
> the user if this file doesnt exist. I guess I can use the available task
> to
> see if the file exists but then if it doesnt how do I print a message.
> It's
> like this:
> 
> if ( ! file exists ) {
>   print warning
> }
> 
> Thanks
> 
> Matt

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


Mime
View raw message