Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 68762 invoked from network); 14 Mar 2005 12:30:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Mar 2005 12:30:02 -0000 Received: (qmail 29539 invoked by uid 500); 14 Mar 2005 12:29:55 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 29497 invoked by uid 500); 14 Mar 2005 12:29:55 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 29483 invoked by uid 99); 14 Mar 2005 12:29:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO server1.ruminate.co.uk) (69.20.13.113) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 14 Mar 2005 04:29:52 -0800 Received: from [213.195.208.34] ([213.195.208.34]) (authenticated) by server1.ruminate.co.uk (8.11.6/8.11.6) with ESMTP id j2ECTmh20989 for ; Mon, 14 Mar 2005 07:29:48 -0500 Message-ID: <42358418.40709@ruminate.co.uk> Date: Mon, 14 Mar 2005 13:31:20 +0100 From: James Fuller Reply-To: jim.fuller@ruminate.co.uk Organization: Webcomposite User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: how can we find which jre home is in use by ant script? References: <20050314121056.49126.qmail@minotaur.apache.org> <62a554110503140416181ed8d5@mail.gmail.com> In-Reply-To: <62a554110503140416181ed8d5@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N IndianAtTech wrote: >Hi All, > >how can we find which jre home is in use by ant script? > >Thanks >Sudhakar > > you could print out the following java property to detect JVM in current usage as well ant.java.version the JVM version Ant detected; currently it can hold the values "1.1", "1.2", "1.3" and "1.4". or java.home put in a test target and run it...see what it prints! remember you can always access all env variables by using property to load up env vars will mean that you can refer to all env vars ala ${env.PATH} will give you system PATH and so on.... normally if you are not fiddling with Ant's own run script then JAVACMD - full path of the Java executable, is used. Redefine this if you want to invoke a different JVM than JAVA_HOME/bin/java(.exe). You will find it in Ant's own run wrapper. gl, Jim Fuller note: that if you just have the JRE available many of Ant Tasks wont work, they require full JDK. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org