use of org.tmatesoft.svn.core.wc2.SvnGetInfo in project omegat by omegat-org.
the class ConvertProject26to37team method getSVNUrl.
/**
* Get repository URL for SVN.
*/
private static String getSVNUrl(File wc) throws Exception {
final SvnOperationFactory of = new SvnOperationFactory();
final SvnGetInfo infoOp = of.createGetInfo();
infoOp.setSingleTarget(SvnTarget.fromFile(wc));
infoOp.setDepth(SVNDepth.EMPTY);
infoOp.setRevision(SVNRevision.WORKING);
final SvnInfo info = infoOp.run();
SVNURL svn = info.getUrl();
return svn.toString();
}
Aggregations