admin@glassfish.java.net

Re: Determining GlassFish version

From: Arun Gupta <arun.p.gupta_at_oracle.com>
Date: Thu, 24 Jun 2010 09:18:42 -0700

Can we go with what "java -version" command do:

>java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-9M3165)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)

>java -fullversion
java full version "1.6.0_20-b02-279"

"--terse" looks a little verbose to me :-)

Thanks,
-Arun

On 6/24/10 8:46 AM, Tom Mueller wrote:
> It works either way. The --terse can be before or after "version".
> Tom
>
>
> On 6/24/2010 10:20 AM, Joe Di Pol wrote:
>> Tom Mueller wrote:
>>> We already have the --terse option on that command. Can we use that
>>> instead of "--short"?
>>
>> That's an option to asadmin, right? So that would be:
>>
>> asadmin --terse version --local
>>
>> Which looks a bit funny, but I could go with that. I'll file
>> an RFE.
>>
>> Joe
>>
>>> Tom
>>>
>>> On 6/23/2010 5:36 PM, Joe Di Pol wrote:
>>>>
>>>> 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
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>

-- 
Blog: http://blogs.sun.com/arungupta
Twitter: http://twitter.com/arungupta