Set the configuration folder [message #487007] |
Mon, 21 September 2009 13:11 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Hey all,
i recognized that my rcp application is creating 4 folders in my configuration folder:
org.eclipse.core.runtime
org.eclipse.equinox.app
org.eclipse.equinox.launcher
org.eclipse.osgi
I want to set the configuration folder to my user´s home directory. How can i do that?
I tried :
Location configurationLoc = Platform.getConfigurationLocation();
if (!configurationLoc.isSet()) {
configurationLoc
.set(new URL( "file", null, System.getProperty("user.home") + "\\configuration"),
false);
}
but that didnt work because the location is already set. Than i looked for the parameter and found
-configuration<location>
Ok i tried to set it in my Program (and VM) Arguments but then a new instance of eclipse is starting instead of my RCP application.
Can anybody tell how i have to do that?
Thanks alot
Thomas
|
|
|
Re: Set the configuration folder [message #487402 is a reply to message #487007] |
Wed, 23 September 2009 06:48 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Hey all,
does nobody have any idea?
In another thread i found the hint to set the following parameter in the config.ini:
osgi.configuration.area=@noDefault
but that also doesnt work. I try to set configuration as VM Argument as well as Program Argument, both things doesnt work. The configuration area has always been set already.
In the tab "configuration" in the RunConfigurations i can set the location, but i want to set it dynamically when i start my Program.
The thing i most wondering is, that when i add the program parameter "-configuration @none" a new instance of my ECLIPSE IDE is started and not my RCP Application! Why is that?
@Daniel Krügler ->
I found a thread where you asked the same question. Did you solved it already? Would be nice if you could help me.
Thanks in Advance.
Thomas
|
|
|
Re: Set the configuration folder [message #487408 is a reply to message #487402] |
Wed, 23 September 2009 07:18 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
T. Wilhelm wrote:
> Hey all,
>
> does nobody have any idea?
None, except for providing a bugzilla entry ;-). Further comments below.
> In another thread i found the hint to set the following parameter in the
> config.ini:
>
> osgi.configuration.area=@noDefault
> but that also doesnt work. I try to set configuration as VM Argument as
> well as Program Argument, both things doesnt work. The configuration
> area has always been set already.
> In the tab "configuration" in the RunConfigurations i can set the
> location, but i want to set it dynamically when i start my Program.
>
> The thing i most wondering is, that when i add the program parameter
> "-configuration @none" a new instance of my ECLIPSE IDE is started and
> not my RCP Application! Why is that?
>
> @Daniel Krügler ->
> I found a thread where you asked the same question. Did you solved it
> already? Would be nice if you could help me.
Unfortunately I cannot provide a clean solution to you. In our own
product our installation program will probably need to ensure that
the config.ini is manipulated to fix some stub entry for the
configuration area (osgi.configuration.area=...). Not nice, but
should work.
I seriously suggest to prepare a bugzilla entry - I'll be the first
one who will vote for it ;-)
IMO the lack of this customization point is really annoying: Programmers
really need this kind of dynamic location routing!
Good luck & Greetings from Bremen,
Daniel Krügler
|
|
|
Re: Set the configuration folder [message #487471 is a reply to message #487408] |
Wed, 23 September 2009 11:30 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Hi Daniel,
thanks for your reply. Now i got it with the config.ini parameter. First it doesnt work for me, because i always try to set @noDefault or @none. These two options doesnt work (There is a hint in the eclipse help, but phrases like "indicates that this setup is technically possible but pragmatically quite difficult to manage" are not really helpful )
Now i use
osgi.configuration.area=@user.home/mydirectory
This works, but providing my own config.ini file for deployment wasnt as easy as i thought. Is it a bug that i have to set Autostart for org.eclipse.runtime and org.eclipse.equinox.common to true if i provide my own config file?
Anyway it works, thanks alot
Greetz from Stuttgart
Thomas
|
|
|
Powered by
FUDForum. Page generated in 0.04468 seconds