Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 33558 invoked from network); 20 Jul 2005 14:13:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2005 14:13:54 -0000 Received: (qmail 72684 invoked by uid 500); 20 Jul 2005 14:13:46 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 72643 invoked by uid 500); 20 Jul 2005 14:13:45 -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 72630 invoked by uid 99); 20 Jul 2005 14:13:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2005 07:13:45 -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 [68.142.200.84] (HELO web30201.mail.mud.yahoo.com) (68.142.200.84) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 20 Jul 2005 07:13:38 -0700 Received: (qmail 55484 invoked by uid 60001); 20 Jul 2005 14:13:41 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=pCbdngHk1pPay+LU4vmZ1JdqDkMN904nqP0E2gik8J++K2aYt1UhN87ECypB4zZcJI3b3lJIvJPvvwjRIOdozeKtfusDS88lMr1d2X8CvIJvfTL7YXcAVHZ3lHUYzHKBEIbKh4d6qf53+TxrOTHV3zfm8wTYxqAK2M8B2XEGhog= ; Message-ID: <20050720141341.55482.qmail@web30201.mail.mud.yahoo.com> Received: from [198.190.171.222] by web30201.mail.mud.yahoo.com via HTTP; Wed, 20 Jul 2005 07:13:40 PDT Date: Wed, 20 Jul 2005 07:13:40 -0700 (PDT) From: Ninju Bohra Subject: Re: sort or min/max file To: Ant Users List In-Reply-To: <3FE2C8A221E11845A0506A20B62F121A9BA6FC@studentex6.campus.tue.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You may want to look at the task (part of the ant-contrib project). If you are happy with sorting the files based upon the name you can try the following (it is what we do): Have fun... --- "Schulpen, D.P.H." wrote: > I'm trying to write a script to automate certain > parts of unzipping the most recent build archive of > an application (in this case NetBeans) in a certain > location. > > However, I can't figure out a way to determine the > most recent file. I thought about uptodate. > Unfortunately, I have no idea how to run the task > for every file in a list against all other files in > the list, and determine which one returns true. I > could also use lexical sorting or min/max-ing on the > filename, but can't seem to find a task that > supports this. > > Some mailing list archive browsing seemed to hint > that what I'm trying to achive is not yet possible > with 1.6.5. Is this correct? If not, any pointers? > > > - Daan > ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org