Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Find the Configuration directory
Find the Configuration directory [message #698104] Mon, 18 July 2011 19:11 Go to next message
Yigal Spinner is currently offline Yigal SpinnerFriend
Messages: 102
Registered: July 2009
Senior Member
I want to find the "configuration directory" (the location where config.ini reside in - usually it is the <eclipse install>/configuration). Platform.getConfigurationLocation gives the current plugin in the .metadata area. When eclipse is run with the option "-configuration" and the configuration changes, I would like the find it while the plugin starts.

What is the best command to do so?

Thanks
Yigal

[Updated on: Mon, 18 July 2011 19:56]

Report message to a moderator

Re: Find the Configuration directory [message #698400 is a reply to message #698104] Tue, 19 July 2011 12:29 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

There's a system property, osgi.configuration.area. If you go to Help>About>Installation Details>Configuration you can see the list of properties that are set in your running instance.

Also check out http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html for a description of most properties.

PW


Previous Topic:Intermittent ClassCastException in PolicyHandler
Next Topic:How to get an instance of the IWorkbenchPart?
Goto Forum:
  


Current Time: Fri Dec 19 03:26:59 GMT 2014

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

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