Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Setting preferences (CDT Environment) using plugin_customization.ini
Setting preferences (CDT Environment) using plugin_customization.ini [message #1265926] Thu, 06 March 2014 19:00 Go to next message
John Moule is currently offline John MouleFriend
Messages: 9
Registered: March 2014
Junior Member
Hi,

I'm trying to define an environment variable, with a value, which is set in the Window > Preferences > C/C++ Build > Environment page when Eclipse starts up.

I'm using the plugin_customization.ini file. I've followed online advice about finding the relevant preference page keys by starting in a clean workspace, exporting prefs to a before file, adding my env var, exporting prefs to an after file and then diffing them. Below are the values that cqame up in the diff and which I put in the plugin_customization.ini file:

<plugin_customization.ini file>
org.eclipse.cdt.core/environment/workspace/append=true
org.eclipse.cdt.core/environment/workspace/MY_ENV_VAR/value=C\:\\MyPath
org.eclipse.cdt.core/environment/workspace/MY_ENV_VAR/delimiter=;
org.eclipse.cdt.core/environment/workspace/MY_ENV_VAR/operation=append
org.eclipse.cdt.core/environment/workspace/appendContributed=true
</plugin_customization.ini file>

But when I start my product I don't see the env var defined.

Searching in CDT sources I came across the value cdt_u_prop_build_environment, but not sure if this is relevant.

cheers john
Re: Setting preferences (CDT Environment) using plugin_customization.ini [message #1267136 is a reply to message #1265926] Sat, 08 March 2014 14:22 Go to previous messageGo to next message
Klaus km is currently offline Klaus kmFriend
Messages: 142
Registered: November 2011
Senior Member
Hello John,

my experience with plugin_customization.ini also is bad. Sometimes you can change specific values, sometimes not... Sad

You could check bugzilla, for example:
https://bugs.eclipse.org/bugs/buglist.cgi?quicksearch=plugin_customization

If you could not find your specific problem file a new bug.

regards,
Klaus


Re: Setting preferences (CDT Environment) using plugin_customization.ini [message #1270703 is a reply to message #1267136] Thu, 13 March 2014 10:56 Go to previous message
John Moule is currently offline John MouleFriend
Messages: 9
Registered: March 2014
Junior Member
Hi Klaus,

thanks for your reply and suggestion. That link to existing bugs is quite interesting in its own right.

This bug seems relevant, but no one has done anything about it.

Bug 146797 - Import of Managed Build Environment User Variables
https://bugs.eclipse.org/bugs/show_bug.cgi?id=146797#c2

I ended up setting the defaults for the env vars I wanted programmatically (in java).

If I get time I'll enter a new tracker for it.

cheers john
Previous Topic:Blank Stack Trace
Next Topic:namespace problem : could not been resolved
Goto Forum:
  


Current Time: Tue Sep 24 17:58:36 GMT 2024

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

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

Back to the top