Re: how to copy only if dest file does not exist

2005-09-08 Thread Matt Benson
--- Jason Novotny <[EMAIL PROTECTED]> wrote: [SNIP] > I want to copy a file from source to dest ONLY > if the dest file does > not exist. Use the selector. -Matt __ Click here to donate to the Hurricane Katrina

Re: how to copy only if dest file does not exist

2005-09-08 Thread Andrew Goktepe
You could use the 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 <[EMAIL PROTECTED]> wrote: > > > Hi, > > I want to copy a file from source to dest ONLY if the dest file does > not exist. It s

how to copy only if dest file does not exist

2005-09-08 Thread Jason Novotny
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 fil