|Using -pluginCustomization to set org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_VM_XML [message #1089939]
||Mon, 19 August 2013 13:23
| Tobias Bertelsen
Registered: October 2011
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.02138 seconds