public boolean removeFromBuildingQueue( int projectId, int buildDefinitionId, int trigger, String projectName ) throws ContinuumException { BuildDefinition buildDefinition = getBuildDefinition( buildDefinitionId ); String buildDefinitionLabel = buildDefinition.getDescription(); if ( StringUtils.isEmpty( buildDefinitionLabel ) ) { buildDefinitionLabel = buildDefinition.getGoals(); } BuildProjectTask buildProjectTask = new BuildProjectTask( projectId, buildDefinitionId, trigger, projectName, buildDefinitionLabel ); return this.buildQueue.remove( buildProjectTask ); }
serializer.writeEndElement(); if ( buildDefinition.getDescription() != null ) serializer.writeCharacters( buildDefinition.getDescription() ); serializer.writeEndElement();
serializer.writeEndElement(); if ( buildDefinition.getDescription() != null ) serializer.writeCharacters( buildDefinition.getDescription() ); serializer.writeEndElement();
String buildDefinitionLabel = buildDef.getDescription(); if ( StringUtils.isEmpty( buildDefinitionLabel ) )
String buildDefinitionLabel = buildDefinition.getDescription();
String buildDefinitionLabel = buildDefinition.getDescription(); if ( StringUtils.isEmpty( buildDefinitionLabel ) )
String buildDefinitionLabel = buildDefinition.getDescription(); if ( StringUtils.isEmpty( buildDefinitionLabel ) )
storedDefinition.setDescription( buildDefinition.getDescription() );
/** * @see org.apache.maven.continuum.builddefinition.BuildDefinitionService#cloneBuildDefinition(org.apache.maven.continuum.model.project.BuildDefinition) */ public BuildDefinition cloneBuildDefinition( BuildDefinition buildDefinition ) { BuildDefinition cloned = new BuildDefinition(); cloned.setAlwaysBuild( buildDefinition.isAlwaysBuild() ); cloned.setArguments( buildDefinition.getArguments() ); cloned.setBuildFile( buildDefinition.getBuildFile() ); cloned.setBuildFresh( buildDefinition.isBuildFresh() ); cloned.setDefaultForProject( buildDefinition.isDefaultForProject() ); cloned.setDescription( buildDefinition.getDescription() ); cloned.setGoals( buildDefinition.getGoals() ); cloned.setProfile( buildDefinition.getProfile() ); cloned.setSchedule( buildDefinition.getSchedule() ); cloned.setType( buildDefinition.getType() ); cloned.setTemplate( buildDefinition.isTemplate() ); return cloned; }
/** * @see org.apache.maven.continuum.builddefinition.BuildDefinitionService#cloneBuildDefinition(org.apache.maven.continuum.model.project.BuildDefinition) */ public BuildDefinition cloneBuildDefinition( BuildDefinition buildDefinition ) { BuildDefinition cloned = new BuildDefinition(); cloned.setAlwaysBuild( buildDefinition.isAlwaysBuild() ); cloned.setArguments( buildDefinition.getArguments() ); cloned.setBuildFile( buildDefinition.getBuildFile() ); cloned.setBuildFresh( buildDefinition.isBuildFresh() ); cloned.setDefaultForProject( buildDefinition.isDefaultForProject() ); cloned.setDescription( buildDefinition.getDescription() ); cloned.setGoals( buildDefinition.getGoals() ); cloned.setProfile( buildDefinition.getProfile() ); cloned.setSchedule( buildDefinition.getSchedule() ); cloned.setType( buildDefinition.getType() ); cloned.setTemplate( buildDefinition.isTemplate() ); cloned.setUpdatePolicy( buildDefinition.getUpdatePolicy() ); return cloned; }
public void updateBuildDefinition( BuildDefinition buildDefinition ) throws BuildDefinitionServiceException { try { BuildDefinition storedBuildDefinition = store.getBuildDefinition( buildDefinition.getId() ); storedBuildDefinition.setBuildFresh( buildDefinition.isBuildFresh() ); storedBuildDefinition.setAlwaysBuild( buildDefinition.isAlwaysBuild() ); storedBuildDefinition.setArguments( buildDefinition.getArguments() ); storedBuildDefinition.setBuildFile( buildDefinition.getBuildFile() ); storedBuildDefinition.setDefaultForProject( buildDefinition.isDefaultForProject() ); storedBuildDefinition.setDescription( buildDefinition.getDescription() ); storedBuildDefinition.setGoals( buildDefinition.getGoals() ); storedBuildDefinition.setProfile( buildDefinition.getProfile() ); storedBuildDefinition.setSchedule( buildDefinition.getSchedule() ); storedBuildDefinition.setType( buildDefinition.getType() ); store.storeBuildDefinition( storedBuildDefinition ); } catch ( ContinuumStoreException e ) { throw new BuildDefinitionServiceException( e.getMessage(), e ); } }
public void updateBuildDefinition( BuildDefinition buildDefinition ) throws BuildDefinitionServiceException { try { BuildDefinition storedBuildDefinition = buildDefinitionDao.getBuildDefinition( buildDefinition.getId() ); storedBuildDefinition.setBuildFresh( buildDefinition.isBuildFresh() ); storedBuildDefinition.setAlwaysBuild( buildDefinition.isAlwaysBuild() ); storedBuildDefinition.setArguments( buildDefinition.getArguments() ); storedBuildDefinition.setBuildFile( buildDefinition.getBuildFile() ); storedBuildDefinition.setDefaultForProject( buildDefinition.isDefaultForProject() ); storedBuildDefinition.setDescription( buildDefinition.getDescription() ); storedBuildDefinition.setGoals( buildDefinition.getGoals() ); storedBuildDefinition.setProfile( buildDefinition.getProfile() ); storedBuildDefinition.setSchedule( buildDefinition.getSchedule() ); storedBuildDefinition.setType( buildDefinition.getType() ); storedBuildDefinition.setUpdatePolicy( buildDefinition.getUpdatePolicy() ); buildDefinitionDao.storeBuildDefinition( storedBuildDefinition ); } catch ( ContinuumStoreException e ) { throw new BuildDefinitionServiceException( e.getMessage(), e ); } }
String buildDefinitionLabel = buildDefinition.getDescription(); if ( StringUtils.isEmpty( buildDefinitionLabel ) )
storedDefinition.setDescription( buildDefinition.getDescription() );