You can check the value of the ant.java.version property. This lists
the Java X.x version, but not the build number. You can also echo any
Java System Properties where are listed here: http://bit.ly/9K40eZ.
The one you want might be java.version.
<project>
<echo>Java Version via Ant: ${ant.java.version}</echo>
<echo>Java Version System Prop: ${java.version}</echo>
</project>
On Tue, Jul 27, 2010 at 11:02 AM, Ben Stover <[email protected]> wrote:
> How can I dsiplay at the console the currently used Java release and the java
> installation path?
>
> If possible I want to display the exact version including the update number
> e.g.
>
> 1.5.upd03
>
> Ben
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
David Weintraub
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]