Set the configuration folder [message #487007] |
Mon, 21 September 2009 13:11 |
|
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 |
|
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 #487471 is a reply to message #487408] |
Wed, 23 September 2009 11:30 |
|
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.03337 seconds