public class GitScmProviderRepository extends ScmProviderRepositoryWithHost
Modifier and Type | Field and Description |
---|---|
static String |
PROTOCOL_FILE
use local file as transport
|
static String |
PROTOCOL_GIT
use gits internal protocol
|
static String |
PROTOCOL_HTTP
use the standard port 80 http protocol
|
static String |
PROTOCOL_HTTPS
use the standard port 443 https protocol
|
static String |
PROTOCOL_NONE
No special protocol specified.
|
static String |
PROTOCOL_RSYNC
use rsync for retrieving the data
TODO implement!
|
static String |
PROTOCOL_SEPARATOR
this trails every protocol
|
static String |
PROTOCOL_SSH
use secure shell protocol
|
static String |
URL_DELIMITER_FETCH
sequence used to delimit the fetch URL
|
static String |
URL_DELIMITER_PUSH
sequence used to delimit the push URL
|
Constructor and Description |
---|
GitScmProviderRepository(String url) |
GitScmProviderRepository(String url,
String user,
String password) |
Modifier and Type | Method and Description |
---|---|
RepositoryUrl |
getFetchInfo() |
String |
getFetchUrl() |
String |
getProvider() |
RepositoryUrl |
getPushInfo() |
String |
getPushUrl() |
String |
getRelativePath(ScmProviderRepository ancestor)
Get the relative path between the repository provided as argument and the current repository.
|
String |
toString() |
getHost, getPassphrase, getPort, getPrivateKey, setHost, setPassphrase, setPort, setPrivateKey
getParent, getPassword, getUser, getWorkItem, isPersistCheckout, isPushChanges, setPassword, setPersistCheckout, setPushChanges, setUser, setWorkItem
public static final String URL_DELIMITER_FETCH
public static final String URL_DELIMITER_PUSH
public static final String PROTOCOL_SEPARATOR
public static final String PROTOCOL_FILE
public static final String PROTOCOL_GIT
public static final String PROTOCOL_SSH
public static final String PROTOCOL_HTTP
public static final String PROTOCOL_HTTPS
public static final String PROTOCOL_RSYNC
public static final String PROTOCOL_NONE
public GitScmProviderRepository(String url) throws ScmException
ScmException
public GitScmProviderRepository(String url, String user, String password) throws ScmException
ScmException
public String getProvider()
public RepositoryUrl getFetchInfo()
public RepositoryUrl getPushInfo()
public String getFetchUrl()
public String getPushUrl()
public String getRelativePath(ScmProviderRepository ancestor)
getRelativePath
in class ScmProviderRepository
ancestor
- another repository that should be ancestor of this onenull
if it can't be resolvedCopyright © 2003–2024 The Apache Software Foundation. All rights reserved.