Hi!

How can we retrieve the directory of the Java runtime which executing
the Ant's build file?

I have two Java versions installed and I would like to print the Java
runtime information when building the programs. Currently, I'm doing
this

  <property environment="env"/>
  <echo message="You are running Java from ${env.JAVA_HOME}"/>

The problem is that the JAVA_HOME is not guarantee to be set correctly.

Is there a better way of doing this?

Appreciate your advice, thank you!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to