Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Issues in updating the command option on project build

Hello Members,


I am setting some options programmatically before invoking the project build using following code:


IManagedProject managedProject = ManagedBuildManager.getBuildInfo(project).getManagedProject();

IConfiguration configurations[] = managedProject.getConfigurations();


for (IConfiguration iConfiguration : configurations) {

     ManagedBuildManager.setOption(iConfiguration, iConfiguration.GetToolChain()...)



ManagedBuildManager.saveBuildInfo(project, true);



I observed that on executing the above code, my .cproject file gets updated with the newly set options, however in the build command these options are not available. Then on next build, the options will reflect in the build command.


Also on project import, sometimes the build command is updated with the options set programmatically and sometimes it does not.


Can anyone guide me where I am doing wrong?


Best Regards,


This message contains information that may be privileged or confidential and is the property of the KPIT Technologies Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Technologies Ltd. does not accept any liability for virus infected mails.

Back to the top