Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Meaning of -shared location in org.eclipse.equinox.p2.director
Meaning of -shared location in org.eclipse.equinox.p2.director [message #882494] Wed, 06 June 2012 15:11
Mohammed Ajmal is currently offline Mohammed AjmalFriend
Messages: 6
Registered: July 2009
Junior Member
Hi again,

I'm hoping someone can help me out with this issue. I'm trying to use the org.eclipse.equinox.p2.director application to install features from a local update site. The product that I am installing the feature into is itself installed via Installation Manager (so it has a Shared directory of features/plugins).

eclipsec.exe -noSplash -application org.eclipse.equinox.p2.director -destination "D:\tpftoolkit_v40x_IM" -repository file://D:\runtime-ToolkitV40x\.metadata\.
plugins\com.ibm.tpf.configuration\.temp\site\site.xml -installIU ent.woohoo.feature.feature.group -bundlepool "C:\Program Files (x86)\IBM\IBMIMShared"
Installing ent.woohoo.feature.feature.group 1.0.0.201206051457.
Operation completed in 6506 ms.

This install works but when I look at the configuration, the feature is NOT installed into the shared location:

Id: ent.woohoo, Version: 1.0.0.201206051457, Location: reference:file:p2/cic.p2.cache.location/plugins/ent.woohoo_1.0.0.201206051457.jar

I think I need to use the -shared parameter but I don't understand how to use it. All of my attempts at adding this new parameter end with the following error:

eclipsec.exe -noSplash -application org.eclipse.equinox.p2.director -destination "D:\tpftoolkit_v40x_IM" -repository file://D:\runtime-ToolkitV40x\.metadata\.
plugins\com.ibm.tpf.configuration\.temp\site\site.xml -shared "C:\Program Files (x86)\IBM\IBMIMShared\plugins" -installIU ent.woohoo.feature.feature.group -bundlepool "C:\Pro
gram Files (x86)\IBM\IBMIMShared"
Installing ent.woohoo.feature.feature.group 1.0.0.201206051457.
Installation failed.
Cannot complete the install because one or more required items could not be found.
Software currently installed: Feature 1.0.0.201206051457 (ent.woohoo.feature.feature.group 1.0.0.201206051457)
Missing requirement: Woohoo 1.0.0.201206051457 (ent.woohoo 1.0.0.201206051457) requires 'bundle org.eclipse.ui 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Feature 1.0.0.201206051457 (ent.woohoo.feature.feature.group 1.0.0.201206051457)
To: ent.woohoo [1.0.0.201206051457]
Application failed, log file location: D:\tpftoolkit_v40x_IM\configuration\1338930018732.log

Note that the only difference between the command that works and the this command is the addition of -shared. It complains about a missing org.eclipse.ui bundle, but this bundle does exist in the shared location. Somehow, the first command "finds" this bundle, but the second with the -shared does not...

Does anyone know what I'm doing wrong here?
Previous Topic:"site.xml" in update site URL
Next Topic:simpleconfigurator not starting bundle
Goto Forum:
  


Current Time: Thu Nov 27 09:55:44 GMT 2014

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

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