if ( outputDirectory == null )
{
outputDirectory = fileSet.getBasedir().getAbsolutePath();
}
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( (SvnScmProviderRepository) repo, fileSet.getBasedir(), version, url, outputDirectory );
SvnUpdateConsumer consumer = new SvnUpdateConsumer( getLogger(), fileSet.getBasedir() );