ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Goktepe <andrewgokt...@gmail.com>
Subject Re: how to copy only if dest file does not exist
Date Thu, 08 Sep 2005 12:18:33 GMT
You could use the <available> task to determine whether or not the file 
already exists.
 http://ant.apache.org/manual/CoreTasks/available.html

-Andrew
 On 9/8/05, Jason Novotny <novotny@aei.mpg.de> wrote: 
> 
> 
> Hi,
> 
> I want to copy a file from source to dest ONLY if the dest file does
> not exist. It seems the overwrite attribute is not quite appropriate in
> this case since it's possible for the source file to be newer. But even
> if it is newer I don't want it being copied over as long as the dest
> file is present.
> 
> Thanks, Jason
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message