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