ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Cody <paul.c...@lucidainc.com>
Subject RE: How to copy file only if file not present??
Date Thu, 11 Oct 2001 21:25:33 GMT
I believe the copy task only copies files if the timestamp of the
destination file is older than the source.  So the functionality you want
may already be there...

Paul 

> -----Original Message-----
> From: Chuck.Irvine@mail.sprint.com 
> [mailto:Chuck.Irvine@mail.sprint.com]
> Sent: Thursday, October 11, 2001 4:17 PM
> To: ant-user@jakarta.apache.org
> Subject: How to copy file only if file not present??
> 
> 
> 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.
> 
> Chuck
> 

Mime
View raw message