org.apache.maven.scm.provider.perforce.command.checkout
public class PerforceCheckOutCommand extends AbstractCheckOutCommand implements PerforceCommand
Constructor and Description |
---|
PerforceCheckOutCommand() |
Modifier and Type | Method and Description |
---|---|
static Commandline |
createCommandLine(PerforceScmProviderRepository repo,
File workingDirectory,
ScmVersion version,
String specname) |
protected CheckOutScmResult |
executeCheckOutCommand(ScmProviderRepository repo,
ScmFileSet files,
ScmVersion version,
boolean recursive)
Check out the depot code at
repo.getPath() into the target
directory at files.getBasedir . |
executeCheckOutCommand, executeCommand
execute, getLogger, setLogger
public PerforceCheckOutCommand()
protected CheckOutScmResult executeCheckOutCommand(ScmProviderRepository repo, ScmFileSet files, ScmVersion version, boolean recursive) throws ScmException
repo.getPath()
into the target
directory at files.getBasedir
. Perforce does not support
arbitrary checkout of versioned source so we need to set up a well-known
clientspec which will hold the required info.
1) A clientspec will be created or updated which holds a temporary
mapping from the repo path to the target directory.
2) This clientspec is sync'd to pull all the files onto the client
Execute Check out command line.executeCheckOutCommand
in class AbstractCheckOutCommand
repo
- not nullfiles
- not nullversion
- not nullrecursive
- true
if recursive check out is wanted, false
otherwise.ScmException
- if anypublic static Commandline createCommandLine(PerforceScmProviderRepository repo, File workingDirectory, ScmVersion version, String specname)
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.