Using -pluginCustomization to set org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_VM_XML [message #1089939] |
Mon, 19 August 2013 09:23 |
Eclipse User |
|
|
|
Hi there.
I'm trying to set the preference org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_VM_XML in a blank workspace for an Eclipse instance running headlessly. I have tried to use the -pluginCustumization argument but that does not work.
I have been debugging it, and the plugin_customization.ini file is loaded properly and stored in DefaultPreferences.commandLineCustomization. There is however only create DefaultPreferences objects for a very few namespaces and not org.eclipse.jdt.launching. The defaults are therefore never set in DefaultPreferences.applyDefaults(...)
Furthermore when the JVM's are initialized in JavaRuntime.addPersistedVMs(...) the preference store is accessed using InstanceScope.INSTANCE which seems to by bypassing any defaults.
IMO and to my understanding as well, you should be able to specify any preference using -pluginCustumization. I have also found this post which successfully sets org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_VM_XML
So my question is: am I doing anything wrong, and how can I fix it? Or is this a problem with the platform/jdt code?
|
|
|
Powered by
FUDForum. Page generated in 0.03955 seconds