org.apache.maven.scm.provider.perforce

Class PerforceScmProvider

public class PerforceScmProvider extends AbstractScmProvider

Version: $Id: PerforceScmProvider.java 384016 2006-03-07 21:17:26Z evenisse $

Author: Trygve Laugstøl

Field Summary
static StringDEFAULT_CLIENTSPEC_PROPERTY
Method Summary
protected AddScmResultadd(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
protected ChangeLogScmResultchangelog(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters)
protected CheckInScmResultcheckin(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
protected CheckOutScmResultcheckout(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
static Stringclean(String string)
static StringcreateClientspec(PerforceScmProviderRepository repo, String specname, File workDir)
static CommandlinecreateP4Command(PerforceScmProviderRepository repo, File workingDir)
protected DiffScmResultdiff(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
protected EditScmResultedit(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
static StringgetCanonicalRepoPath(String repoPath)
Given a path like "//depot/foo/bar", returns the proper path to include everything beneath it.
static StringgetClientspecName(PerforceScmProviderRepository repo, File workDir)
StringgetScmType()
protected LoginScmResultlogin(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
ScmProviderRepositorymakeProviderScmRepository(String scmSpecificUrl, char delimiter)
protected RemoveScmResultremove(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
booleanrequiresEditMode()
protected StatusScmResultstatus(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
protected TagScmResulttag(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
protected UnEditScmResultunedit(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
protected UpdateScmResultupdate(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

Field Detail

DEFAULT_CLIENTSPEC_PROPERTY

public static final String DEFAULT_CLIENTSPEC_PROPERTY

Method Detail

add

protected AddScmResult add(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

changelog

protected ChangeLogScmResult changelog(ScmRepository repository, ScmFileSet fileSet, CommandParameters parameters)

See Also: org.apache.maven.scm.provider.AbstractScmProvider#changelog(org.apache.maven.scm.repository.ScmRepository, org.apache.maven.scm.ScmFileSet, org.apache.maven.scm.CommandParameters)

checkin

protected CheckInScmResult checkin(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

checkout

protected CheckOutScmResult checkout(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

clean

public static String clean(String string)

createClientspec

public static String createClientspec(PerforceScmProviderRepository repo, String specname, File workDir)

createP4Command

public static Commandline createP4Command(PerforceScmProviderRepository repo, File workingDir)

diff

protected DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

edit

protected EditScmResult edit(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

getCanonicalRepoPath

public static String getCanonicalRepoPath(String repoPath)
Given a path like "//depot/foo/bar", returns the proper path to include everything beneath it.

//depot/foo/bar -> //depot/foo/bar/... //depot/foo/bar/ -> //depot/foo/bar/... //depot/foo/bar/... -> //depot/foo/bar/...

getClientspecName

public static String getClientspecName(PerforceScmProviderRepository repo, File workDir)

getScmType

public String getScmType()

login

protected LoginScmResult login(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

makeProviderScmRepository

public ScmProviderRepository makeProviderScmRepository(String scmSpecificUrl, char delimiter)

remove

protected RemoveScmResult remove(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

requiresEditMode

public boolean requiresEditMode()

status

protected StatusScmResult status(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

tag

protected TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

unedit

protected UnEditScmResult unedit(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)

update

protected UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, CommandParameters params)
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.