{
schedule = scheduleDao.getScheduleByName( ConfigurationService.DEFAULT_SCHEDULE_NAME );
}
catch ( ContinuumStoreException e )
{
throw new ContinuumException( "Can't get default schedule.", e );
}
}
else
{
schedule = scheduleDao.getSchedule( buildDefinition.getSchedule().getId() );
}
storedDefinition.setSchedule( schedule );
storedDefinition.setProfile( buildDefinition.getProfile() );
storedDefinition.setDescription( buildDefinition.getDescription() );
storedDefinition.setType( buildDefinition.getType() );
storedDefinition.setAlwaysBuild( buildDefinition.isAlwaysBuild() );
buildDefinitionDao.storeBuildDefinition( storedDefinition );
}
else
{
throw new ContinuumException( "failed update, build definition didn't exist in project group" );
}
}
catch ( ContinuumStoreException cse )
{
throw new ContinuumException( "error in accessing or storing build definition" );
}
}