Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 97701 invoked by uid 500); 9 Aug 2001 16:28:00 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 97402 invoked from network); 9 Aug 2001 16:27:55 -0000 Message-ID: <3B72BBB4.8000404@sedonacorp.com> Date: Thu, 09 Aug 2001 12:35:00 -0400 From: Matthew Inger User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010701 X-Accept-Language: en-us MIME-Version: 1.0 To: ant-user@jakarta.apache.org Subject: Re: Conditional ANT building References: <7B3DF58138A2D111A9420008C71EC42103C1A977@NC-EXCHANGE-01> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Filter-Version: 1.3 (netra1) X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Peter.FLYNN@syntegra.com wrote: >Since some of the tasks differ between 1.3 and 1.4alpha/beta, I want to >perform different things for different ANT versions. >I can obtain the ANT version using the property ant.java.version, but is >there some way to say: > >if ${ant.java.version} == "1.3" > echo "Using ANT 1.3" >else if ${ant.java.version} == "1.4" > do something else.... > > >Is this possible? > >Peter > > >******************************************************************** > >This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person >Thank you > >Check us out at http://www.syntegra.com > >******************************************************************** > however, i don't think that's the property you really want, since ant.java.version actually returns the version of the current virtual machine, not the version of ant. -- Matt Inger (matt.inger@sedonacorp.com) Sedona Corporation 455 S. Gulph Road, Suite 300 King of Prussia, PA 19406 (484) 679-2213 "Self-respect - the secure feeling that no one, as yet, is suspicious." -H.L. Mencken