Skip to main content



      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
Eclipse UserFriend
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: Tue Jul 01 09:16:33 EDT 2025

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

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

Back to the top