org.apache.maven.scm.provider.clearcase.command.checkout
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:
- org.apache.maven.scm.command.Command, ClearCaseCommand
public class ClearCaseCheckOutCommand
- extends org.apache.maven.scm.command.checkout.AbstractCheckOutCommand
- implements ClearCaseCommand
- Author:
- Wim Deblauwe, Frederic Mura
| Fields inherited from interface org.apache.maven.scm.command.Command |
ROLE |
|
Method Summary |
protected java.lang.String |
createConfigSpec(java.lang.String loadDirectory,
org.apache.maven.scm.ScmVersion version)
Creates a config spec that loads the given loadDirectory and uses the
given version tag |
protected org.codehaus.plexus.util.cli.Commandline |
createCreateViewCommandLine(java.io.File workingDirectory,
java.lang.String viewName,
java.lang.String streamIdentifier)
|
protected org.codehaus.plexus.util.cli.Commandline |
createUpdateConfigSpecCommandLine(java.io.File workingDirectory,
java.io.File configSpecLocation,
java.lang.String viewName)
|
protected org.apache.maven.scm.command.checkout.CheckOutScmResult |
executeCheckOutCommand(org.apache.maven.scm.provider.ScmProviderRepository repository,
org.apache.maven.scm.ScmFileSet fileSet,
org.apache.maven.scm.ScmVersion version)
|
protected java.lang.String |
getStreamIdentifier(java.lang.String streamName,
java.lang.String vobName)
Format the stream identifier for ClearCaseUCM |
protected java.lang.String |
getViewStore()
|
protected boolean |
isClearCaseLT()
|
protected boolean |
isClearCaseUCM()
|
void |
setSettings(Settings settings)
|
protected boolean |
useVWS()
|
protected java.io.File |
writeTemporaryConfigSpecFile(java.lang.String configSpecContents,
java.lang.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 |
executeCommand |
| Methods inherited from class org.apache.maven.scm.command.AbstractCommand |
execute, getLogger, setLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClearCaseCheckOutCommand
public ClearCaseCheckOutCommand()
executeCheckOutCommand
protected org.apache.maven.scm.command.checkout.CheckOutScmResult executeCheckOutCommand(org.apache.maven.scm.provider.ScmProviderRepository repository,
org.apache.maven.scm.ScmFileSet fileSet,
org.apache.maven.scm.ScmVersion version)
throws org.apache.maven.scm.ScmException
- Specified by:
executeCheckOutCommand in class org.apache.maven.scm.command.checkout.AbstractCheckOutCommand
- Throws:
org.apache.maven.scm.ScmException
writeTemporaryConfigSpecFile
protected java.io.File writeTemporaryConfigSpecFile(java.lang.String configSpecContents,
java.lang.String viewName)
throws java.io.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:
java.io.IOException
createConfigSpec
protected java.lang.String createConfigSpec(java.lang.String loadDirectory,
org.apache.maven.scm.ScmVersion version)
- 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
createCreateViewCommandLine
protected org.codehaus.plexus.util.cli.Commandline createCreateViewCommandLine(java.io.File workingDirectory,
java.lang.String viewName,
java.lang.String streamIdentifier)
throws java.io.IOException
- Throws:
java.io.IOException
getStreamIdentifier
protected java.lang.String getStreamIdentifier(java.lang.String streamName,
java.lang.String vobName)
- Format the stream identifier for ClearCaseUCM
- Parameters:
streamName - vobName -
- Returns:
- the formatted stream identifier if the two parameter are not null
createUpdateConfigSpecCommandLine
protected org.codehaus.plexus.util.cli.Commandline createUpdateConfigSpecCommandLine(java.io.File workingDirectory,
java.io.File configSpecLocation,
java.lang.String viewName)
getViewStore
protected java.lang.String getViewStore()
isClearCaseLT
protected boolean isClearCaseLT()
isClearCaseUCM
protected boolean isClearCaseUCM()
useVWS
protected boolean useVWS()
- Returns:
- the value of the setting property 'useVWS'
setSettings
public void setSettings(Settings settings)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.