if ( updateScmResult != null )
{
if( !updateScmResult.isSuccess() )
{
throw new ReleaseScmCommandException( "Unable to update current working copy", updateScmResult );
}
copyUpdated = updateScmResult.getUpdatedFiles().size() > 0;
}
else
{
if( !checkOutScmResult.isSuccess() )
{
throw new ReleaseScmCommandException( "Unable to checkout project", checkOutScmResult );
}
copyUpdated = checkOutScmResult.getCheckedOutFiles().size() > 0;
}