Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Custom installer: multiple app. installation
Custom installer: multiple app. installation [message #561509] Mon, 05 July 2010 15:41
David ALEXANDRE is currently offline David ALEXANDRE
Messages: 7
Registered: September 2009
Junior Member
Hi, I did customize the p2 installer to install two (or more) rcp application together with a common p2 agent. Here is the structure in the filsystem:


Apps/
App A/
App B/
common/
p2/
plugins/
artifacts.xml


With p2/galileo I managed to acheive this after a few tweaks. Now with p2/helios everything is still working except for one thing:

Each application is able tu update itself through the common agent. The problems arise when I use:
Quote:
> AbstractRepositoryManager.getKnownRepositories()

to retreive update sites (which were used during installation).

After tracing it appears that while during initial installation current profile (SimpleProfileRegistery.self) is null (normal as bootstrap installer as not been installed). As current profile is null, RepositoryManagers preferences are saved for null profile, collocated with the profileRegistery folder. Then when each app is started it looks for those props in its profileDir/.data/.settings but there is no prefs there as it was saved for the null (SimpleProfileRegistery.self) profile.

Is there a way to resolve this problem or should I open a bug ? (Hope I am being clear :p)
Previous Topic:Custom installer: multiple app. (profiles) installation
Next Topic:cannot find packages for p2
Goto Forum:
  


Current Time: Sat Sep 20 16:05:15 GMT 2014

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

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