org.apache.maven.scm.provider.svn
public class SvnTagBranchUtils extends Object
Field Summary | |
---|---|
static String[] | REVISION_SPECIFIERS |
static String[] | SVN_BASE_DIRS |
static String | SVN_BRANCHES |
static String | SVN_TAGS |
static String | SVN_TRUNK |
Method Summary | |
---|---|
static String | getProjectRoot(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(String tag)
Returns whether the supplied tag refers to an actual revision or
is specifying a tag/branch url in the repository.
|
static String | resolveBranchUrl(SvnScmProviderRepository repository, String branch)
Resolves a branch name to a repository url.
|
static String | resolveBranchUrl(String repositoryUrl, String branch)
Resolves a branch name to a repository url.
|
static String | resolveTagUrl(SvnScmProviderRepository repository, String tag)
Resolves a tag to a repository url.
|
static String | resolveTagUrl(String repositoryUrl, String tag)
Resolves a tag to a repository url.
|
static String | resolveUrl(String repositoryUrl, String tagBase, String subdir, String branchTagName)
Resolves a tag or branch name to a repository url. If the branchTagName is an absolute URL, that value is returned.
(i.e. http://foo.com/svn/myproject/tags/my-tag)If the repository has a getTagBase specified, the tag is simply appended to the tagBase value. |
Parameters: repoPath Repository path/url to be searched
Returns:
Parameters: repository the repository to use as a base for tag resolution branch tag name
Returns:
See Also: SvnTagBranchUtils
Parameters: repositoryUrl string url for the repository branch branch name
Returns:
See Also: SvnTagBranchUtils
Parameters: repository the repository to use as a base for tag resolution tag tag name
Returns:
See Also: SvnTagBranchUtils
Parameters: repositoryUrl string url for the repository tag tag name
Returns:
See Also: SvnTagBranchUtils
branchTagName
is an absolute URL, that value is returned.
(i.e. http://foo.com/svn/myproject/tags/my-tag)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.Parameters: projectRoot Project root to use when building the url. 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"
Returns: