protected void addToBuildSpec ( String builderID ) throws CoreException { IProjectDescription description = getProject ( ) . getDescription ( ) ; ICommand findBugsCommand = getFindBugsCommand ( description ) ; if ( findBugsCommand == null ) { // Add a Java command to the build spec ICommand newCommand = description . newCommand ( ) ; newCommand . setBuilderName ( builderID ) ; setFindBugsCommand ( description , newCommand ) ; } }
Adds a builder to the build spec for the given project .