Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » P2 Director Application and bundles.info file
P2 Director Application and bundles.info file [message #113722] Wed, 09 July 2008 12:39 Go to next message
Anthony Juckel is currently offline Anthony JuckelFriend
Messages: 19
Registered: July 2009
Junior Member
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 #113914 is a reply to message #113722] Thu, 10 July 2008 12:55 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
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?

"Anthony W. Juckel" <ajuckel@gmail.com> wrote in message
news:g52bh8$2kp$1@build.eclipse.org...
> 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] Fri, 11 July 2008 01:27 Go to previous message
Anthony Juckel is currently offline Anthony JuckelFriend
Messages: 19
Registered: July 2009
Junior Member
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.
Previous Topic:Mirrored Shared Bundle Pool
Next Topic:IU definitions for different flavours of Eclipse
Goto Forum:
  


Current Time: Fri Apr 19 03:55:35 GMT 2024

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

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

Back to the top