Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » P2 cant unpack plugin!?
P2 cant unpack plugin!? [message #559018] Wed, 15 September 2010 10:44 Go to next message
Morty is currently offline MortyFriend
Messages: 12
Registered: August 2010
Junior Member
Ive recently updated my plugin to take account of p2 installing. All is fine during installation, but i require my plugin jar to be unpacked during installation.

I believe this should be done in the p2 metadata, instead of the feature.xml (as it was previously).

Any ideas how to go about this??

Morty
Re: P2 cant unpack plugin!? [message #559027 is a reply to message #559018] Wed, 15 September 2010 11:08 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi,

Does your plugin have a Eclipse-BundleShape set to "dir" in its Manifest? It might help...
If it does not work you'll probably have to customize the script responsible of installing your bundle. See http://www.eclipse.org/forums/index.php?t=msg&goto=53931 9&

HTH,


--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Re: P2 cant unpack plugin!? [message #559047 is a reply to message #559027] Wed, 15 September 2010 12:50 Go to previous messageGo to next message
Morty is currently offline MortyFriend
Messages: 12
Registered: August 2010
Junior Member
Hi.Mickael,

I tried that Bundleshape thing - no luck.
I had a read at that post you also mentioned - can you advise where the p2.inf should go (in the feature/plugin, and should it be referenced in the contents/artifcacts files?)?

Morty
Re: P2 cant unpack plugin!? [message #559073 is a reply to message #559047] Wed, 15 September 2010 13:37 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

I never used p2.inf to customize our bundles, the best thing I can tell you is to have a look at http://wiki.eclipse.org/Equinox/p2/Customizing_Metadata
By the way, I think the BundleShape should be honored by p2 publisher which should generate automatically the metadata to unpack the bundle. This is worth opening a bug.


--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Re: P2 cant unpack plugin!? [message #559262 is a reply to message #559073] Thu, 16 September 2010 08:19 Go to previous messageGo to next message
Morty is currently offline MortyFriend
Messages: 12
Registered: August 2010
Junior Member
Turns out this can easily be done in the content.xml

Just set the following in the relevant touchpointData:

<instruction key='zipped'>
false
</instruction>

Is this content.xml documented anywhere, just out of curiousity - from my perspective there is a lot of rooting about in the dark!!

Morty
Re: P2 cant unpack plugin!? [message #606863 is a reply to message #559027] Wed, 15 September 2010 12:50 Go to previous messageGo to next message
Morty is currently offline MortyFriend
Messages: 12
Registered: August 2010
Junior Member
Hi.Mickael,

I tried that Bundleshape thing - no luck.
I had a read at that post you also mentioned - can you advise where the p2.inf should go (in the feature/plugin, and should it be referenced in the contents/artifcacts files?)?

Morty
Re: P2 cant unpack plugin!? [message #606866 is a reply to message #606863] Wed, 15 September 2010 13:37 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

I never used p2.inf to customize our bundles, the best thing I can tell you is to have a look at http://wiki.eclipse.org/Equinox/p2/Customizing_Metadata
By the way, I think the BundleShape should be honored by p2 publisher which should generate automatically the metadata to unpack the bundle. This is worth opening a bug.


--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Re: P2 cant unpack plugin!? [message #606872 is a reply to message #559073] Thu, 16 September 2010 08:19 Go to previous message
Morty is currently offline MortyFriend
Messages: 12
Registered: August 2010
Junior Member
Turns out this can easily be done in the content.xml

Just set the following in the relevant touchpointData:

<instruction key='zipped'>
false
</instruction>

Is this content.xml documented anywhere, just out of curiousity - from my perspective there is a lot of rooting about in the dark!!

Morty
Previous Topic:P2 cant unpack plugin!?
Next Topic:Problem with plug-in shipping: Can't run a 32bit (SWT) plugin on a 64bit machine
Goto Forum:
  


Current Time: Fri Apr 26 04:43:41 GMT 2024

Powered by FUDForum. Page generated in 0.03761 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top