ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Check if file already exists
Date Tue, 17 Oct 2006 14:30:42 GMT
--- Christian Hauser <c.hauser@active.ch> wrote:

> Hello
> 
> I'd like to check within an Ant target whether a
> particular file already 
> exists on the disk and if not download the file
> (using the Get Ant task).
> 
> How do I best check if the file already exists?
> 
> Any help (preferably with a small code snippet) is
> appreciated.

You should consider using the usetimestamp attribute
of the <get> task.

-Matt

> 
> Thanks in advance,
> 
> Christian
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message