in org.apache.easyant4e/src/org/apache/easyant4e/natures/EasyAntNature.java [291:307]
private void removeBuilder(String builderID) throws CoreException {
if (isBuilderApplied(builderID)) {
IProjectDescription description = getProject().getDescription();
ICommand[] commands = description.getBuildSpec();
ICommand[] newCommands = new ICommand[commands.length - 1];
int i = 0;
for (ICommand command : commands) {
if (!command.getBuilderName().equals(builderID)) {
// Remove the given builder
newCommands[i] = command;
i++;
}
}
description.setBuildSpec(newCommands);
getProject().setDescription(description, null);
}
}