private void checkin( ScmProvider provider, ScmRepository repository, ScmFileSet fileSet,
ReleaseDescriptor releaseDescriptor, String message )
throws ReleaseExecutionException, ReleaseScmCommandException
{
CheckInScmResult result;
try
{
result = provider.checkIn( repository, fileSet, (ScmVersion) null, message );
}
catch ( ScmException e )
{
throw new ReleaseExecutionException( "An error is occurred in the checkin process: " + e.getMessage(), e );
}
if ( !result.isSuccess() )
{
throw new ReleaseScmCommandException( "Unable to commit files", result );
}
if ( releaseDescriptor.isRemoteTagging() )
{
releaseDescriptor.setScmReleasedPomRevision( result.getScmRevision() );
}
}