dev@glassfish.java.net

Re: how to get version of glassfish

From: Jennifer Chou <jennifer.chou_at_oracle.com>
Date: Wed, 05 May 2010 11:45:20 +0100

I just tried this and looks like it works.

1. Change top-level pom.xml

Index: pom.xml
===================================================================
--- pom.xml (revision 36721)
+++ pom.xml (working copy)
@@ -122,7 +122,7 @@
         <abbrev_product_name>glassfish</abbrev_product_name>
         <version_prefix>v</version_prefix>
         <major_version>3</major_version>
- <minor_version>0</minor_version>
+ <minor_version>1</minor_version>
         <version_suffix></version_suffix>
         <build.id>${user.name}-private</build.id><!-- on Hudson and RE,
this ge
ts replaced by real build ID -->
         <jruby-scripting.version>1.0-b17</jruby-scripting.version>

2. After building core or core\branding, you should see inside
GlassFishBranding.java, minor_version = "1".
    private String major_version = "3";
    private String minor_version = "1";

In the log file now I see
[#|2010-05-05T11:37:49.515+0100|INFO|glassfishv3.1|null|_ThreadID=25;_ThreadName
={felix.fileinstall.poll=5000, felix.fileinstall.bundles.new.start=true,
felix.f

Jennifer

On 5/5/2010 1:34 AM, Carla Mott wrote:
>
> Hi,
>
> The version number in the log files is incorrect for the releases we
> are working on. It still reads glassfishv3.0. What is the correct API
> I should use to get the version number so it is always updated to the
> current version?
>
> Thanks,
> Carla
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>