Thank you for your answer. the <available> task is interessting, but it isn't what I need. What I need is to copy a directory with subdirectories within another dir, with subdirs which might have the same name (to merge the contents of both), but while triggering an error if any file already exists in the target dir.
This looks quite complicated to do with ant. 2009/1/26 <jan.mate...@rzf.fin-nrw.de>: >>It is possible with Ant to make a copy task fail if any destination >>file already exists? >> >>I found no clue in the docs (noticed only the "failonerror" param in >>copy task (http://ant.apache.org/manual/CoreTasks/copy.html) and in >>the condition for the "fail" task, but nothing relevant IMHO). >> >>I know it would be possible to check the existance of an entire >>folder, but this isn't suitable for my project. > > > This is not <copy>s job. > Try <available>. > > > Jan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org