[platform-dev] Re: App version in "About" dialog for NB RCP maven project

  • From: Milos Kleint < >
  • To:
  • Subject: [platform-dev] Re: App version in "About" dialog for NB RCP maven project
  • Date: Thu, 26 Apr 2012 06:10:48 +0200

if you can create a sample working project that shows the problem,
please file it under
http://jira.codehaus.org/browse/MNBMODULE

Milos

On Wed, Apr 25, 2012 at 10:15 PM, Rob Terpilowski 
< >
 wrote:
> Hi All,
>
>
>
> We are attempting to get the version number of our application to appear in
> the “About” dialog of our application.  We would like to use the version
> number that is defined in the pom.xml file since we are using maven for this
> project.
>
>
>
> I’ve updated the  Bundle.properties file in the Branding module located at
> src/main/nbm-branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
> with the following line
>
> currentVersion=FMS-Client ${pom.parent.version}
>
>
>
> I’ve added maven resource filtering to the branding module’s pom file so it
> replaces the text with whatever is defined in the pom.xml file.  When I
> build the module all looks good, the version number shows up in the
> Bundle.properties file in the module’s binary as expected.
>
>
>
> However, when I then attempt to run the application, it complains that it is
> attempting to load a resource bundle and it is unable to parse the string
> ${pom.parent.version}, and startup fails..  I inspected the Branding NBM
> file that is included in the app, and the version number is correct.  It
> appears that when the main application is built the resource bundle is
> copied from the branding to the main project and puts it in a file located
> at target/fmsclientdev/fmsclientdev/core/locale/core_fmscliendev.jar.  Where
> fmscliendev is the project.  The Bundle.properties file located in that
> bundle is the one that is found in the Branding module, but contains the
> unassigned variable:
>
> currentVersion=FMS-Client ${pom.parent.version}
>
>
>
>
>
> Any idea how to get the maven build to also replace this variable when its
> building the main app and copying the resource bundle from the Branding
> project?
>
>
>
> Thanks,
>
> -Rob


[platform-dev] App version in "About" dialog for NB RCP maven project

Rob Terpilowski 04/25/2012

[platform-dev] Re: App version in "About" dialog for NB RCP maven project

Milos Kleint 04/26/2012

Project Features

Project Links

About this Project

Platform was started in November 2009, is owned by Antonin Nebuzelsky, and has 138 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close