|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.scm.provider.svn.SvnTagBranchUtils
Field Summary | |
---|---|
static java.lang.String[] |
REVISION_SPECIFIERS
|
static java.lang.String[] |
SVN_BASE_DIRS
|
static java.lang.String |
SVN_BRANCHES
|
static java.lang.String |
SVN_TAGS
|
static java.lang.String |
SVN_TRUNK
|
Constructor Summary | |
---|---|
SvnTagBranchUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getProjectRoot(java.lang.String repoPath)
Returns the project root for the given repository url, where "project root" is the root of the /trunk, /branches, /tags directories |
static boolean |
isRevisionSpecifier(java.lang.String tag)
Returns whether the supplied tag refers to an actual revision or is specifying a tag/branch url in the repository. |
static java.lang.String |
resolveBranchUrl(java.lang.String repositoryUrl,
java.lang.String branch)
Resolves a branch name to a repository url. |
static java.lang.String |
resolveBranchUrl(SvnScmProviderRepository repository,
java.lang.String branch)
Resolves a branch name to a repository url. |
static java.lang.String |
resolveTagUrl(java.lang.String repositoryUrl,
java.lang.String tag)
Resolves a tag to a repository url. |
static java.lang.String |
resolveTagUrl(SvnScmProviderRepository repository,
java.lang.String tag)
Resolves a tag to a repository url. |
static java.lang.String |
resolveUrl(java.lang.String repositoryUrl,
java.lang.String tagBase,
java.lang.String subdir,
java.lang.String branchTagName)
Resolves a tag or branch name to a repository url. If the branchTagName is an absolute URL, that value is returned. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String[] REVISION_SPECIFIERS
public static final java.lang.String SVN_TRUNK
public static final java.lang.String SVN_BRANCHES
public static final java.lang.String SVN_TAGS
public static final java.lang.String[] SVN_BASE_DIRS
Constructor Detail |
public SvnTagBranchUtils()
Method Detail |
public static java.lang.String getProjectRoot(java.lang.String repoPath)
repoPath
- Repository path/url to be searched
public static java.lang.String resolveTagUrl(SvnScmProviderRepository repository, java.lang.String tag)
resolveTagUrl(String, String)
the resolution can use the repository's tagBase to override the default tag location.
repository
- the repository to use as a base for tag resolutiontag
- tag name
#resolveUrl(SvnScmProviderRepository, String, String)
public static java.lang.String resolveTagUrl(java.lang.String repositoryUrl, java.lang.String tag)
SvnScmProviderRepository.getTagBase()
during resolution.
repositoryUrl
- string url for the repositorytag
- tag name
#resolveUrl(SvnScmProviderRepository, String, String)
public static java.lang.String resolveBranchUrl(SvnScmProviderRepository repository, java.lang.String branch)
resolveBranchUrl(String, String)
the resolution can use the repository's tagBase to override the default tag location.
repository
- the repository to use as a base for tag resolutionbranch
- tag name
#resolveUrl(SvnScmProviderRepository, String, String)
public static java.lang.String resolveBranchUrl(java.lang.String repositoryUrl, java.lang.String branch)
SvnScmProviderRepository.getTagBase()
during resolution.
repositoryUrl
- string url for the repositorybranch
- branch name
#resolveUrl(SvnScmProviderRepository, String, String)
public static java.lang.String resolveUrl(java.lang.String repositoryUrl, java.lang.String tagBase, java.lang.String subdir, java.lang.String branchTagName)
branchTagName
is an absolute URL, that value is returned.
(i.e. http://foo.com/svn/myproject/tags/my-tag)SvnScmProviderRepository.getTagBase()
specified,
the tag is simply appended to the tagBase value. Note that at this time, we are using
the tagBase as a base for both branches and tags.branchTagName
contains a branch/tag specifier (i.e. "/branches", "/tags", "/trunk"),
the branchTagName
is appended to the projectRoot
without adding the subdir.projectRoot/subdir/branchTagName
directory.
subdir
- Subdirectory to append to the project root
(for branching use "branches", tags use "tags")branchTagName
- Name of the actual branch or tag. Can be an absolute url, simple tag/branch name,
or even contain a relative path to the root like "branches/my-branch"
public static boolean isRevisionSpecifier(java.lang.String tag)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |