protected void addToBuildSpec(String builderID) throws CoreException {
IProjectDescription description = project.getDescription();
ICommand[] commands = description.getBuildSpec();
int commandIndex = getCommandIndex(commands, builderID);
if (commandIndex == -1) {
ICommand command = description.newCommand();
command.setBuilderName(builderID);
// Add a build command to the build spec
ICommand[] newCommands = ArrayUtil.prepend(command, commands);
description.setBuildSpec(newCommands);
project.setDescription(description, null);