ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Detecting JDK Version using ANT
Date Thu, 16 Jun 2005 07:00:01 GMT
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


Mime
View raw message