[p2] use p2.inf to configure bundles within feature [message #480756] |
Tue, 18 August 2009 12:35 |
Eclipse User |
|
|
|
Originally posted by: luzi.anderegg.ergon.ch
I have a feature containing 2 bundles and would like to set the start
level for the 2 bundles. How can I do that? Just using
instructions.configure=\
org.eclipse.equinox.p2.touchpoint.eclipse.setStartLevel(star tLevel: 4);\
org.eclipse.equinox.p2.touchpoint.eclipse.markStarted(starte d: true);
does not work. What am I missing?
Thanks,
Luzi
|
|
|
|
Re: [p2] use p2.inf to configure bundles within feature [message #480799 is a reply to message #480789] |
Tue, 18 August 2009 14:18 |
Eclipse User |
|
|
|
Originally posted by: luzi.anderegg.ergon.ch
No, I would like to have the p2.inf within the feature. We want to reuse
the bundle in different scenarios. Thus, I cannot put the p2.inf into
the bundle. If I put the p2.inf in the META-INF directory of the bundle,
then I can set the start level as described below.
> Is the p2.inf co-located with the bundles?
> -Simon
>
> "Luzi Anderegg" <luzi.anderegg@ergon.ch> wrote in message
> news:h6e76e$k6h$1@build.eclipse.org...
>> I have a feature containing 2 bundles and would like to set the start level
>> for the 2 bundles. How can I do that? Just using
>>
>> instructions.configure=\
>> org.eclipse.equinox.p2.touchpoint.eclipse.setStartLevel(star tLevel: 4);\
>> org.eclipse.equinox.p2.touchpoint.eclipse.markStarted(starte d: true);
>>
>> does not work. What am I missing?
>>
>> Thanks,
>> Luzi
>
>
|
|
|
|
Re: [p2] use p2.inf to configure bundles within feature [message #481033 is a reply to message #480805] |
Wed, 19 August 2009 12:01 |
Eclipse User |
|
|
|
Originally posted by: luzi.anderegg.ergon.ch
Thanks for the info. I tried with your proposal, but it did not work.
The bundle is installed, but my settings are not taken into
consideration. Moreover, the bundle does not show up in the
bundles.info. The IU xml looks ok for me but my experience with IU xml's
is very limited. Any tipps, how I can debug the installation procedure
or verify the IU xml?
Luzi
|
|
|
|
Re: [p2] use p2.inf to configure bundles within feature [message #481304 is a reply to message #481096] |
Thu, 20 August 2009 12:46 |
Eclipse User |
|
|
|
Originally posted by: luzi.anderegg.ergon.ch
The instructions below let the bundle appear in my product.
Thanks Simon for your help!
Simon Kaegi wrote:
> "Luzi Anderegg" <luzi.anderegg@ergon.ch> wrote in message
> news:h6gpjh$3cq$1@build.eclipse.org...
>> Thanks for the info. I tried with your proposal, but it did not work. The
>> bundle is installed, but my settings are not taken into consideration.
>> Moreover, the bundle does not show up in the bundles.info.
>
> Doh. We of course still need the fragment to provide install and uninstall
> instructions
>
> e.g.
> units.1.instructions.install =
> org.eclipse.equinox.p2.touchpoint.eclipse.installBundle(bund le:${artifact})
> units.1.instructions.uninstall =
> org.eclipse.equinox.p2.touchpoint.eclipse.uninstallBundle(bu ndle:${artifact})
>
> units.2.instructions.install =
> org.eclipse.equinox.p2.touchpoint.eclipse.installBundle(bund le:${artifact})
> units.2.instructions.uninstall =
> org.eclipse.equinox.p2.touchpoint.eclipse.uninstallBundle(bu ndle:${artifact})
>
>
> The IU xml looks ok for me but my experience with IU xml's
>> is very limited. Any tipps, how I can debug the installation procedure or
>> verify the IU xml?
>
> You can post the IUs that were generated for the feature, two bundles, and
> two fragments and I (or others) can take a look.
> -Simon
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04140 seconds