how to change an environment variable of USER:PREFS type to USER:CONFIG type in java programmaticall [message #873060] |
Thu, 17 May 2012 12:36 |
Sachin Nain Messages: 3 Registered: April 2012 |
Junior Member |
|
|
i m creating environment variables programatically by the code below....
UserDefinedEnvironmentSupplier fUserSupplier = EnvironmentVariableManager.fUserSupplier;
StorableEnvironment vars = fUserSupplier.getWorkspaceEnvironmentCopy();
vars.createVariable("PATH", pathVariableValue);
vars.createVariable("BUILD-CPU1", "Yes");
vars.createVariable("BUILD-PLATFORM1A", "No");
vars.createVariable("BUILD-DCP1D", "No");
projectLibPath = libfolder.getLocation().toString() + "/RTOS-CPU1";
vars.createVariable("CYGOS-CPU1", projectLibPath);
vars.createVariable("CYGOS-PLATFORM1A", "");
vars.createVariable("CYGOS-DCP1D", ""); fUserSupplier.setWorkspaceEnvironment(vars);
when i open Environment tab property and see these environment variables, i find Origin type of these environment variables is USER:PREFS. But i want Origin type should be either USER:CONFIG or BUILD SYSTEM. How could this will be achieved? Pls Help. Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.02998 seconds