org.apache.maven.scm.provider.perforce.command.checkout

Class PerforceCheckOutCommand

public class PerforceCheckOutCommand extends AbstractCheckOutCommand implements PerforceCommand

Version: $Id: PerforceChangeLogCommand.java 264804 2005-08-30 16:09:04Z evenisse $

Author: Mike Perham

Method Summary
static CommandlinecreateCommandLine(PerforceScmProviderRepository repo, File workingDirectory, String tag, String specname)
protected CheckOutScmResultexecuteCheckOutCommand(ScmProviderRepository repo, ScmFileSet files, String tag)
Check out the depot code at repo.getPath() into the target directory at files.getBasedir.

Method Detail

createCommandLine

public static Commandline createCommandLine(PerforceScmProviderRepository repo, File workingDirectory, String tag, String specname)

executeCheckOutCommand

protected CheckOutScmResult executeCheckOutCommand(ScmProviderRepository repo, ScmFileSet files, String tag)
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

Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.