[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[p2-dev] questions about profiles

I have some questions about p2 profiles

1) It seems from the code that a profile must always exist (i.e. there must be a non-null IProfile) for a p2 install/provision operation to happen. Correct?

2) If 1 is true, then when/where does Eclipse create a profile for p2 installation of features and plugins? Is it done by the platform build process (what's the profile id that's used?) Or is it done on first startup or at some later period?

3) For environments that are *not* eclipse...and perhaps not installed via p2 (e.g. bridge servlet), how are they to setup an initial profile that includes the initial configuration? I've stepped through the installer, and what it seems to do is to create a new profile with a profile id=to the target install location, and it sets the following install properties (c:/temp/installer is the install location):

{org.eclipse.equinox.p2.installFolder=C:/Temp/installer, org.eclipse.equinox.p2.cache=C:\Temp\installer, eclipse.p2.flavor=tooling, org.eclipse.equinox.p2.environments=osgi.os=win32,osgi.ws=win32,osgi.arch=x86}


But it seems to assume that *everything* is being installed...i.e. it doesn't respond well to trying to install an IU that was generated from a feature that has platform dependencies, because none of the platform dependencies are satisfied...i.e. there is no platform in the installFolder...and even if their was the newly created profile for c:/temp/installer doesn't know about it (see below for status returned from director.provision when using my IU generated from an ecf feature).


So I guess my major question is...how does one create the profile that includes the platform itself (for a platform other than Eclipse?). Is there an example somewhere of how/when this is done? 2 above is simply asking this question WRT Eclipse.

Thanksinadvance for patience,

Scott


[Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.webapp_feature.feature.group 1.0.0.200809091755] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.osgi.services/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.webapp_feature.feature.group 1.0.0.200809091755] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ecf.provider.filetransfer/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.webapp_feature.feature.group 1.0.0.200809091755] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.equinox.registry/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.webapp_feature.feature.group 1.0.0.200809091755] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ecf/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.webapp_feature.feature.group 1.0.0.200809091755] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.core.jobs/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.webapp_feature.feature.group 1.0.0.200809091755] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.osgi/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.webapp_feature.feature.group 1.0.0.200809091755] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.equinox.app/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.webapp_feature.feature.group 1.0.0.200809091755] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.equinox.common/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.webapp_feature.feature.group 1.0.0.200809091755] requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.ecf.filetransfer/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.sharedobject 1.3.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.server 1.3.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.irc 1.3.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.remoteservice 2.0.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.r_osgi 2.0.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.datashare 1.3.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.jmdns 2.0.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.xmpp 2.0.100.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.jslp 2.1.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.remoteservice 1.3.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.filetransfer.scp 2.0.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider 1.3.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.datashare 1.3.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.filetransfer.httpclient 2.1.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.presence 1.4.0.200809091755] requiredCapability: java.package/org.osgi.framework/1.3.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.server.generic 1.2.0.200809091755] requiredCapability: java.package/org.eclipse.equinox.app/1.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.filetransfer.scp 2.0.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.ecf.provider.filetransfer/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.bittorrent 0.3.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.ecf.provider.filetransfer/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.filetransfer.httpclient 2.1.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.ecf.provider.filetransfer/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.sharedobject 1.3.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.irc 1.3.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.remoteservice 2.0.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null,
Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.discovery 2.1.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.r_osgi 2.0.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.datashare 1.3.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.jmdns 2.0.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.discovery 2.1.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.xmpp 2.0.100.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.jslp 2.1.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.remoteservice 1.3.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.filetransfer.scp 2.0.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.server.generic 1.2.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider 1.3.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.datashare 1.3.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.presence.bot 1.2.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.bittorrent 0.3.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.filetransfer.httpclient 2.1.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.presence 1.4.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.equinox.common/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.sharedobject 1.3.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.ecf/0.0.0 null, Status ERROR: org.eclipse.equinox.p2.director code=0 Unsatisfied dependency: [org.eclipse.ecf.provider.irc 1.3.0.200809091755] requiredCapability: osgi.bundle/org.eclipse.ecf/0.0.0 ...