Hi,

-----Original Message-----
From: Chris Velevitch [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 12, 2007 9:46 AM
To: user@ant.apache.org
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 ... />
</copy>


from the manual

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


**/ .... means recursive, see =
http://ant.apache.org/manual/dirtasks.html for those patterns

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


Regards, Gilbert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to