Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Setting osgi.configuration.area in launcher.ini
Setting osgi.configuration.area in launcher.ini [message #130728] Tue, 05 May 2009 21:16 Go to next message
Jacob Northey is currently offline Jacob NortheyFriend
Messages: 3
Registered: July 2009
Junior Member
Our product contains two applications one RCP and one headless. The
applications are combined in one installation. Each application launcher
ini file sets the configuration path (i.e. -configuration
configuration/rcp for the rcp.exe). The problem is that this path is
relative to the current working directory and running the launchers in a
directory outside of the install area fails. Is it possible to set the
osgi.configuration.area to a path relative to the install area?

The file structure is:

plugins/
...
core/
plugins/
...
ui/
plugins/
...
configuration/
rcp/
org.eclipse.update/
platform.xml
config.ini
headless/
org.eclipse.update/
platform.xml
config.ini
rcp.exe
rcp.ini
headless.exe
headless.ini

rcp.ini:
-configuration
configuration/rcp

headless.ini:
-configuration
configuration/headless
Re: Setting osgi.configuration.area in launcher.ini [message #130754 is a reply to message #130728] Wed, 06 May 2009 02:03 Go to previous messageGo to next message
Jacob Northey is currently offline Jacob NortheyFriend
Messages: 3
Registered: July 2009
Junior Member
After looking through the source code of org.eclipse.equinox.launcher.Main
I realized that the configuration location would use the install area as a
base if it was a relative URL (file:configuration/headless). Digging
deeper I realized that this would never happen because the install
location is initialized after the configuration location.

processConfiguration();

// need to ensure that getInstallLocation is called at least once to
initialize the value.
// Do this AFTER processing the configuration to allow the configuration
to set
// the install location.
getInstallLocation();


Surely other people must be running separate configurations from the same
install area. If so, how is this typically handled? The only way I can
think of doing it would be to separate each executable into its own
directory.
Re: Setting osgi.configuration.area in launcher.ini [message #130969 is a reply to message #130754] Fri, 08 May 2009 12:53 Go to previous messageGo to next message
Jacob Northey is currently offline Jacob NortheyFriend
Messages: 3
Registered: July 2009
Junior Member
How do people run multiple applications from the same install area with
different config.ini files?
Re: Setting osgi.configuration.area in launcher.ini [message #130982 is a reply to message #130969] Fri, 08 May 2009 13:51 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
I run a shared install as my regular day-to-day dev environment.
What I do is use a shortcut with -configuration with an absolute path.

For example:
C:\shared\eclipse\eclipse.exe -console -consoleLog -configuration
C:\shared\user\configuration -debug

"Jacob Northey" <jacob@lasalletech.com> wrote in message
news:1c5978ce503a9d29c06ddbcbecdfe52f$1@www.eclipse.org...
> How do people run multiple applications from the same install area with
> different config.ini files?
>
Previous Topic:Generating Configuration Metadata
Next Topic:OSGi Commnity Event Call for Papers - Deadline is MAy 15
Goto Forum:
  


Current Time: Thu Apr 25 14:29:13 GMT 2024

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

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

Back to the top