Setting preferences (CDT Environment) using plugin_customization.ini [message #1265926] |
Thu, 06 March 2014 14:00  |
Eclipse User |
|
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04983 seconds