Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 11631 invoked from network); 2 Jul 2004 14:47:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jul 2004 14:47:29 -0000 Received: (qmail 77796 invoked by uid 500); 2 Jul 2004 14:47:30 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 77695 invoked by uid 500); 2 Jul 2004 14:47:29 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 77632 invoked by uid 99); 2 Jul 2004 14:47:28 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received: from [65.54.246.106] (HELO hotmail.com) (65.54.246.106) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 02 Jul 2004 07:47:28 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 2 Jul 2004 07:47:18 -0700 Received: from 155.229.210.83 by bay2-dav2.bay2.hotmail.com with DAV; Fri, 02 Jul 2004 14:47:18 +0000 X-Originating-IP: [155.229.210.83] X-Originating-Email: [umagesh@hotmail.com] X-Sender: umagesh@hotmail.com From: "Magesh Umasankar" To: Subject: Version condition Date: Fri, 2 Jul 2004 10:48:23 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: X-OriginalArrivalTime: 02 Jul 2004 14:47:18.0480 (UTC) FILETIME=[79259D00:01C46043] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, First of all, thanks, Antoine for getting out the beta today. I felt the need for a condition today. I am aware of the different techniques used - i.e., using the ant.version property or using and checking for a classname that is unique to a particular release of Ant. usually works ok for major releases, but for minor ones, it may not always. My situation is this: I want to do the following if Ant runtime version is <= 1.6.1: I want to do the following if Ant runtime version is > 1.6.1 (including beta releases) Currently I am doing something like this: ..and so on... Is there a reliable built-in way (or a more elegant way) of achieving this? Cheers, Magesh --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org