ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zarar Siddiqi" <zarar.sidd...@utoronto.ca>
Subject Re: Detecting JDK Version using ANT
Date Thu, 16 Jun 2005 15:36:29 GMT
Thanks for clearing that up.  

I'm sticking with ${java.specification.version} as suggested by Alexey.

Zarar

----- Original Message ----- 
From: "Stefan Bodewig" <bodewig@apache.org>
To: <user@ant.apache.org>
Sent: Thursday, June 16, 2005 3:00 AM
Subject: Re: Detecting JDK Version using ANT


> On Wed, 15 Jun 2005, Zarar Siddiqi <zarar.siddiqi@utoronto.ca> wrote:
> 
>> I'm assuming ${ant.java.version} is the version Ant is using in case
>> there are multiple JDK's installed
> 
> No, it is the "flavor" of JDK Ant has detected at runtime, it doesn't
> trust the system properties and probes for certain features (existing
> classes, basically).  Ant bases its decisions on which command line
> arguments javac or javadoc can deal with and many other things on the
> value of this property.
> 
>> on the system and ${java.version} queries the JAVA_HOME variable.
> 
> No.  This is a system property set by the Java VM itself.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message