P2 Director Application and bundles.info file [message #113722] |
Wed, 09 July 2008 08:39  |
Eclipse User |
|
|
|
I've recently compiled a source build of Eclipse 3.4 on
OpenSolaris/GTK/x86, but I'm having problems getting it up and running
with the simpleconfigurator. I've used the P2 metadata generator as
described on the wiki to generate the metadata for my plugins, then used
the director application to install the SDK, but the installed version
is still trying to use org.eclipse.update.configurator rather than
org.eclipse.equinox.simpleconfigurator, and there is no
simpleconfigurator directory in the configuration area of the install.
Is there some argument for the director app that I missed on the wiki
which tells it to generate the simpleconfigurator bundles.info file? Or
do I have to run a separate app (perhaps the frameworkadmin app?) to
generate this file? How is this file generated for the binary builds of
Eclipse 3.4?
|
|
|
|
Re: P2 Director Application and bundles.info file [message #113938 is a reply to message #113914] |
Thu, 10 July 2008 21:27  |
Eclipse User |
|
|
|
Pascal Rapicault wrote:
> When you generate the metadata for the SDK, do you have all the plug-ins of
> the SDK available?
> Also do you have a config.ini and an eclipse.ini when you generate?
>
I tried to respond via the web gateway earlier today, but that message
apparently hasn't gone through yet. If it winds up here later, I
apologize for the duplication.
I started with compiling the source build for the Eclipse 3.4 SDK. I
had to modify the build scripts for the launcher and SWT, since this
isn't a supported platform, but once I was finished, Eclipse would
start. I then noticed that the p2 update manager wasn't working, so
checked on the config. My build was using
org.eclipse.update.configurator, rather than the new
equinox.simpleconfigurator, and I had no p2 data.
I then used the generator app, which gave me the artifacts.jar and
content.jar which listed all 300+ bundles in my SDK source build. I
then used the generator app to install these bundles into a new
location. The new location did have an eclipse.ini, config.ini and a
proper p2 directory with a profile, but config.ini was still referencing
org.eclipse.update.configurator. Also, this build wouldn't run (I
didn't think to check whether it included the update.configurator
bundle, but that's not what I want anyway).
I found that I need the bundles.info file for the simpleconfigurator to
work, and I found the code in simpleconfigurator.manipulator which
writes that data out to file, but I'm not sure how to trigger that from
the director application. By mucking at the OSGi console for the
director application, I can see that it is loading
simpleconfigurator.manipulator, but none of the services from that
bundle are being referenced. I'm assuming that I'm missing some
configuration flag which tells it to translate the info from the
original config.ini osgi.bundles property into the new bundles.info
file, but perhaps this is something that has to be bootstrapped manually.
|
|
|
Powered by
FUDForum. Page generated in 0.08632 seconds