Map<String, CheckOutTask> currentCheckouts = getContinuum().getBuildsManager().getCurrentCheckouts();
Set<String> keySet = currentCheckouts.keySet();
for ( String key : keySet )
{
CheckOutTask checkoutTask = currentCheckouts.get( key );
CheckoutQueue queue = new CheckoutQueue();
queue.setName( key );
queue.setTask( checkoutTask );
currentCheckoutTasks.add( queue );
}
}
catch ( BuildManagerException e )
{
addActionError( e.getMessage() );
return ERROR;
}
try
{
// queued checkouts
Map<String, List<CheckOutTask>> checkouts =
getContinuum().getBuildsManager().getProjectsInCheckoutQueues();
Set<String> keySet = checkouts.keySet();
for ( String key : keySet )
{
for ( CheckOutTask task : checkouts.get( key ) )
{
CheckoutQueue queue = new CheckoutQueue();
queue.setName( key );
queue.setTask( task );
checkoutsInQueue.add( queue );
}
}
}
catch ( BuildManagerException e )