Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Custom installer: multiple app. (profiles) installation (Repositories preferences not saved per profiles. getKnownRepositories fail/empty)
Custom installer: multiple app. (profiles) installation [message #544820] Mon, 05 July 2010 11: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 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 Razz)

[Updated on: Mon, 05 July 2010 12:17]

Report message to a moderator

Previous Topic:Copying across executables as part of P2 installation
Next Topic:Custom installer: multiple app. installation
Goto Forum:
  


Current Time: Thu Aug 21 20:14:08 EDT 2014

Powered by FUDForum. Page generated in 0.01383 seconds