Class SvnScmProviderRepository


public class SvnScmProviderRepository extends ScmProviderRepositoryWithHost
  • Field Details

    • url

      private String url
    • protocol

      private String protocol
    • tagBase

      private String tagBase
      The base directory for any tags. Can be relative to the repository URL or an absolute URL.
    • branchBase

      private String branchBase
      The base directory for any branches. Can be relative to the repository URL or an absolute URL.
  • Constructor Details

    • SvnScmProviderRepository

      public SvnScmProviderRepository(String url)
    • SvnScmProviderRepository

      public SvnScmProviderRepository(String url, String user, String password)
  • Method Details

    • getUrl

      public String getUrl()
    • getTagBase

      public String getTagBase()
      Returns the url/directory to be used when tagging this repository.
    • setTagBase

      public void setTagBase(String tagBase)
      Sets the url/directory to be used when tagging this repository. The TagBase is a way to override the default tag location for the repository. The default tag location is automatically determined for repositories in the standard subversion layout (with /tags /branches /trunk). Specify this value only if the repository is using a directory other than "/tags" for tagging.
      Parameters:
      tagBase - an absolute or relative url to the base directory to create tags in. URL should be in a format that svn client understands, not the scm url format.
    • getBranchBase

      public String getBranchBase()
      Returns the url/directory to be used when tagging this repository.
    • setBranchBase

      public void setBranchBase(String branchBase)
      Sets the url/directory to be used when branching this repository. The BranchBase is a way to override the default branch location for the repository. The default branch location is automatically determined for repositories in the standard subversion layout (with /tags /branches /trunk). Specify this value only if the repository is using a directory other than "/branches" for branching.
      Parameters:
      branchBase - an absolute or relative url to the base directory to create branch in. URL should be in a format that svn client understands, not the scm url format.
    • setProtocol

      private void setProtocol(String protocol)
    • getProtocol

      public String getProtocol()
      Get the protocol used in this repository (file://, http://, https://,...)
      Returns:
      the protocol
    • parseUrl

      private void parseUrl(String url)
    • 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 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 String toString()
      Overrides:
      toString in class Object