Skip to main content

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 13:23
Tobias Bertelsen is currently offline Tobias BertelsenFriend
Messages: 25
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:Asynchronous job which should be cancelable
Next Topic:extension id's -- what does "fully qualified" mean? and other questions...
Goto Forum:

Current Time: Thu May 24 23:32:44 GMT 2018

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

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

Back to the top