Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Using -pluginCustomization to set org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_VM_XML
Using -pluginCustomization to set org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_VM_XML [message #1089939] Mon, 19 August 2013 09:23
Tobias Bertelsen is currently offline Tobias Bertelsen
Messages: 22
Registered: October 2011
Junior Member
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?
Previous Topic:How to launch a run/debug configuration using a keyboard shortcut?
Next Topic:extension id's -- what does "fully qualified" mean? and other questions...
Goto Forum:
  


Current Time: Thu Jul 24 09:20:07 EDT 2014

Powered by FUDForum. Page generated in 0.67333 seconds