ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Detecting JDK Version using ANT
Date Thu, 16 Jun 2005 07:00:01 GMT
On Wed, 15 Jun 2005, Zarar Siddiqi <> wrote:

> I'm assuming ${} 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message