Java Mailing List Archive

Apache Ant Archive

» Ant Users List
» Ant Developers List
task to 'cp -r --reply=no '

task to 'cp -r --reply=no '

2007-06-12       - By Rebhan, Gilbert
Reply:     1     2     3     4     5     6     7     8     9     10  


-----Original Message-----
From: Chris Velevitch [mailto:chris.velevitch@(protected)]
Sent: Tuesday, June 12, 2007 9:46 AM
To: user@(protected)
Subject: task to 'cp -r --reply=no'

What task is the equivalent of 'cp -r --reply=no'. This command
recursively copies files and if the file exists in the destination,
skip copying that file and continue.

<copy ...>
<fileset ... />

from the manual

<copy todir="../dest/dir">
   <fileset dir="src_dir">
     <exclude name="**/*.java"/>

**/ .... means recursive, see for
those patterns

"if the file exists ..."
the copy task's default is overwrite false

Regards, Gilbert

To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 - Jax Systems, LLC, U.S.A.