ReleaseDescriptor releaseDescriptor = loadReleaseDescriptor( performRequest.getReleaseDescriptor(),
performRequest.getReleaseManagerListener() );
for ( String name : performPhases )
{
ReleasePhase phase = releasePhases.get( name );
if ( phase == null )
{
throw new ReleaseExecutionException( "Unable to find phase '" + name + "' to execute" );
}
updateListener( performRequest.getReleaseManagerListener(), name, PHASE_START );
ReleaseResult phaseResult = null;
try
{
if ( BooleanUtils.isTrue( performRequest.getDryRun() ) )
{
phaseResult = phase.simulate( releaseDescriptor,
performRequest.getReleaseEnvironment(),
performRequest.getReactorProjects() );
}
else
{
phaseResult = phase.execute( releaseDescriptor,
performRequest.getReleaseEnvironment(),
performRequest.getReactorProjects() );
}
}
finally