Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Using links file with p2
Using links file with p2 [message #120865] Fri, 07 November 2008 10:40 Go to next message
Kiran Kumar is currently offline Kiran KumarFriend
Messages: 8
Registered: July 2009
Junior Member
I am trying to add a feature to Eclipse 3.4 using links mechanism.
The folder I am trying to add is having a feature with two different
versions. Similarly the plug-ins folder also has two sets of same
plug-ins with different versions corresponding to the two features (same
feature of two different versions).
On starting Eclipse 3.4, with a link file in links folder pointing to
the above mentioned setup, latest version of the feature is getting
loaded, but some of the plug-ins of older version are getting loaded.
The set of plug-ins getting loaded with older version is not consistent
every time I restart eclipse with clean option.
The same setup works fine with older version of Eclipse.
Is the setup mentioned above a valid one in Eclipse 3.4? Can I
explicitly specify Eclipse to load a certain version of plug-ins?
Re: Using links file with p2 [message #120889 is a reply to message #120865] Fri, 07 November 2008 19:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nickboldt+eclipse+newsgroup.gmail.com

You'll want to move your .link files into dropins/.

http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropins

Kiran Kumar wrote:
> I am trying to add a feature to Eclipse 3.4 using links mechanism.
> The folder I am trying to add is having a feature with two different
> versions. Similarly the plug-ins folder also has two sets of same
> plug-ins with different versions corresponding to the two features (same
> feature of two different versions).
> On starting Eclipse 3.4, with a link file in links folder pointing to
> the above mentioned setup, latest version of the feature is getting
> loaded, but some of the plug-ins of older version are getting loaded.
> The set of plug-ins getting loaded with older version is not consistent
> every time I restart eclipse with clean option.
> The same setup works fine with older version of Eclipse.
> Is the setup mentioned above a valid one in Eclipse 3.4? Can I
> explicitly specify Eclipse to load a certain version of plug-ins?
>

--
Nick Boldt :: http://wiki.eclipse.org/User:Nickb
Re: Using links file with p2 [message #120943 is a reply to message #120889] Mon, 10 November 2008 05:34 Go to previous messageGo to next message
Kiran Kumar is currently offline Kiran KumarFriend
Messages: 8
Registered: July 2009
Junior Member
I've tried using dropins also, but had no luck. Even with the dropins
folder also the behavior is same.
Re: Using links file with p2 [message #120965 is a reply to message #120943] Mon, 10 November 2008 14:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nickboldt+eclipse+newsgroup.gmail.com

What's in your dropins/*.link files? Can you post a sample?

Can you remove the old versions, either by deleting/moving them out of
eclipse/plugins and eclipse/features, or by removing the .link file that
references them, or by using p2's Help > Software Updates... Intalled
Software (tab) > Revert Configuration... (button) ?

Have you tried restarting Eclipse with the -clean flag? Or debugging
using the osgi console (start with the -console flag) ?

http://wiki.eclipse.org/IRC_FAQ#How_do_I_debug_Eclipse.3F_Ho w_can_I_see_what_plugins_are_being_started.3F_How_do_I_start _the_OSGi_console.3F

Kiran Kumar wrote:
> I've tried using dropins also, but had no luck. Even with the dropins
> folder also the behavior is same.
>

--
Nick Boldt :: http://wiki.eclipse.org/User:Nickb
Re: Using links file with p2 [message #121002 is a reply to message #120965] Tue, 11 November 2008 05:21 Go to previous messageGo to next message
Kiran Kumar is currently offline Kiran KumarFriend
Messages: 8
Registered: July 2009
Junior Member
The link file contains the following content:

--------------------------------
//Point to the path variable the parent location of eclipse folder
//which hosts plugins and features
path=D:/ganymede/addons
--------------------------------

And the add-ons folder contains the plugins and features in the following
structure.

addons
+---eclipse
+----features (has a feature with two versions)
+----plugins (has all the plug-ins of two versions)

When I tried having plug-ins of only one version in the linked folder,
everything works fine.
Re: Using links file with p2 [message #121038 is a reply to message #121002] Tue, 11 November 2008 15:18 Go to previous message
Eclipse UserFriend
Originally posted by: nickboldt+eclipse+newsgroup.gmail.com

If this workaround isn't sufficient and you feel that p2 is selecting
the WRONG version of a plugin (generally, it's the latest / newest),
please file a bug in RT.Equinox.p2.

One way to pick a specific version would be to uninstall all versions,
then pick one by hand to install. Of course if you're using .link files
you don't get this granularity -- p2 does its own thing when using the
old .link approach.

Kiran Kumar wrote:
> The link file contains the following content:
>
> --------------------------------
> //Point to the path variable the parent location of eclipse folder
> //which hosts plugins and features
> path=D:/ganymede/addons
> --------------------------------
>
> And the add-ons folder contains the plugins and features in the
> following structure.
>
> addons
> +---eclipse
> +----features (has a feature with two versions)
> +----plugins (has all the plug-ins of two versions)
>
> When I tried having plug-ins of only one version in the linked folder,
> everything works fine.
>
>

--
Nick Boldt :: http://wiki.eclipse.org/User:Nickb
Previous Topic:P2 profileRegistry gigantic size
Next Topic:How to obtain debug output from p2.generator ant task?
Goto Forum:
  


Current Time: Tue Mar 19 11:34:41 GMT 2024

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

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

Back to the top