Skip to main content



      Home
Home » Eclipse Projects » Equinox » Is there a way to set osgi.configuration.area programmatically at startup?
Is there a way to set osgi.configuration.area programmatically at startup? [message #115264] Fri, 25 July 2008 03:25 Go to next message
Eclipse UserFriend
Originally posted by: a.heikhaus.cenit.de

Hi,

one of our customer has the following requirement: He wants to provide all important informations (also the URL for the configuration area) for his rcp-app in windows-registry. Background is, that he can change and distribute this information very simple and fast via Active Directory. Therefore I want to know if it is possible to set the configuration area programmatically? And if possible: How to do that?

Thanks

André
Re: Is there a way to set osgi.configuration.area programmatically at startup? [message #115316 is a reply to message #115264] Fri, 25 July 2008 05:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Heikhaus schrieb:
> one of our customer has the following requirement: He wants to
> provide all important informations (also the URL for the
> configuration area) for his rcp-app in windows-registry.

How do you read the Windows registry and pass it to your RCP app? If you
are using a custom launcher you could simply pass a property to the VM
when starting your RCP app.

-Dosgi.configuration.area=<your-registry-value>

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Is there a way to set osgi.configuration.area programmatically [message #115471 is a reply to message #115316] Mon, 28 July 2008 07:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: a.heikhaus.cenit.de

&gt; How do you read the Windows registry and pass it to
&gt; your RCP app? If you
&gt; are using a custom launcher you could simply pass a
&gt; property to the VM
&gt; when starting your RCP app.

Thanks for your response. But I think I can not do it like you told me: I need to set that dynamically before launching my rcp - app. What´s your understanding of "Custom launcher"? For me a custom launcher is a custom configuration of launch arguments in my ECLIPSE IDE to start my rcp - app. In that context I have no chance to integrate programmatically. (e.g. reading the Windows registry) Or may be I have?

For the moment it seems to me that the only way to handle my aims is to start a script that reads the Windows registry, then sets the .ini-file and finally calls my rcp-app-.exe.
Re: Is there a way to set osgi.configuration.area programmatically [message #115484 is a reply to message #115471] Mon, 28 July 2008 08:09 Go to previous message
Eclipse UserFriend
> What´s your understanding of "Custom launcher"?

I was thinking of a modified rcp-app.exe which would read the registry
and passes the value as a command line argument to Eclipse when starting it.

The Eclipse launcher source code (the .exe file) is available in CVS
too. You can modify it to read the registry and use the modified
launcher.exe.

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox .launcher/

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Previous Topic:Eclipse Equinox XSLT transformations, how?
Next Topic:HTTP Status 404 - ProxyServlet: /organizer
Goto Forum:
  


Current Time: Sat May 10 00:10:44 EDT 2025

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

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

Back to the top