Class ClearCaseScmProviderRepository
java.lang.Object
org.apache.maven.scm.provider.ScmProviderRepository
org.apache.maven.scm.provider.clearcase.repository.ClearCaseScmProviderRepository
Provider Repository for ClearCase (standard, LT, UCM)
Url format for ClearCase and ClearCaseLT :
[view_name]:[configspec] or [view_name]|[configspec] Url format for ClearCaseUCM :
[view_name]|[configspec]|[vob_name]|[stream_name] or [view_name]:[configspec]:[vob_name]:[stream_name] [configspec] can be used in two different ways:
[view_name]:[configspec] or [view_name]|[configspec] Url format for ClearCaseUCM :
[view_name]|[configspec]|[vob_name]|[stream_name] or [view_name]:[configspec]:[vob_name]:[stream_name] [configspec] can be used in two different ways:
- Path to a config spec file that is used when creating the snapshot view, e.g. "\\myserver\clearcase\configspecs\my_module.txt", or:
- A load rule that is used to automatically create a config spec, e.g. "load /MY_VOB/my/project/dir"
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Define the default value from the clearcase-settings.xml when using ClearCasestatic final String
Define the flag used in the clearcase-settings.xml when using ClearCaseLTstatic final String
Define the flag used in the clearcase-settings.xml when using ClearCaseUCMprivate File
The user-specified config spec; may be null.private String
Describe the Element Nameprivate String
The directory to be loaded, when auto-generating the config spec.private ScmLogger
private Settings
Provider configuration settingsprivate String
Describe the stream linked to the view.private String
private boolean
private String
Describe the vob containing the stream. -
Constructor Summary
ConstructorsConstructorDescriptionClearCaseScmProviderRepository
(ScmLogger logger, String url, Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkUnexpectedParameter
(StringTokenizer tokenizer, int tokenNumber, int maxTokenNumber) private String
checkViewName
(StringTokenizer tokenizer) private File
createConfigSpecFile
(String spec) private String
fillDefaultProperties
(StringTokenizer tokenizer) private void
fillInProperties
(StringTokenizer tokenizer) private String
fillUCMProperties
(StringTokenizer tokenizer) Returns the user-supplied config spec ornull
in case it should be automatically generatedprivate String
Default: ${hostname}-{user.name}-mavenprivate String
Returns the VOB directory to be loaded when auto-generating the config spec.getViewName
(String uniqueId) Returns the name of the view.boolean
boolean
Returns true when the config spec has not been supplied by the user, but instead should automatically be generated by the pluginprivate void
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepository
getParent, getPassword, getRelativePath, getUser, getWorkItem, isPersistCheckout, isPushChanges, setPassword, setPersistCheckout, setPushChanges, setUser, setWorkItem
-
Field Details
-
logger
-
viewNameGivenByUser
private boolean viewNameGivenByUser -
viewName
-
configSpec
The user-specified config spec; may be null. -
loadDirectory
The directory to be loaded, when auto-generating the config spec. -
streamName
Describe the stream linked to the view. Only used with ClearCaseUCM -
vobName
Describe the vob containing the stream. Only used with ClearCaseUCM -
settings
Provider configuration settings -
elementName
Describe the Element Name -
CLEARCASE_LT
Define the flag used in the clearcase-settings.xml when using ClearCaseLT- See Also:
-
CLEARCASE_UCM
Define the flag used in the clearcase-settings.xml when using ClearCaseUCM- See Also:
-
CLEARCASE_DEFAULT
Define the default value from the clearcase-settings.xml when using ClearCase
-
-
Constructor Details
-
ClearCaseScmProviderRepository
public ClearCaseScmProviderRepository(ScmLogger logger, String url, Settings settings) throws ScmRepositoryException - Throws:
ScmRepositoryException
-
-
Method Details
-
parseUrl
private void parseUrl(String url) throws MalformedURLException, URISyntaxException, UnknownHostException -
fillInProperties
private void fillInProperties(StringTokenizer tokenizer) throws UnknownHostException, URISyntaxException, MalformedURLException -
fillDefaultProperties
- Throws:
UnknownHostException
-
fillUCMProperties
private String fillUCMProperties(StringTokenizer tokenizer) throws UnknownHostException, MalformedURLException -
checkViewName
- Throws:
UnknownHostException
-
checkUnexpectedParameter
private void checkUnexpectedParameter(StringTokenizer tokenizer, int tokenNumber, int maxTokenNumber) -
createConfigSpecFile
-
getDefaultViewName
Default: ${hostname}-{user.name}-maven- Returns:
- the default view name
- Throws:
UnknownHostException
-
getHostName
- Throws:
UnknownHostException
-
getViewName
Returns the name of the view. If it is defined in the scm url, then it is returned as defined there. If it is the default name, then the uniqueId is added- Parameters:
uniqueId
-- Returns:
- the name of the view
-
getConfigSpec
Returns the user-supplied config spec ornull
in case it should be automatically generated- Returns:
- File or
null
- See Also:
-
isAutoConfigSpec
public boolean isAutoConfigSpec()Returns true when the config spec has not been supplied by the user, but instead should automatically be generated by the plugin- Returns:
- true if auto config spec
-
getLoadDirectory
Returns the VOB directory to be loaded when auto-generating the config spec.- Returns:
null
when isAutoConfigSpec() returns false; otherwise the VOB directory
-
getStreamName
-
getVobName
-
getElementName
-
hasElements
public boolean hasElements()
-