Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Set active build configuration

I have some code
public static void activeBuiltRom(IProject project) throws CoreException{
        IProjectDescription desc = project.getDescription();
        IManagedBuildInfo buildInfo = ManagedBuildManager.getBuildInfo(project);
        IConfiguration configs[] = buildInfo.getManagedProject().getConfigurations();
       
       
        desc.setActiveBuildConfig(configs[0].toString());
        project.setDescription(desc, null);
        ManagedBuildManager.saveBuildInfo(project, true);

    }
But it's not effect to active build configuration

Back to the top