You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Christian Cryder <ch...@granitepeaks.com> on 2002/08/26 17:04:25 UTC
Question about copying files
Hi folks,
I need to copy sample files sometimes, and I currently do it like this:
<copy todir="${build.dir}" >
<fileset dir="${build.dir}" />
<mapper type="glob" from="sample.*" to="*" />
</copy>
What I need to know how to do, is to only copy files that _do not already
exist_.
In other words, if I have the following files in a directory:
sample.foo1 (unchanged, foo1 exists)
sample.foo2 (changed, foo2 exists)
sample.foo3 (new, foo3 does not exist)
only foo3 should be copied.
Suggestions?
tia,
Christian
----------------------------------------------
Christian Cryder [christianc@atmreports.com]
Internet Architect, ATMReports.com
Barracuda - http://barracuda.enhydra.org
----------------------------------------------
"Coffee? I could quit anytime, just not today"
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>