ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: How to copy file only if file not present??
Date Thu, 11 Oct 2001 21:44:48 GMT
--- Chuck.Irvine@mail.sprint.com 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/defaults-constants.properties 
> to
>    deploy/constants.properties
> but I only want this copy to be performed if 
>    deploy/constants.properties
> 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.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

Mime
View raw message