Re: [equinox-dev] Migrating Eclipse earlyStartup extenstions to OSGI ds services

2018-04-19 Thread Lars Vogel
Thanks, Neil. That works nicely. On Thu, Apr 19, 2018 at 1:56 PM, Neil Bartlett wrote: > It looks like the system bundle publishes a service of type > org.eclipse.osgi.service.environment.EnvironmentInfo. Bind to this in your > DS component, and then you can get the command

[equinox-dev] Migrating Eclipse earlyStartup extenstions to OSGI ds services

2018-04-19 Thread Lars Vogel
Friends of OSGi, I'm currently migrating a few earlyStartup actions to OSGI DS services in an Eclipse RCP application. One of the OSGi services needs to have access to the command line arguments. For the earlyStartup extension, this was solved by putting the relevant argument into a system

Re: [equinox-dev] Migrating Eclipse earlyStartup extenstions to OSGI ds services

2018-04-19 Thread Neil Bartlett
It looks like the system bundle publishes a service of type org.eclipse.osgi.service.environment.EnvironmentInfo. Bind to this in your DS component, and then you can get the command line args along with various other goodies. I expect this will be available in any Eclipse application. I should