Tuesday, June 29, 2010

How to change a Standard Project to a Make Project in Plugin

Here is the code for changing the Standard Project to Make Project in CDT plugin.

IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("projectName");
IConfiguration activeConfig = ManagedBuildManager.getBuildInfo(project).getDefaultConfiguration();
activeConfig.setManagedBuildOn(false); // or true
ManagedBuildManager.saveBuildInfo(project, true);

No comments:

Post a Comment