我正在尝试使用p2操作从eclipse卸载一个特性。
我为实现这一目标所做的一切:
OperationFactory of = new OperationFactory();
ProfileChangeOperation operation;
//toInstall = List<IVersionedId> only containing the feature
operation = of.createUninstallOperation(toInstall, repos, monitor);在那之后,我负责操作。
这个特性将被成功地卸载,但是作为这个特性的一部分的插件,不依赖于其他特性/插件,仍然会被安装。,这是不想要的行为。
我已经试着添加
org.eclipse.equinox.p2.ui.sdk.scheduler/gcOnStartup=true 我的产品属性。
我也试着跑
eclipse.exe -application org.eclipse.equinox.p2.garbagecollector.application -profile DefaultProfile没有效果。
我加了
-profileProperties org.eclipse.update.install.features=true我的程序论点。没有效果。
此外,我试图通过编程实现GC,这也没有任何效果。
知道怎么解决这个问题吗?P2安装包括所有依赖插件的功能。我期望它在卸载操作时的行为是相同的。
发布于 2016-06-21 15:45:04
这个问题只有在与tycho一起建造时才会发生。我将启动级别4的org.eclipse.update.configurator和自动启动= false添加到我的产品启动级别,从而修复了这个问题。
此外,我还为产品配置中的属性添加了值为false的org.eclipse.update.reconcile。
通过使用这种特殊的设置组合,卸载的插件将不再出现。
https://stackoverflow.com/questions/37943256
复制相似问题