如何在 Eclipse 插件安装过程中使用 p2 接触点指令解压存档
我当前的尝试不起作用:在 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
如何在解压缩命令中正确引用插件的路径?
My current attempt is not working: in my_plugin/META-INF/p2.inf, I have:
instructions.install = unzip(source:${artifact}/browser.zip,target:${artifact});
No error occurs during installation, but the browser.zip archive is not unzipped.
What am I doing wrong?
Cheers.
Edit: more info: there actually are errors in the workspace log file:
!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
How do I properly reference the path to my plugin in the unzip command?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
凯恩提到。
这对我有用
Kane mentioned.
That worked for me