ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Copy-Task
Date Thu, 02 Feb 2006 09:42:47 GMT
Stephen McConnell wrote:
>  
> 
>> -----Original Message-----
>> From: Steve Loughran [mailto:stevel@apache.org] 
>> 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:stevel@apache.org]
>>>> -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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message