TaskQueueExecutor executor =
(TaskQueueExecutor) container.lookup( TaskQueueExecutor.class, "prepare-build-project" );
Task task = executor.getCurrentTask();
if ( task != null )
{
executor.cancelTask( task );
}
}
catch ( ComponentLookupException e )
{
throw new BuildManagerException( "Error looking up prepare-build-queue.", e );