throw new ScmException( "Error while executing svn command.", ex );
}
if ( exitCode != 0 )
{
return new RemoteInfoScmResult( cl.toString(), "The svn command failed.", stderr.getOutput(), false );
}
cl = SvnCommandLineUtils.getBaseSvnCommandLine( fileSet == null ? null : fileSet.getBasedir(),
(SvnScmProviderRepository) repository );
cl.createArg().setValue( "ls" );
cl.createArg().setValue( baseUrl + "/tags" );
stderr = new CommandLineUtils.StringStreamConsumer();
consumer = new LsConsumer( getLogger(), baseUrl );
Map<String, String> branchesInfos = null;
try
{
exitCode = SvnCommandLineUtils.execute( cl, consumer, stderr, getLogger() );
branchesInfos = consumer.infos;
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing svn command.", ex );
}
if ( exitCode != 0 )
{
return new RemoteInfoScmResult( cl.toString(), "The svn command failed.", stderr.getOutput(), false );
}
return new RemoteInfoScmResult( cl.toString(), branchesInfos, tagsInfos );
}