Community
Participate
Working Groups
Hi, I have a properties file with custom Eclipse settings. If I define a classpath variable in this file, it is not picked up by eclipse. Steps to reproduce: 1. Create a new file: mysettings.ini 2. Add the following property: org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.JAVA_REPOSITORY=C\:/working/repository 3. Start eclipse: 'eclipse.exe -pluginCustomization mysettings.ini' 4. Go to 'Window > Preferences > Java > Build Path > Classpath Variables'. As you can see, the 'JAVA_REPOSITORY' variable is not listed there. If I import this file with 'File > Import > Preferences', it works. However, I want to avoid this manual step. regards, Maarten
((IScopeContext) new InstanceScope()).getNode(JavaCore.PLUGIN_ID) doesn't contain the key "org.eclipse.jdt.core.classpathVariable.JAVA_REPOSITORY". Moving to Platform Runtime.
The plug-in customization mechanism is for customizing default properties, not instance (workspace) properties. Your key/value pair should appear here: new DefaultScope().getNode(JavaCore.PLUGIN_ID) Here is a small doc that I wrote up on plug-in customization: http://www.eclipse.org/eclipse/platform-core/documents/user_settings/plugin_customization.html
So there is no way to to add default classpath variables in Eclipse, which are available to all workspaces? If this is the case, could you add such functionality? thanks, Maarten
When I add the value to the plugin customization file, it appears in the JDT default preferences. I do not know how the Jave -> Build Path -> Classpath Variables page/values are calculted though. Jerome?
Indeed we look at instance preferences only. I'll see what can be done here.
Created attachment 37730 [details] Proposed patch and regression test
+1 for 3.2RC1
Released patch and regression test
Verified for 3.2 RC1 using build I20060413-0010.