org.apache.maven.scm.provider.git.repository
Class GitScmProviderRepository

java.lang.Object
  extended by org.apache.maven.scm.provider.ScmProviderRepository
      extended by org.apache.maven.scm.provider.ScmProviderRepositoryWithHost
          extended by org.apache.maven.scm.provider.git.repository.GitScmProviderRepository

public class GitScmProviderRepository
extends org.apache.maven.scm.provider.ScmProviderRepositoryWithHost

Version:
$Id: GitScmProviderRepository.java 645182 2008-04-05 21:58:41Z jvanzyl $
Author:
Emmanuel Venisse

Field Summary
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_RSYNC
          use rsync for retrieving the data TODO implement!
static String PROTOCOL_SSH
          use secure shell protocol
 
Constructor Summary
GitScmProviderRepository(String url)
           
GitScmProviderRepository(String url, String user, String password)
           
 
Method Summary
 org.apache.maven.scm.provider.ScmProviderRepository getParent()
          A ScmProviderRepository like this but with the parent url (stripping the last directory)
 String getProtocol()
           
 String getRelativePath(org.apache.maven.scm.provider.ScmProviderRepository ancestor)
          Get the relative path from the ancestor to this repository
 String getUrl()
           
 String toString()
           
 
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepositoryWithHost
getHost, getPassphrase, getPort, getPrivateKey, setHost, setPassphrase, setPort, setPrivateKey
 
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepository
getPassword, getUser, isPersistCheckout, setPassword, setPersistCheckout, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOCOL_FILE

public static final String PROTOCOL_FILE
use local file as transport

See Also:
Constant Field Values

PROTOCOL_GIT

public static final String PROTOCOL_GIT
use gits internal protocol

See Also:
Constant Field Values

PROTOCOL_SSH

public static final String PROTOCOL_SSH
use secure shell protocol

See Also:
Constant Field Values

PROTOCOL_HTTP

public static final String PROTOCOL_HTTP
use the standard port 80 http protocol

See Also:
Constant Field Values

PROTOCOL_HTTPS

public static final String PROTOCOL_HTTPS
use the standard port 443 https protocol

See Also:
Constant Field Values

PROTOCOL_RSYNC

public static final String PROTOCOL_RSYNC
use rsync for retrieving the data TODO implement!

See Also:
Constant Field Values
Constructor Detail

GitScmProviderRepository

public GitScmProviderRepository(String url)

GitScmProviderRepository

public GitScmProviderRepository(String url,
                                String user,
                                String password)
Method Detail

getUrl

public String getUrl()

getProtocol

public String getProtocol()
Returns:
the protocol used in this repository (file, http, https, git, ...)

getParent

public org.apache.maven.scm.provider.ScmProviderRepository getParent()
A ScmProviderRepository like this but with the parent url (stripping the last directory)

Overrides:
getParent in class org.apache.maven.scm.provider.ScmProviderRepository
Returns:
the parent repository or null if this is the top level repository

getRelativePath

public String getRelativePath(org.apache.maven.scm.provider.ScmProviderRepository ancestor)
Get the relative path from the ancestor to this repository

Overrides:
getRelativePath in class org.apache.maven.scm.provider.ScmProviderRepository

toString

public String toString()
Overrides:
toString in class Object


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