Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 98319 invoked from network); 25 May 2006 09:18:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2006 09:18:05 -0000 Received: (qmail 2568 invoked by uid 500); 25 May 2006 09:18:05 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 2227 invoked by uid 500); 25 May 2006 09:18:04 -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 2216 invoked by uid 99); 25 May 2006 09:18:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 02:18:04 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of foamdino@gmail.com designates 64.233.166.177 as permitted sender) Received: from [64.233.166.177] (HELO py-out-1112.google.com) (64.233.166.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 02:18:03 -0700 Received: by py-out-1112.google.com with SMTP id x31so2315934pye for ; Thu, 25 May 2006 02:17:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=UJsRA4wRTufUkn9aCDz2Jhrkha8x7cTcZbWkbTyNteiVKfEgyZMhbP8nVcpCJbB9h4uR3yzKZHCQCgjvvMoaI0qLmXH18qToUSNY72zBnpXAXYp/2Y/rggdFo+1lzE4jkMY36EWzeWG9KBf2no0SM0KNXhqMYwuIRLgn0+SNNJM= Received: by 10.35.105.18 with SMTP id h18mr2513441pym; Thu, 25 May 2006 02:17:42 -0700 (PDT) Received: by 10.35.61.5 with HTTP; Thu, 25 May 2006 02:17:42 -0700 (PDT) Message-ID: Date: Thu, 25 May 2006 16:17:42 +0700 From: "Kevin Jackson" To: "Ant Developers List" Subject: Added (very basic) antversion condition MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Had some free time today so built a basic antversion condition. (see commi= ts) Currently only supports x.y, not x.y.z versioning, currently the only way I can see of doing the full versioning (with alpha/beta/rc1 etc) is to using something similar to the javascript suggestion by Jan (enumerate every released version of ant and associate each with a unique numeric value). I'm thinking of maybe having a static class or interface which simply contains a list of all ant releases along with a numeric value (Hashtable/dictionary style). If anyone can see a better way of doing this please let me know. I committed this as I'm working on a temp machine atm and didn't want to lose everything that I'd done. Basic tests are included. enjoy Kev --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org