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 ScmProviderRepositoryWithHost

Version:
$Id: GitScmProviderRepository.java 687472 2008-08-20 21:33:40Z olamy $
Author:
Emmanuel Venisse

Field Summary
static java.lang.String PROTOCOL_FILE
          use local file as transport
static java.lang.String PROTOCOL_GIT
          use gits internal protocol
static java.lang.String PROTOCOL_HTTP
          use the standard port 80 http protocol
static java.lang.String PROTOCOL_HTTPS
          use the standard port 443 https protocol
static java.lang.String PROTOCOL_RSYNC
          use rsync for retrieving the data TODO implement!
static java.lang.String PROTOCOL_SSH
          use secure shell protocol
 
Constructor Summary
GitScmProviderRepository(java.lang.String url)
           
GitScmProviderRepository(java.lang.String url, java.lang.String user, java.lang.String password)
           
 
Method Summary
 ScmProviderRepository getParent()
          Get a ScmProviderRepository that represents the parent folder in the repository.
 java.lang.String getProtocol()
           
 java.lang.String getRelativePath(ScmProviderRepository ancestor)
          Get the relative path between the repository provided as argument and the current repository.
 java.lang.String getUrl()
           
 java.lang.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 java.lang.String PROTOCOL_FILE
use local file as transport

See Also:
Constant Field Values

PROTOCOL_GIT

public static final java.lang.String PROTOCOL_GIT
use gits internal protocol

See Also:
Constant Field Values

PROTOCOL_SSH

public static final java.lang.String PROTOCOL_SSH
use secure shell protocol

See Also:
Constant Field Values

PROTOCOL_HTTP

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

See Also:
Constant Field Values

PROTOCOL_HTTPS

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

See Also:
Constant Field Values

PROTOCOL_RSYNC

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

See Also:
Constant Field Values
Constructor Detail

GitScmProviderRepository

public GitScmProviderRepository(java.lang.String url)

GitScmProviderRepository

public GitScmProviderRepository(java.lang.String url,
                                java.lang.String user,
                                java.lang.String password)
Method Detail

getUrl

public java.lang.String getUrl()

getProtocol

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

getParent

public ScmProviderRepository getParent()
Get a ScmProviderRepository that represents the parent folder in the repository. Useful when the repository does not exist yet and we need to create it from the parent.

Overrides:
getParent in class ScmProviderRepository
Returns:
the parent repository

getRelativePath

public java.lang.String getRelativePath(ScmProviderRepository ancestor)
Get the relative path between the repository provided as argument and the current repository.

Overrides:
getRelativePath in class ScmProviderRepository
Parameters:
ancestor - another repository that should be ancestor of this one
Returns:
the relative path or null if it can't be resolved

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


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