ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: How to copy file only if file not present??
Date Thu, 11 Oct 2001 21:44:48 GMT
--- wrote:
> I want to copy a default property file from src to destination only if 
> the file isn't already at destination. For example, I want to copy
>     src/ 
> to
>    deploy/
> but I only want this copy to be performed if 
>    deploy/
> doesn't exist. 
> I'm betting that there is a way to do this. Is there? Thanks.

Use <available> to set a property to conditionally do the <copy> target.



Do You Yahoo!?
Make a great connection at Yahoo! Personals.

View raw message