public class ClientHelper extends ConnectionHelper
authorisationConfig, connection, connectionConfig
Constructor and Description |
---|
ClientHelper(P4StandardCredentials credential,
hudson.model.TaskListener listener,
String client) |
ClientHelper(String credential,
hudson.model.TaskListener listener,
String client) |
Modifier and Type | Method and Description |
---|---|
com.perforce.p4java.impl.generic.core.Changelist |
getChange(int id)
Gets the Changelist (p4 describe -s); shouldn't need a client, but
p4-java throws an exception if one is not set.
|
int |
getClientHead()
Get the change number for the last change within the scope of the
workspace view.
|
com.perforce.p4java.impl.generic.client.ClientView |
getClientView() |
com.perforce.p4java.impl.generic.core.Label |
getLabel(String id) |
List<com.perforce.p4java.core.file.IFileSpec> |
getTaggedFiles(String label) |
List<Object> |
listChanges()
Fetches a list of changes needed to update the workspace to head.
|
List<Object> |
listChanges(int changeLimit)
Fetches a list of changes needed to update the workspace to the specified
limit.
|
List<com.perforce.p4java.core.file.IFileSpec> |
loadShelvedFiles(int id) |
void |
setClient(Workspace workspace) |
void |
setLabel(com.perforce.p4java.impl.generic.core.Label label) |
boolean |
syncFiles(int change,
Populate populate)
Sync files to workspace at the specified change.
|
boolean |
syncFiles(String label,
Populate populate)
Sync files to workspace at the specified label.
|
boolean |
tidyWorkspace(Populate populate)
Cleans up the Perforce workspace after a previous build.
|
boolean |
unshelveFiles(int review)
Unshelve review into workspace.
|
boolean |
updateFiles()
Test to see if workspace is at the latest revision.
|
checkVersion, deleteClient, disconnect, findCredential, isConnected, isUnicode, log, login, logout, stop, validateFileSpecs, validateFileSpecs
public ClientHelper(String credential, hudson.model.TaskListener listener, String client) throws Exception
Exception
public ClientHelper(P4StandardCredentials credential, hudson.model.TaskListener listener, String client) throws Exception
Exception
public boolean updateFiles() throws Exception
Exception
public boolean syncFiles(int change, Populate populate) throws Exception
change
- Exception
public boolean syncFiles(String label, Populate populate) throws Exception
change
- Exception
public boolean tidyWorkspace(Populate populate) throws Exception
Exception
public boolean unshelveFiles(int review) throws Exception
review
- Exception
public int getClientHead() throws Exception
Exception
public com.perforce.p4java.impl.generic.core.Changelist getChange(int id) throws Exception
id
- Exception
public List<Object> listChanges() throws Exception
Exception
public List<Object> listChanges(int changeLimit) throws Exception
limit
- Exception
public com.perforce.p4java.impl.generic.core.Label getLabel(String id) throws Exception
Exception
public void setLabel(com.perforce.p4java.impl.generic.core.Label label) throws Exception
Exception
public List<com.perforce.p4java.core.file.IFileSpec> getTaggedFiles(String label) throws Exception
Exception
public List<com.perforce.p4java.core.file.IFileSpec> loadShelvedFiles(int id) throws Exception
Exception
public com.perforce.p4java.impl.generic.client.ClientView getClientView()
Copyright © 2004-2014. All Rights Reserved.