in org.apache.easyant4e/src/org/apache/easyant4e/natures/EasyAntNature.java [277:289]
private void addBuilder(String builderID) throws CoreException {
if (!isBuilderApplied(builderID)) {
IProjectDescription description = getProject().getDescription();
ICommand[] commands = description.getBuildSpec();
ICommand command = description.newCommand();
command.setBuilderName(builderID);
ICommand[] newCommands = new ICommand[commands.length + 1];
System.arraycopy(commands, 0, newCommands, 0, commands.length);
newCommands[commands.length] = command;
description.setBuildSpec(newCommands);
getProject().setDescription(description, null);
}
}