*/
protected CheckOutScmResult executeCheckOutCommand( ScmProviderRepository repo, ScmFileSet fileSet,
ScmVersion version, boolean recursive )
throws ScmException
{
SvnScmProviderRepository repository = (SvnScmProviderRepository) repo;
String url = repository.getUrl();
if ( version != null && StringUtils.isNotEmpty( version.getName() ) )
{
if ( version instanceof ScmTag )
{
url = SvnTagBranchUtils.resolveTagUrl( repository, (ScmTag) version );
}
else if ( version instanceof ScmBranch )
{
url = SvnTagBranchUtils.resolveBranchUrl( repository, (ScmBranch) version );
}
}
url = SvnCommandUtils.fixUrl( url, repository.getUser() );
Commandline cl = createCommandLine( repository, fileSet.getBasedir(), version, url, recursive );
SvnCheckOutConsumer consumer = new SvnCheckOutConsumer( getLogger(), fileSet.getBasedir() );