Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 97551 invoked from network); 2 Feb 2006 09:43:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Feb 2006 09:43:47 -0000 Received: (qmail 8597 invoked by uid 500); 2 Feb 2006 09:43:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 8541 invoked by uid 500); 2 Feb 2006 09:43:42 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 8529 invoked by uid 99); 2 Feb 2006 09:43:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2006 01:43:42 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [192.6.10.2] (HELO colossus.hpl.hp.com) (192.6.10.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2006 01:43:41 -0800 Received: from kropotkin.hpl.hp.com (kropotkin.hpl.hp.com [15.144.59.2]) by colossus.hpl.hp.com (8.12.10/8.12.10) with ESMTP id k129gucv002055 for ; Thu, 2 Feb 2006 09:42:56 GMT Received: from localhost (localhost [127.0.0.1]) by kropotkin.hpl.hp.com (Postfix) with ESMTP id 94D1BA618 for ; Thu, 2 Feb 2006 09:42:56 +0000 (GMT) Received: from kropotkin.hpl.hp.com ([127.0.0.1]) by localhost (kropotki [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03367-03-10 for ; Thu, 2 Feb 2006 09:42:52 +0000 (GMT) Received: from timmay.hpl.hp.com (timmay-hb.hpl.hp.com [15.144.59.39]) by kropotkin.hpl.hp.com (Postfix) with ESMTP id 97A15449B for ; Thu, 2 Feb 2006 09:42:52 +0000 (GMT) Received: from [15.144.25.135] (chamonix.hpl.hp.com [15.144.25.135]) by timmay.hpl.hp.com (8.13.2/8.13.2) with ESMTP id k129gm9V011808 for ; Thu, 2 Feb 2006 09:42:48 GMT Message-ID: <43E1D417.9010702@apache.org> Date: Thu, 02 Feb 2006 09:42:47 +0000 From: Steve Loughran User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Ant Users List Subject: Re: Copy-Task References: <000301c62757$42d37470$0201a8c0@julia> In-Reply-To: <000301c62757$42d37470$0201a8c0@julia> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-HPLB-IMAP-MailScanner-Information: Please contact the Helpdesk for more information X-HPLB-IMAP-MailScanner: Found to be clean X-HPLB-IMAP-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 5) X-Virus-Scanned: amavisd-new at kropotkin.hpl.hp.com X-HPL-MailScanner-Information: Please contact the Helpdesk for more information X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.845, required 5, autolearn=not spam, AWL -0.84) X-MailScanner-From: stevel@apache.org X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 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