{
ContinuumReleaseManagerListener listener = new DefaultReleaseManagerListener();
listener.setUsername( username );
LocalRepository repo = null;
if ( !repository.isEmpty() )
{
List<org.apache.continuum.buildagent.model.LocalRepository> localRepos = buildAgentConfigurationService.getLocalRepositories();
for( org.apache.continuum.buildagent.model.LocalRepository localRepo : localRepos )
{
if( localRepo.getName().equalsIgnoreCase( ContinuumBuildAgentUtil.getLocalRepositoryName( repository ) ) )
{
repo = new LocalRepository();
repo.setLayout( localRepo.getLayout() );
repo.setName( localRepo.getName() );
repo.setLocation( localRepo.getLocation() );
break;
}
}
}