Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » [p2] Default repository
[p2] Default repository [message #129540] Tue, 21 April 2009 17:01 Go to next message
Alex is currently offline AlexFriend
Messages: 5
Registered: July 2009
Junior Member
Hello,

I'm doing p2-ized product as Andrew Niefer described
( http://aniefer.blogspot.com/2008/06/example-headless-build-f or-rcp-product.html)

The point is I want to add default update site. Is it possible on build
time?

The first thing I came up with is Eclipse Touchpoints and
addRepositoryLocation
( http://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instruc tions) but it
fails.
First of all:
In Eclipse 3.4, touchpoint advice files were only supported in bundles. An
advice file placed in the bundle at META-INF/p2.inf would be processed at
PDE build time to add the instructions to the installable unit
corresponding to the bundle.

OK, let it be META-INF.
So I've placed p2.inf in META-INF folder of my bundle and nothing happend.
instructions.configure=\
addRepository(location:http${#58}//localhost/,type:0,name:Re poName,enabled:true);\
addRepository(location:http${#58}//localhost/,type:1,name:Re poName,enabled:true);

So, the question is How can I add default repository in this case?
I'll appreciate any help.

Thanks in advance,
Alex
Re: [p2] Default repository [message #129552 is a reply to message #129540] Tue, 21 April 2009 18:43 Go to previous messageGo to next message
Ben Vitale is currently offline Ben VitaleFriend
Messages: 247
Registered: July 2009
Senior Member
If you are on the 3.4 stream, you could use the trick they used to
achieve this in Ganymede.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=224278#c15

Basically you throw a couple of pref files in the .settings directory of
your installed product.

Hope that helps.

-Ben

Alex wrote:
> Hello,
>
> I'm doing p2-ized product as Andrew Niefer described
> ( http://aniefer.blogspot.com/2008/06/example-headless-build-f or-rcp-product.html)
>
>
> The point is I want to add default update site. Is it possible on build
> time?
>
> The first thing I came up with is Eclipse Touchpoints and
> addRepositoryLocation
> ( http://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instruc tions) but
> it fails.
> First of all:
> In Eclipse 3.4, touchpoint advice files were only supported in bundles.
> An advice file placed in the bundle at META-INF/p2.inf would be
> processed at PDE build time to add the instructions to the installable
> unit corresponding to the bundle.
>
> OK, let it be META-INF.
> So I've placed p2.inf in META-INF folder of my bundle and nothing happend.
> instructions.configure=\
> addRepository(location:http${#58}//localhost/,type:0,name:Re poName,enabled:true);\
>
> addRepository(location:http${#58}//localhost/,type:1,name:Re poName,enabled:true);
>
>
> So, the question is How can I add default repository in this case?
> I'll appreciate any help.
>
> Thanks in advance,
> Alex
>
Re: [p2] Default repository [message #129810 is a reply to message #129552] Thu, 23 April 2009 14:36 Go to previous message
Alex is currently offline AlexFriend
Messages: 5
Registered: July 2009
Junior Member
Thanks Ben,

It's exactly what I was looking for.
By the way, addRepository touchpoint was added in 3.5M4 so yes, it's look
like the only way to achieve this.
Previous Topic:Writing custom P2 touchpoints
Next Topic:passing artifact location to jvm argument
Goto Forum:
  


Current Time: Thu Mar 28 13:05:54 GMT 2024

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

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

Back to the top