Skip to main content



      Home
Home » Archived » Buckminster » custom default start level or contig.ini
custom default start level or contig.ini [message #490957] Mon, 12 October 2009 11:13 Go to next message
Eclipse UserFriend
Hi

Using buckminster to create an update site and the p2 director for subsequent installation of a feature based product: Is there any way that would allow me configuring a different default start level (osgi.bundles.defaultStartLevel) other than 4?? Alternatively, can I somehow specify my completely own config.ini?

Everything I tried so far did not work (in particular ticking 'own' config ini in the product definition), the last thing I can think of is writing my own touchpoint allowing installation my complete customized ...

Thanks & Regards
Alex
Re: custom default start level or contig.ini [message #490979 is a reply to message #490957] Mon, 12 October 2009 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi Alex,
Start levels should be configured using the product definition file. The publisher should pick that up and propagate it
correctly to the p2 repository.

Regards,
Thomas Hallgren

On 10/12/2009 05:13 PM, Alex Chatziparaskewas wrote:
> Hi
>
> Using buckminster to create an update site and the p2 director for
> subsequent installation of a feature based product: Is there any way
> that would allow me configuring a different default start level
> (osgi.bundles.defaultStartLevel) other than 4?? Alternatively, can I
> somehow specify my completely own config.ini?
>
> Everything I tried so far did not work (in particular ticking 'own'
> config ini in the product definition), the last thing I can think of is
> writing my own touchpoint allowing installation my complete customized ...
>
> Thanks & Regards
> Alex
Re: custom default start level or contig.ini [message #491026 is a reply to message #490979] Mon, 12 October 2009 16:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi Thomas

The problem is not the start level of the individual plugins - that is a different issue. The problem is the osgi.bundles.defaultStartLevel, which is always set to 4. The best thing I have found so far in setting this is to set - as part of the product defintion - the property as part of the configurations element:

...
<configurations>
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="5" />
<plugin id="test.plugin2" autoStart="true" startLevel="4" />
<property name="osgi.bundles.defaultStartLevel" value="6" />
<property name="org.eclipse.update.reconcile" value="false" />
</configurations>
...

However, this did not work.

Regards
Alex
Re: custom default start level or contig.ini [message #491396 is a reply to message #491026] Wed, 14 October 2009 08:44 Go to previous message
Eclipse UserFriend
Hi

Found the solution myself: The solution is to specify the desired default start level as a vmarg. It seems like this takes precedents over the settings generated into the config.ini.

Regards
Alex

PS: Suprisingly, using the approach of the previous post, the desired default start level seems to be reflected in the repository meta data. However, it somehow does not make it into the config.ini. Maybe this is an 'Eclipse' issue.
Previous Topic:Ant builder in headless mode
Next Topic:Resolution of svn:externals
Goto Forum:
  


Current Time: Fri Jul 18 01:28:30 EDT 2025

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

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

Back to the top