* Update the FindBugs command in the build spec (replace existing one if
* present, add one first if none).
*/
private void setFindBugsCommand(IProjectDescription description, ICommand newCommand) throws CoreException {
ICommand[] oldCommands = description.getBuildSpec();
ICommand oldFindBugsCommand = getFindBugsCommand(description);
ICommand[] newCommands;
if (oldFindBugsCommand == null) {
// Add the FindBugs build spec AFTER all other builders
newCommands = new ICommand[oldCommands.length + 1];
System.arraycopy(oldCommands, 0, newCommands, 0, oldCommands.length);