4

我目前的尝试不起作用:在 my_plugin/META-INF/p2.inf 中,我有:

instructions.install = unzip(source:${artifact}/browser.zip,target:${artifact});

安装过程中没有出现错误,但 browser.zip 存档未解压缩。

我究竟做错了什么?

干杯。

编辑:更多信息:工作区日志文件中实际上存在错误:

!ENTRY org.eclipse.equinox.p2.touchpoint.natives 4 0 2011-04-22 23:58:20.967
!MESSAGE org.eclipse.equinox.internal.p2.touchpoint.natives.actions.UnzipAction the files to be unzipped is not here

!ENTRY org.eclipse.equinox.p2.touchpoint.natives 4 0 2011-04-22 23:58:20.968
!MESSAGE org.eclipse.equinox.internal.p2.touchpoint.natives.actions.UnzipAction error unzipping zipfile: /Users/admin/sandbox/eclipse-dev/Eclipse.app/Contents/MacOS/osgi.bundle,com.myplugin.test,1.0.0.201104211649/browser.zipdestination: osgi.bundle,com.myplugin.test,1.0.0.201104211649

如何在 unzip 命令中正确引用我的插件的路径?

4

1 回答 1

1
  • 在功能安装单元的“已安装插件”选项卡上选中“安装后解压插件存档”。
  • 正如Kane 所说,将解压缩操作移动到安装阶段到配置阶段。

这对我有用

于 2018-06-05T15:41:44.563 回答