Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » plugin name format
plugin name format [message #459514] Mon, 04 December 2006 06:53 Go to next message
Eclipse UserFriend
Originally posted by: bhupendra229.gmail.com

Hi,

I encountered some problem with plugin name. The RCP application I developed works when the jar created with eclipse is not renamed. The jar format is {$pluginname}_$version

But if I rename the jar to {$pluginname}-$version then the RCP exported as product doesn't work.

any clue why? or I am missing some basic knowledge.
Re: plugin name format [message #459543 is a reply to message #459514] Mon, 04 December 2006 19:36 Go to previous messageGo to next message
Eclipse UserFriend
Yeah, at the moment the format explicitly expects a _ in the name. You can work around it if you name your bundles without using the standard format, you have to list them in the osgi.bundles of the config.ini as explicitly named Jars.

So, solution: don't rename the Jars :-)

Alex.
Re: plugin name format [message #459650 is a reply to message #459543] Tue, 05 December 2006 09:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bhupendra229.gmail.com

Hi Alex,

That is so helpful.
Thanks a lot for your response.


It does work, but for one plugin org.eclipse.osgi_<version>.jar . This plugin is not part of osgi.bundles so don't know where to rename this?
If you know then please let me know.

Thanks in advance
Bhupendra
Re: plugin name format [message #459651 is a reply to message #459650] Tue, 05 December 2006 10:06 Go to previous messageGo to next message
Eclipse UserFriend
This is the framework Jar, so it's a pseudo-bundle (and in any case, not loaded by the normal bundle loading mechanism; that's the thing that implements the bundle loading mechanism :-)

You can specify its name/location with the osgi.framework or similar property if you want to rename it to something else.

I believe that the names are read by the update.configurator; if you patched that, you might be able to call bundles whatever you wanted :-)

Alex.
Re: plugin name format [message #459707 is a reply to message #459651] Wed, 06 December 2006 10:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bhupendra229.gmail.com

Thanks Alex,

The reason why it all started was because my project needds to be built and distributed with maven. And all eclipse plugins in maven repository have name as <name>-<version>.jar

I had two options- configure eclipse RCP to use maven jar format or modify the maven distribution to rename the jars according to eclipse format.

Thanks again
Re: plugin name format [message #459710 is a reply to message #459707] Wed, 06 December 2006 12:14 Go to previous messageGo to next message
Eclipse UserFriend
It's a problem, isn't it?

In my automated build presentation, I used Maven to do this too. My trick was to set up symlinks in Eclipse after install (I had a maven1 target to do this :-) such that foo-bar was symlinked to foo_bar.

Of course, that worked because I was on a Unix system, but you could do the same post-maven build if you wanted to.

I never really got into Maven2, so I don't have an example for that. But you can check out the source code for the Maven1 stuff via http://www.rcpapps.org

Alex.
Re: plugin name format [message #459712 is a reply to message #459710] Wed, 06 December 2006 12:40 Go to previous message
Eclipse UserFriend
Originally posted by: bhupendra229.gmail.com

yes, I did find the required configuration.
I am using maven 2 and in assembly descriptor I can change the artifact name. So it works :)

<outputFileNameMapping>${artifactId}_${version}.${extension} </outputFileNameMapping>
Previous Topic:Starting help resource in help view.
Next Topic:enable/disable actions in menu
Goto Forum:
  


Current Time: Thu Mar 27 13:19:43 EDT 2025

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

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

Back to the top