/** * Method addModifiedDependency. * * @param projectDependency */ public void addModifiedDependency( ProjectDependency projectDependency ) { getModifiedDependencies().add( projectDependency ); } //-- void addModifiedDependency( ProjectDependency )
/** * Method removeModifiedDependency. * * @param projectDependency */ public void removeModifiedDependency( ProjectDependency projectDependency ) { getModifiedDependencies().remove( projectDependency ); } //-- void removeModifiedDependency( ProjectDependency )
/** * Method removeModifiedDependency * * @param projectDependency */ public void removeModifiedDependency(ProjectDependency projectDependency) { if ( !(projectDependency instanceof ProjectDependency) ) { throw new ClassCastException( "BuildResult.removeModifiedDependencies(projectDependency) parameter must be instanceof " + ProjectDependency.class.getName() ); } getModifiedDependencies().remove( projectDependency ); } //-- void removeModifiedDependency(ProjectDependency)
/** * Method addModifiedDependency * * @param projectDependency */ public void addModifiedDependency(ProjectDependency projectDependency) { if ( !(projectDependency instanceof ProjectDependency) ) { throw new ClassCastException( "BuildResult.addModifiedDependencies(projectDependency) parameter must be instanceof " + ProjectDependency.class.getName() ); } getModifiedDependencies().add( projectDependency ); } //-- void addModifiedDependency(ProjectDependency)
if ( buildResult.getModifiedDependencies() != null && buildResult.getModifiedDependencies().size() > 0 ) for ( Iterator iter = buildResult.getModifiedDependencies().iterator(); iter.hasNext(); )
if ( ( buildResult.getModifiedDependencies() != null ) && ( buildResult.getModifiedDependencies().size() > 0 ) ) for ( Iterator iter = buildResult.getModifiedDependencies().iterator(); iter.hasNext(); )
private void updateBuildResult( BuildResult build, BuildContext context ) { if ( build.getScmResult() == null && context.getScmResult() != null ) { build.setScmResult( context.getScmResult() ); } if ( build.getModifiedDependencies() == null && context.getModifiedDependencies() != null ) { build.setModifiedDependencies( context.getModifiedDependencies() ); } }
private void updateBuildResult( BuildResult build, BuildContext context ) { if ( build.getScmResult() == null && context.getScmResult() != null ) { build.setScmResult( context.getScmResult() ); } if ( build.getModifiedDependencies() == null && context.getModifiedDependencies() != null ) { build.setModifiedDependencies( context.getModifiedDependencies() ); } }
buildResult.getModifiedDependencies().clear(); buildResult.setBuildDefinition( null );
br.getModifiedDependencies().clear(); buildResultDao.updateBuildResult( br ); removeBuildResult( br );