Class ClearCaseCheckOutCommand
java.lang.Object
org.apache.maven.scm.command.AbstractCommand
org.apache.maven.scm.command.checkout.AbstractCheckOutCommand
org.apache.maven.scm.provider.clearcase.command.checkout.ClearCaseCheckOutCommand
- All Implemented Interfaces:
Command
,ClearCaseCommand
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
createConfigSpec
(String loadDirectory, String elementName, ScmVersion version) protected String
createConfigSpec
(String loadDirectory, ScmVersion version) Creates a config spec that loads the given loadDirectory and uses the given version tagprotected org.codehaus.plexus.util.cli.Commandline
createCreateViewCommandLine
(File workingDirectory, String viewName, String streamIdentifier) protected org.codehaus.plexus.util.cli.Commandline
createUpdateConfigSpecCommandLine
(File workingDirectory, File configSpecLocation, String viewName) protected CheckOutScmResult
executeCheckOutCommand
(ScmProviderRepository repository, ScmFileSet fileSet, ScmVersion version, boolean recursive, boolean shallow) Execute Check out command line.private String
protected String
getStreamIdentifier
(String streamName, String vobName) Format the stream identifier for ClearCaseUCMprivate String
getUniqueViewName
(ClearCaseScmProviderRepository repository, String absolutePath) private String
protected String
protected boolean
protected boolean
void
setSettings
(Settings settings) protected boolean
useVWS()
protected File
writeTemporaryConfigSpecFile
(String configSpecContents, String viewName) Creates a temporary config spec file with the given contents that will be deleted on VM exit.Methods inherited from class org.apache.maven.scm.command.checkout.AbstractCheckOutCommand
executeCheckOutCommand, executeCommand
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute, getLogger, setLogger
-
Field Details
-
settings
-
-
Constructor Details
-
ClearCaseCheckOutCommand
public ClearCaseCheckOutCommand()
-
-
Method Details
-
executeCheckOutCommand
protected CheckOutScmResult executeCheckOutCommand(ScmProviderRepository repository, ScmFileSet fileSet, ScmVersion version, boolean recursive, boolean shallow) throws ScmException Execute Check out command line.- Specified by:
executeCheckOutCommand
in classAbstractCheckOutCommand
- Parameters:
repository
- not nullfileSet
- not nullversion
- not nullrecursive
-true
if recursive check out is wanted,false
otherwise.shallow
-true
if shallow check out is wanted,false
otherwise.- Returns:
- the checkout result
- Throws:
ScmException
- if any
-
writeTemporaryConfigSpecFile
protected File writeTemporaryConfigSpecFile(String configSpecContents, String viewName) throws IOException Creates a temporary config spec file with the given contents that will be deleted on VM exit.- Parameters:
configSpecContents
- The contents for the fileviewName
- The name of the view; used to determine an appropriate file name- Throws:
IOException
-
createConfigSpec
Creates a config spec that loads the given loadDirectory and uses the given version tag- Parameters:
loadDirectory
- the VOB directory to be loadedversion
- ClearCase label type; notice that branch types are not supported- Returns:
- Config Spec as String
-
createConfigSpec
-
createCreateViewCommandLine
protected org.codehaus.plexus.util.cli.Commandline createCreateViewCommandLine(File workingDirectory, String viewName, String streamIdentifier) throws IOException - Throws:
IOException
-
getStreamIdentifier
Format the stream identifier for ClearCaseUCM- Parameters:
streamName
-vobName
-- Returns:
- the formatted stream identifier if the two parameter are not null
-
createUpdateConfigSpecCommandLine
-
getUniqueViewName
-
getViewStore
-
isClearCaseLT
protected boolean isClearCaseLT() -
isClearCaseUCM
protected boolean isClearCaseUCM() -
useVWS
protected boolean useVWS()- Returns:
- the value of the setting property 'useVWS'
-
getHostName
-
getUserName
-
setSettings
-