Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F4EE7114 for ; Tue, 29 Nov 2011 10:48:55 +0000 (UTC) Received: (qmail 79160 invoked by uid 500); 29 Nov 2011 10:48:54 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 78531 invoked by uid 500); 29 Nov 2011 10:48:52 -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 78522 invoked by uid 99); 29 Nov 2011 10:48:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 10:48:51 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [82.211.65.133] (HELO rpsmsxht01.rps.local) (82.211.65.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 10:48:45 +0000 Received: from RPSMSX01.rps.local ([fe80:0000:0000:0000:1cff:9008:201.64.159.240]) by rpsmsxht01.rps.local ([192.168.22.108]) with mapi; Tue, 29 Nov 2011 10:48:23 +0000 From: Emma Burrows To: Ant Users List Date: Tue, 29 Nov 2011 10:48:21 +0000 Subject: RE: Use Ant with an arbitrary date Thread-Topic: Use Ant with an arbitrary date Thread-Index: AcyufN1JLVvT+hqTQF2CvPrblQcx7wAASTIA Message-ID: References: <87wrajmezh.fsf@v35516.1blu.de> In-Reply-To: <87wrajmezh.fsf@v35516.1blu.de> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB x-exclaimer-md-config: d38038e2-8f89-4639-9e71-104312a5c7f5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Thank you for the response. Sorry, I should probably have anticipated that = response by expanding more thoroughly on exactly what happens. :) The files are all generated at the same time, whether they have been modifi= ed or not. As I am constantly tweaking the conversion process, these files = are generated and date-stamped at any point during the week - so every sing= le file will always have a date stamp later than last Thursday. But I only = want to upload the ones which are actually different than the version in th= e last build. Actually, come to think of it, the date is probably a bit of a red herring.= I suppose what I really need is some process to say "this is the last 'bui= ld version'" (a cache of checksums collected at a given point in time for i= nstance?), and then to say "copy over only the files which aren't identical= to the last 'build version'". This would also allow for us having to re-ru= n the CMS build more than once during the week but still load all the files= that changed since the last milestone build as it were. -----Original Message----- From: Stefan Bodewig [mailto:bodewig@apache.org] Sent: 29 November 2011 09:54 To: user@ant.apache.org Subject: Re: Use Ant with an arbitrary date On 2011-11-29, Emma Burrows wrote: > So I was wondering if there was some way of using 's > cache-based approach to only copy the files that have been modified > since a given date/time like "17.00 last Thursday" instead of "last > time this script was run". This is a job for the date selector rather than the modified selector. Since this one is purely based on last modified dates you wouldn't need to calculate hashes and cache them anyway. You may need some coding to calculate the date to pass in. may help but this probably becomes brittle pretty soon. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org