ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: task to 'cp -r --reply=no'
Date Tue, 12 Jun 2007 07:58:30 GMT

-----Original Message-----
From: Chris Velevitch [] 
Sent: Tuesday, June 12, 2007 9:46 AM
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:
For additional commands, e-mail:

View raw message