Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to show build number in the About dialog?
How to show build number in the About dialog? [message #545481] Wed, 07 July 2010 23:52 Go to next message
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
Is there a simple way to get a build number (${buildNumber} from the headless build) to show there?
Re: How to show build number in the About dialog? [message #545644 is a reply to message #545481] Thu, 08 July 2010 12:45 Go to previous messageGo to next message
Helmut Neubauer is currently offline Helmut NeubauerFriend
Messages: 54
Registered: July 2009
Member
The about text of the about dialog is saved in the plugin.xml (have a
look at it). You can manipulate the plugin.xml for example with a
replace ANT task.

Helmut

Am 08.07.2010 01:52, schrieb Eric Jain:
> Is there a simple way to get a build number (${buildNumber} from the
> headless build) to show there?
Re: How to show build number in the About dialog? [message #545719 is a reply to message #545481] Thu, 08 July 2010 17:27 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

One way is to update that number on every build. Our .products tend to
have text that looks like:

<configurations>
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="4" />
<plugin id="org.eclipse.equinox.common" autoStart="true"
startLevel="2" />
<plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.equinox.p2.reconciler.dropins"
autoStart="true" startLevel="4" />
<plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true"
startLevel="1" />
<plugin id="org.eclipse.update.configurator" autoStart="true"
startLevel="3" />
<property name="eclipse.buildId" value="@qualifier@"/>
</configurations>

And then in our customTargets.xml:

<replace token="@qualifier@"
file="${buildDirectory.pluginDirectory}/legacy-eclipse.product "
value="${buildLabel}" />

<p2.publish.product flavor="tooling" repository="file:${p2.repo}"
productFile=" ${buildDirectory}/plugins/org.eclipse.e4.ui.examples.legacy. workbench/legacy-eclipse.product "
compress="true">....</p2.publish.product>

PW



--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: How to show build number in the About dialog? [message #545720 is a reply to message #545644] Thu, 08 July 2010 18:12 Go to previous message
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
Helmut Neubauer wrote on Thu, 08 July 2010 08:45
The about text of the about dialog is saved in the plugin.xml (have a
look at it). You can manipulate the plugin.xml for example with a
replace ANT task.


Thanks! I put something like "Build: {0}" in the aboutText, added an about.mappings file with "0=@build@" to the main plug-in, and added this to the build.xml:

<replace dir="${buildDirectory}" token="@build@" value="${buildNumber}">
  <include name="**/about.mappings" />
 </replace>


This does show the build number that's set in the build.xml, but how do I get hold of the product version?
Previous Topic:How to change project properties?
Next Topic:Redirecting to new Page
Goto Forum:
  


Current Time: Fri Apr 26 03:01:16 GMT 2024

Powered by FUDForum. Page generated in 0.04914 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top