[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Change ScannerConfigDiscoveryProfileId for an autotools project programmatically

Hi All,

I'd like to replace the ScannerConfigDiscoveryProfileId in a toolchain
during the project creation.
What is the right way to do it?
I've tried
 IConfiguration defaultConfiguration = buildInfo
            IToolChain toolchain = defaultConfiguration.getToolChain();
            ManagedBuildManager.saveBuildInfo(project, true);

but somehow it doesn't take effect.
I still see the old profile id in the .cproject in the <storageModule
moduleId="scannerConfiguration"> section in the .cproject file.
Is there any way to change it there too?