[p2] Default repository [message #129540] |
Tue, 21 April 2009 17:01 |
Alex 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 |
Ben Vitale 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
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03144 seconds