protected void removeFromBuildSpec ( String builderID ) throws CoreException { MarkerUtil . removeMarkers ( getProject ( ) ) ; IProjectDescription description = getProject ( ) . getDescription ( ) ; ICommand [ ] commands = description . getBuildSpec ( ) ; for ( int i = 0 ; i < commands . length ; ++ i ) { if ( commands [ i ] . getBuilderName ( ) . equals ( builderID ) ) { ICommand [ ] newCommands = new ICommand [ commands . length - 1 ] ; System . arraycopy ( commands , 0 , newCommands , 0 , i ) ; System . arraycopy ( commands , i + 1 , newCommands , i , commands . length - i - 1 ) ; description . setBuildSpec ( newCommands ) ; getProject ( ) . setDescription ( description , null ) ; return ; } } }
Removes the given builder from the build spec for the given project .