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