admin@glassfish.java.net

Determining GlassFish version

From: Joe Di Pol <joe.dipol_at_oracle.com>
Date: Wed, 23 Jun 2010 15:36:31 -0700

Given a GlassFish installation that may not be running,
what is the best way to get the version -- say from a
shell script. Is it:

asadmin version

or is there some file or data in the GlassFish install
that one could look at? If "asadmin version" is the
way then I think I'll file an RFE to support:

$ asadmin version --local --short
3.1-b06

Which means get me the short version string for
the local install and don't go to the DAS.

Joe