Thank you Ludo and Kedar,
I'll check out the javadocs and the version class in particular to see
if I can get at what we need.
Cathy
Ludovic Champenois wrote:
> kedar wrote:
>
>> Hi Cathy Mucci,
>>
>> The Version Command output should be an invariant. I don't
>> think the "output" of the version command is an interface that
>> you can rely on.
>>
>> So, it always better to rely on the "Version" class that we
>> have exposed. In your GlassFish installation, take a look at:
>> appserv-ext.jar:
>> com.sun.appserv.server.util.Version class. At the moment, you'll
>> need to do a javap on that to find out its methods.
>
> https://glassfish.dev.java.net/nonav/javaee5/api/s1as-javadocs/com/sun/appserv/server/util/Version.html
>
>
>
> but...
>
>> This class exposes various methods to get things like: full-version
>> (which asadmin displays), major version, minor version, build id etc.
>> I think you should rely on it.
>
>
> I remember that you need more than appserv-ext.jar jar in your classpath
> for EE detection, making this api not really stable as the output varies
> based on you class path...
>
> Unless I am wrong?
> Ludo
>
>>
>> Regards,
>> Kedar
>>
>> Cathy Mucci wrote:
>>
>>>
>>> We are looking for ways to programatically determine the version of
>>> AppServer installed on various platforms/servers.
>>>
>>> Is the the output returned from the asadmin version command is parsable?
>>> Is it localized text? In other words, is there an option to guarantee
>>> the output text that can be parsed by a script and work in any locale?
>>>
>>> Your feedback is appreciated.
>>>
>>> Thank you,
>>> Cathy Mucci
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
--
Cathy Mucci
Projects: Lockhart/Woodstock
MAX Software Organization
http://lockhart.east
781-442-3521