From user-return-52294-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed Sep 14 07:39:36 2005 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 42975 invoked from network); 14 Sep 2005 07:39:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2005 07:39:36 -0000 Received: (qmail 97583 invoked by uid 500); 14 Sep 2005 07:39:32 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 96685 invoked by uid 500); 14 Sep 2005 07:39:30 -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 96666 invoked by uid 99); 14 Sep 2005 07:39:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 00:39:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.179.48.190] (HELO mail.clf.com) (212.179.48.190) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 00:39:40 -0700 content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Find - is there parallel ant task? Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Wed, 14 Sep 2005 09:39:25 +0200 Message-ID: <4A686AEE0A43FA47AF3D932202382091012906DD@mail.clf.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Find - is there parallel ant task? Thread-Index: AcW4/f1nKLBT+GN1SQCHGoUr007FTwAAKoXw From: "Barak Yaish" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Perhaps I'm not clear enough, so I'll attach an example. Lets say there is files A, B, C, D. I would like to select from {B, C, = D} only the files that are newer than file A. For this purpose I guess I = should extract the timestamp of A and then use in the date selector. My = first question is: how can I extract the timestamp of A in order to use = later in the date selector? My second question is: is there more straightforward way to achieve my = goal? -----Original Message----- From: jfuller@ruminate.co.uk [mailto:jfuller@ruminate.co.uk] Sent: ?? 14 ?????? 2005 10:28? To: Ant Users List Cc: Ant Users List Subject: RE: Find - is there parallel ant task? "Barak Yaish" wrote .. > I'm appreciating the useful answer - I'm doing my very first steps = with > ant and not aware yet to all its features, so questions I cannot = answer > using google or ant site, I'm directing to the list. > > Your suggestion is work, of course. Now I'm looking for a way to find = a > set of files, which are newer than a certain file (sometimes an hard = coded > timestamp is not available in my project). As I saw in Date selector, = the > comparison is based on hard coded timestamp, millis, etc. Can you, = please, > suggest a way to define a fileset newer than a certain file? What other way is there to know if a file is 'newer' other then = comparing file timestamps? perhaps u also want to know if there is a = delta between files? Ant has many selectors for refining how to 'select' = a file. Perhaps u are looking for something a bit more procedural, I would = suggest checking out the task contained in the useful = ant-contrib lib http://ant-contrib.sourceforge.net/tasks/tasks/index.html otherwise what u want is achievable, as prev mentioned with selectors = (which creates the fileset that can be used by other tasks), and if u = need to print it out use pathconvert. gl, Jim Fuller --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org