How to unzip an archive during Eclipse plugin installation using p2 touchpoint instructions
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.t开发者_开发百科ouchpoint.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?
- Check "Unpack the plugin archive after the installation" on "Installed plugins" tab of the feature install unit.
- Move the unzip action to the install phase to the configure phase as
Kane mentioned.
That worked for me
精彩评论