Skip to main content

Posts

Showing posts with the label osgi

eclipse RCP product - custom config.ini

My eclipse RCP (3.7) application is currently in a good shape, in which product can be exported successfully for multiple platforms and runs just fine. What I need is to change some properties in config.ini file, in particular osgi.instance.area.default and osgi.configuration.area . In the configuration tab of eclipse product editor, I check Use an existing config.ini file and select the config.ini I created inside the same project hosting the product (and the core feature) definition. To create the custom config.ini, I just took the one generated in a previous export, and added above properties. What happens is that after exporting the product, config.ini is still auto-generated in configuration/config.ini , without my edits. What am I missing? This is how my product definition looks like: <?xml version="1.0" encoding="UTF-8"?> <?pde version="3.5"?> <product name="MyApp" id="it.myapp.product" application=

Convert file located in OSGi Bundle to IFile

I have an installed bundle (org.osgi.framework.Bundle) in my running eclipse. There is a file in this bundle. I have the path to the file and i can represent this file by an URL (java.net.URL) by using URL url = bundle.getEntry("/folder/file") . Is there a way to get a handle of this file of type IFile (org.eclipse.core.resources.IFile)? I need a reference of the file located in the installed osgi bundle of type IFile. But I don't want to copy the file temporary on my local disk (like workspace). Thanks in advance!