public class PerforceScmProvider extends AbstractScmProvider
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CLIENTSPEC_PROPERTY |
ROLE
Constructor and Description |
---|
PerforceScmProvider() |
add, add, add, addListener, blame, blame, branch, branch, branch, branch, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, changeLog, checkIn, checkIn, checkIn, checkOut, checkOut, checkOut, checkOut, checkOut, checkOut, checkOut, diff, diff, edit, export, export, export, export, export, export, getLogger, getScmSpecificFilename, info, list, list, list, makeProviderScmRepository, mkdir, mkdir, remoteInfo, remove, sanitizeTagName, status, tag, tag, tag, unedit, untag, update, update, update, update, update, update, update, update, update, update, update, update, validateScmUrl, validateTagName
public static final String DEFAULT_CLIENTSPEC_PROPERTY
public PerforceScmProvider()
public boolean requiresEditMode()
AbstractScmProvider
requiresEditMode
in interface ScmProvider
requiresEditMode
in class AbstractScmProvider
public ScmProviderRepository makeProviderScmRepository(String scmSpecificUrl, char delimiter) throws ScmRepositoryException
ScmRepositoryException
public String getScmType()
protected ChangeLogScmResult changelog(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
changelog
in class AbstractScmProvider
ScmException
public AddScmResult add(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
add
in class AbstractScmProvider
ScmException
protected RemoveScmResult remove(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
remove
in class AbstractScmProvider
ScmException
protected CheckInScmResult checkin(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
checkin
in class AbstractScmProvider
ScmException
protected CheckOutScmResult checkout(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
checkout
in class AbstractScmProvider
ScmException
protected DiffScmResult diff(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
diff
in class AbstractScmProvider
ScmException
protected EditScmResult edit(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
edit
in class AbstractScmProvider
ScmException
protected LoginScmResult login(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
login
in class AbstractScmProvider
ScmException
protected StatusScmResult status(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
status
in class AbstractScmProvider
ScmException
protected TagScmResult tag(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
tag
in class AbstractScmProvider
ScmException
protected UnEditScmResult unedit(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
unedit
in class AbstractScmProvider
ScmException
protected UpdateScmResult update(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
update
in class AbstractScmProvider
ScmException
protected BlameScmResult blame(ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters params) throws ScmException
blame
in class AbstractScmProvider
ScmException
public static org.codehaus.plexus.util.cli.Commandline createP4Command(PerforceScmProviderRepository repo, File workingDir)
public static String getCanonicalRepoPath(String repoPath)
//depot/foo/bar -> //depot/foo/bar/... //depot/foo/bar/ -> //depot/foo/bar/... //depot/foo/bar/... -> //depot/foo/bar/...
repoPath
- public static String createClientspec(ScmLogger logger, PerforceScmProviderRepository repo, File workDir, String repoPath)
public static String getClientspecName(ScmLogger logger, PerforceScmProviderRepository repo, File workDir)
public static String getRepoPath(ScmLogger log, PerforceScmProviderRepository repo, File basedir)
log
- the logging object to userepo
- the Perforce repobasedir
- the base directory we are operating in. If pom.xml exists in this directory,
this method will verify repo.getPath()/pom.xml==
p4 where basedir/pom.xml
public static boolean isLive()
Copyright © 2003–2021 The Apache Software Foundation. All rights reserved.