ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Stockall <stock...@magma.ca>
Subject Re: Help!!! How to verify if archive has some content
Date Tue, 06 May 2003 16:42:59 GMT
On Tue, 2003-05-06 at 12:39, Regis Melo wrote:
> Hello!
> 
> 	I want to verify if my archive contains some content. Something like this:
> 
> 	if( ! myFileContains("myToken" ) )
> 		buildFail();
> 
> 	
> 	There is any way to do this using ANT??
> 

Have a look at the <available> task
http://ant.apache.org/manual/CoreTasks/available.html

-- 
Jesse Stockall <stockall@magma.ca>


Mime
View raw message