org.apache.maven.scm.provider.perforce.command.checkout
Class PerforceCheckOutCommand
java.lang.Object
org.apache.maven.scm.command.AbstractCommand
org.apache.maven.scm.command.checkout.AbstractCheckOutCommand
org.apache.maven.scm.provider.perforce.command.checkout.PerforceCheckOutCommand
- All Implemented Interfaces:
- org.apache.maven.scm.command.Command, PerforceCommand
- public class PerforceCheckOutCommand
- extends org.apache.maven.scm.command.checkout.AbstractCheckOutCommand
- implements PerforceCommand
- Version:
- $Id: PerforceChangeLogCommand.java 264804 2005-08-30 16:09:04Z
evenisse $
- Author:
- Mike Perham
Fields inherited from interface org.apache.maven.scm.command.Command |
ROLE |
Method Summary |
static org.codehaus.plexus.util.cli.Commandline |
createCommandLine(PerforceScmProviderRepository repo,
java.io.File workingDirectory,
java.lang.String tag,
java.lang.String specname)
|
protected org.apache.maven.scm.command.checkout.CheckOutScmResult |
executeCheckOutCommand(org.apache.maven.scm.provider.ScmProviderRepository repo,
org.apache.maven.scm.ScmFileSet files,
java.lang.String tag)
Check out the depot code at repo.getPath() into the target
directory at files.getBasedir . |
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 |
PerforceCheckOutCommand
public PerforceCheckOutCommand()
executeCheckOutCommand
protected org.apache.maven.scm.command.checkout.CheckOutScmResult executeCheckOutCommand(org.apache.maven.scm.provider.ScmProviderRepository repo,
org.apache.maven.scm.ScmFileSet files,
java.lang.String tag)
throws org.apache.maven.scm.ScmException
- Check out the depot code at
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
- Throws:
org.apache.maven.scm.ScmException
createCommandLine
public static org.codehaus.plexus.util.cli.Commandline createCommandLine(PerforceScmProviderRepository repo,
java.io.File workingDirectory,
java.lang.String tag,
java.lang.String specname)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.