|custom osgi JRE profile for RCP app? [message #653500]
||Thu, 10 February 2011 01:22
| Gergely Nagy
Registered: July 2009
For my RCP app, I'd need to override some JRE-packages in my bundle. |
I figure the best way is to use org.osgi.framework.system.packages, and switch off boot delegation.
Also it would be nice to keep related settings in my own java execution environment spec (.profile).
Now, I have my.profile, I'd just need to point to it from the config.ini, using osgi.java.profile -- however this takes absolute URL but I'd prefer a relative one, e.g besides the config file. Alternatively I'd like to bundle this file in another plugin - not sure if that's feasible (maybe only through adding a fragment to the system bundle?)
Looking at the code (Framework.java), it would
support relative paths, but only based on the framework dir
- on which I'm not sure I shoud to rely on.
It would be great if the properties supported substitutions like @config.dir (this seems only working for P2), generically; or even better to any system properties a'la ant.
Is there an easier, cleaner, safer way to achieve this?
Thanks for any hints in advance.
[Updated on: Thu, 10 February 2011 22:39]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01879 seconds