Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » individual start level with feature based launch?
individual start level with feature based launch? [message #540447] Wed, 16 June 2010 08:17 Go to next message
Lars Fischer is currently offline Lars FischerFriend
Messages: 105
Registered: July 2009
Senior Member
Hello,

I'm playing with the new feature based target definition and feature
based launch introduced in 3.6.

I noticed that the feature based launch configuration has no option to
define an individual start level (for whole features or single bundles).
But I have a project, where I need to start bundles with an order.

Is there a way, how I can use a feature based launch with additional
individual start levels?

Regards,
Lars
Re: individual start level with feature based launch? [message #548604 is a reply to message #540447] Thu, 22 July 2010 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

Hello,

I have similar issue with feature based launch configurations. I would
like to set auto-start to true for some bundles. I have a p2.inf file
with markStarted(started: true); in the bundles I would like to
auto-start, but this does not help.

Any ideas?

Thanks,
Luzi

Lars Fischer schrieb:
> Hello,
>
> I'm playing with the new feature based target definition and feature
> based launch introduced in 3.6.
>
> I noticed that the feature based launch configuration has no option to
> define an individual start level (for whole features or single bundles).
> But I have a project, where I need to start bundles with an order.
>
> Is there a way, how I can use a feature based launch with additional
> individual start levels?
>
> Regards,
> Lars
>
Re: individual start level with feature based launch? [message #548679 is a reply to message #540447] Thu, 22 July 2010 16:12 Go to previous messageGo to next message
Curtis Windatt is currently offline Curtis WindattFriend
Messages: 166
Registered: July 2009
Senior Member
PDE does not allow you to customize start levels in feature based launch. The goal was to make it easier to make simple launch configurations. You can file an enhancement request, but the PDE team has no plans to add the functionality to feature based launch.

Similarly, PDE launches do not consider information in a p2.inf file. You may be able to get p2 to recognize the inf file by creating a custom configuration.ini to launch with on the configuration tab.
Re: individual start level with feature based launch? [message #548897 is a reply to message #548679] Fri, 23 July 2010 12:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

> PDE does not allow you to customize start levels in feature based
> launch. The goal was to make it easier to make simple launch
> configurations. You can file an enhancement request, but the PDE team
> has no plans to add the functionality to feature based launch.
>

Thanks for the clarification. I will file an enhancement request. For
me, it seems that you would like to customize start-level and auto-start
in the standard use case (e.g. a bundle with a DS component has to be
started). How does it work for the standard bundles such as
org.eclipse.osgi or simpleconfigurator which need a specific start level?

> Similarly, PDE launches do not consider information in a p2.inf file.
> You may be able to get p2 to recognize the inf file by creating a custom
> configuration.ini to launch with on the configuration tab.
May you explain this approach a little bit deeper?

Regards,
Luzi
Re: individual start level with feature based launch? [message #549414 is a reply to message #548897] Mon, 26 July 2010 15:19 Go to previous message
Curtis Windatt is currently offline Curtis WindattFriend
Messages: 166
Registered: July 2009
Senior Member
Ever since certain bundles needed specific start levels, the launch configs have had a bit of 'magic' code that would set the start levels for you. When we enabled setting specific start levels, the code stayed and is used to initialize the settings. The code is also used in the feature launch to set the start levels.

> Similarly, PDE launches do not consider information in a p2.inf file.
> You may be able to get p2 to recognize the inf file by creating a custom
> configuration.ini to launch with on the configuration tab.

I thought there was a configuration property you can set to specify the location of an advice file (p2.inf). However, I looked around but can't find any such property. This might make difficult to support p2.inf when self hosting as there isn't a way to tell p2 where to look.
Re: individual start level with feature based launch? [message #606300 is a reply to message #540447] Thu, 22 July 2010 12:52 Go to previous message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

Hello,

I have similar issue with feature based launch configurations. I would
like to set auto-start to true for some bundles. I have a p2.inf file
with markStarted(started: true); in the bundles I would like to
auto-start, but this does not help.

Any ideas?

Thanks,
Luzi

Lars Fischer schrieb:
> Hello,
>
> I'm playing with the new feature based target definition and feature
> based launch introduced in 3.6.
>
> I noticed that the feature based launch configuration has no option to
> define an individual start level (for whole features or single bundles).
> But I have a project, where I need to start bundles with an order.
>
> Is there a way, how I can use a feature based launch with additional
> individual start levels?
>
> Regards,
> Lars
>
Re: individual start level with feature based launch? [message #606302 is a reply to message #540447] Thu, 22 July 2010 16:12 Go to previous message
Curtis Windatt is currently offline Curtis WindattFriend
Messages: 166
Registered: July 2009
Senior Member
PDE does not allow you to customize start levels in feature based launch. The goal was to make it easier to make simple launch configurations. You can file an enhancement request, but the PDE team has no plans to add the functionality to feature based launch.

Similarly, PDE launches do not consider information in a p2.inf file. You may be able to get p2 to recognize the inf file by creating a custom configuration.ini to launch with on the configuration tab.
Re: individual start level with feature based launch? [message #606305 is a reply to message #548679] Fri, 23 July 2010 12:21 Go to previous message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

> PDE does not allow you to customize start levels in feature based
> launch. The goal was to make it easier to make simple launch
> configurations. You can file an enhancement request, but the PDE team
> has no plans to add the functionality to feature based launch.
>

Thanks for the clarification. I will file an enhancement request. For
me, it seems that you would like to customize start-level and auto-start
in the standard use case (e.g. a bundle with a DS component has to be
started). How does it work for the standard bundles such as
org.eclipse.osgi or simpleconfigurator which need a specific start level?

> Similarly, PDE launches do not consider information in a p2.inf file.
> You may be able to get p2 to recognize the inf file by creating a custom
> configuration.ini to launch with on the configuration tab.
May you explain this approach a little bit deeper?

Regards,
Luzi
Re: individual start level with feature based launch? [message #606319 is a reply to message #548897] Mon, 26 July 2010 15:19 Go to previous message
Curtis Windatt is currently offline Curtis WindattFriend
Messages: 166
Registered: July 2009
Senior Member
Ever since certain bundles needed specific start levels, the launch configs have had a bit of 'magic' code that would set the start levels for you. When we enabled setting specific start levels, the code stayed and is used to initialize the settings. The code is also used in the feature launch to set the start levels.

> Similarly, PDE launches do not consider information in a p2.inf file.
> You may be able to get p2 to recognize the inf file by creating a custom
> configuration.ini to launch with on the configuration tab.

I thought there was a configuration property you can set to specify the location of an advice file (p2.inf). However, I looked around but can't find any such property. This might make difficult to support p2.inf when self hosting as there isn't a way to tell p2 where to look.
Previous Topic:button Select
Next Topic:Toggle state
Goto Forum:
  


Current Time: Thu Apr 25 09:43:19 GMT 2024

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

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

Back to the top