Skip to main content

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

I noticed few times we have a race conditions when saving project descriptor. It may happened that build has some sort of cached version and it does not refresh it properly
when it changes. You would have to debug the code to see if it is the case. The other option check how UI sets this and if it does any magic to refresh it properly

On Wed, Aug 5, 2015 at 5:58 AM, Ashish Rawat <Ashish.Rawat@xxxxxxxx> wrote:

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.

cdt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top