{
try
{
Map<String, Object> project = new HashMap<String, Object>();
PrepareBuildProjectsTask task = buildAgentTaskQueueManager.getCurrentProjectInPrepareBuild();
if ( task != null )
{
project.put( ContinuumBuildAgentUtil.KEY_PROJECT_GROUP_ID, new Integer( task.getProjectGroupId() ) );
project.put( ContinuumBuildAgentUtil.KEY_SCM_ROOT_ID, new Integer( task.getScmRootId() ) );
project.put( ContinuumBuildAgentUtil.KEY_SCM_ROOT_ADDRESS, task.getScmRootAddress() );
project.put( ContinuumBuildAgentUtil.KEY_TRIGGER, task.getTrigger() );
}
return project;
}
catch ( TaskQueueManagerException e )