From dev-return-78396-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Fri Mar 16 10:09:25 2007 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 82815 invoked from network); 16 Mar 2007 10:09:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2007 10:09:23 -0000 Received: (qmail 89092 invoked by uid 500); 16 Mar 2007 10:09:30 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 89053 invoked by uid 500); 16 Mar 2007 10:09:30 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 89042 invoked by uid 99); 16 Mar 2007 10:09:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2007 03:09:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.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; Fri, 16 Mar 2007 03:09:19 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by colossus.hpl.hp.com (Postfix) with ESMTP id 420FD6B9FC for ; Fri, 16 Mar 2007 10:08:57 +0000 (GMT) X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com Received: from colossus.hpl.hp.com ([127.0.0.1]) by localhost (colossus.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sxNkM+hDpZGE for ; Fri, 16 Mar 2007 10:08:56 +0000 (GMT) Received: from ha-node-br2.hpl.hp.com (ha-node-br2.hpl.hp.com [16.25.144.57]) by colossus.hpl.hp.com (Postfix) with ESMTP id 372E36B9E7 for ; Fri, 16 Mar 2007 10:08:55 +0000 (GMT) Received: from [16.25.171.182] (chamonix.hpl.hp.com [16.25.171.182]) by ha-node-br2.hpl.hp.com (8.13.4/8.13.4) with ESMTP id l2GA8lKv004923 for ; Fri, 16 Mar 2007 10:08:47 GMT Message-ID: <45FA6CAF.8030004@apache.org> Date: Fri, 16 Mar 2007 10:08:47 +0000 From: Steve Loughran User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: Ant Developers List Subject: Re: Enhance move, copy with @overwrite-if-filesmatch = false References: <1173975609.45f97239d10ee@clients.latnet.lv> In-Reply-To: <1173975609.45f97239d10ee@clients.latnet.lv> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPL-MailScanner-Information: Please contact the ISP for more information X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: stevel@apache.org X-Virus-Checked: Checked by ClamAV on apache.org Guntis Ozols wrote: > Hi! > > I think move and copy tasks should be enhanced with overwrite-if-filesmatch > boolean attribute. If set to false and source and target files match, target > file modification time should be left unchanged. This way, long rebuilds > triggered by small files can be avoided. > > What do you think? Will somebody else need it, not just me? I can implement > this. I'd file this under WORKSFORME. doesnt copy the files if the source and dest times are the same. If you are finding problems, then perhaps you are copying ot a remote machine whose clock is not in sync. If you actually want a byte-for-byte comparision, copy a with a nested selector. Note that this gets very slow when there are lots of files to copy that havent changed, because ant still has to read every single byte to make sure. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org