ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu Champlon <m.champ...@free.fr>
Subject Re: Check if file already exists
Date Tue, 17 Oct 2006 00:53:11 GMT
Christian Hauser a écrit :
> 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.
>
> Thanks in advance,
>
> Christian

Hello,

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

MAT.

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


Mime
View raw message