我有一个已经过时的片段,我想创建一个卸载片段的更新。我猜想正确的方法是将片段视为一个包,所以我将以下内容添加到包含安装程序操作的插件的p2.inf中:
instructions.install = \
uninstallBundle(bundle:com.iar.cdt.arm.debugger.drivers.win32); \
uninstallBundle(bundle:com.iar.ide.debugger.kernel.win32)
instructions.install.import \
org.eclipse.equinox.p2.touchpoint.eclipse.uninstallBundle
但正如安装即将完成,我收到以下错误:
An error occurred while installing the items
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.iar.installer.arm 0.12.0.v201110251455, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction).
No matching artifact found for: com.iar.cdt.arm.debugger.drivers.win32.
No matching artifact found for: com.iar.cdt.arm.debugger.drivers.win32.
我是否需要卸载整个主机插件?
答案 0 :(得分:1)
试试这个
artifacts.0.classifier=osgi.bundle
artifacts.0.name=com.iar.cdt.arm.debugger.drivers.win32
artifacts.0.version=<the version of your fragment>
instructions.install = \
uninstallBundle(bundle:${artifact})