Stephen McConnell wrote:
-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED]
Sent: Thursday, 2 February 2006 2:25 AM
To: Ant Users List
Subject: Re: Copy-Task
Stephen McConnell wrote:
-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED]
-you can use the <different> selector to do byte for byte
comparisons
of files. But that pulls all the remote data down and can clog a
network
Would an MD5 comparison be sufficient?
you probably don't even need a hash that strong. But you do
need to cache the hash somewhere, because if you have to
calculate it on demand, then you have just done the data copy
that you wanted to avoid...
I'm assuming that there is a MD5 on the server (or at least an MD5 could be
placed on the server with the artifact) and that you would download the MD5
and compare that with a locally generated MD5 (avoiding any artifact
download).
Exactly. Though what you really want is a file system that can work out
the hashes for you. Which I think things like WebDav can do; you do a
HEAD with the etag property and the server should let you know if it has
changed...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]