Skip to main content

[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
                    .getDefaultConfiguration();
            IToolChain toolchain = defaultConfiguration.getToolChain();
            toolchain.setScannerConfigDiscoveryProfileId("annasGCCManagedMakePerProjectProfileC");
//$NON-NLS-1$
            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?

Thanks!
Anna.


Back to the top