Thanks for clearing that up.
I'm sticking with ${java.specification.version} as suggested by Alexey.
Zarar
----- Original Message -----
From: "Stefan Bodewig" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, June 16, 2005 3:00 AM
Subject: Re: Detecting JDK Version using ANT
On Wed, 15 Jun 2005, Zarar Siddiqi <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]