No, I want the opposite. If there is *any* file already there with
the same name, regardless of when it was created, DONT copy it.
On Jan 7, 2008, at 10:22 PM, <[EMAIL PROTECTED]> wrote:
<copy file="a" tofile="b"> copies "a" to "b" only if
- "a" is newer than "b" or
- "b" is not present.
If you want that "a" should always be copied, set "overwrite"
attribute to true.
See manual::CoreTasks::copy
Jan
-----Ursprüngliche Nachricht-----
Von: Francisco Tolmasky [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 8. Januar 2008 07:13
An: Ant Users List
Betreff: Re: AW: Easier Way To Check and Install jars
Is there a way to have copy not copy regardless of whether
there is a
newer or older version already there?
Francisco
On Jan 7, 2008, at 10:05 PM, <[EMAIL PROTECTED]> wrote:
Easier would be just to do a
<copy todir="/usr/share/ant/lib">
<fileset dir="."
includes="bsf.jar,commons-logging-1.1.jar,js.jar"/>
</copy>
<copy> would check if the target file exists or is older than the
copied
file
and skip copying if not.
You dont have to copy the ant-apache-bsf-1.7.0.jar as it should be
present
because it's part of the Ant distro.
Much more elegant would be using Ivy ... (I hope someone
jumps in here
;)
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]