@Singleton @Named(value="clearcase") public class ClearCaseScmTranslator extends Object implements ScmTranslator
Constructor and Description |
---|
ClearCaseScmTranslator() |
Modifier and Type | Method and Description |
---|---|
String |
resolveTag(String tag)
Determine what tag should be added to the POM given the original tag and the new one.
|
String |
toRelativePath(String path)
Translates an ScmFile path to a path relative to the working directory.
|
String |
translateBranchUrl(String url,
String branchName,
String branchBase)
Take an URL and find the correct replacement URL for a given branch.
|
String |
translateTagUrl(String url,
String tag,
String tagBase)
Take an URL and find the correct replacement URL for a given tag.
|
public String translateBranchUrl(String url, String branchName, String branchBase)
ScmTranslator
translateBranchUrl
in interface ScmTranslator
url
- the source URLbranchName
- the branch namebranchBase
- the branch base for providers that support itpublic String translateTagUrl(String url, String tag, String tagBase)
ScmTranslator
translateTagUrl
in interface ScmTranslator
url
- the source URLtag
- the tagtagBase
- the tag base for providers that support itpublic String resolveTag(String tag)
ScmTranslator
resolveTag
in interface ScmTranslator
tag
- the new tagnull
if the provider does not use tagspublic String toRelativePath(String path)
ScmTranslator
toRelativePath
in interface ScmTranslator
path
- the ScmFile pathCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.