org.apache.maven.scm.provider.svn
Class SvnCommandUtils

java.lang.Object
  extended by org.apache.maven.scm.provider.svn.SvnCommandUtils

public class SvnCommandUtils
extends java.lang.Object

Command utilities for svn commands.

Version:
$Id: SvnCommandUtils.java 733437 2009-01-11 09:25:52Z dantran $
Author:
Jerome Lacoste

Constructor Summary
SvnCommandUtils()
           
 
Method Summary
static java.lang.String fixUrl(java.lang.String url, java.lang.String username)
          Add or overrides the username into a url with a svn+ssh scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SvnCommandUtils

public SvnCommandUtils()
Method Detail

fixUrl

public static java.lang.String fixUrl(java.lang.String url,
                                      java.lang.String username)
Add or overrides the username into a url with a svn+ssh scheme.

Svn 1.3.1 doesn't use the username information specified by --username when the url uses the svn+ssh scheme. This allows to fix it. See MRELEASE-35.

Convert file url which derived from windows file path to unix path.

Parameters:
url - the url, not null
username - the username, may be null
Returns:
the fixed url
Throws:
java.lang.NullPointerException - if url is null


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.