|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tek42.perforce.parse.AbstractPerforceTemplate
com.tek42.perforce.parse.Workspaces
public class Workspaces
Base API object for interacting with workspaces.
| Constructor Summary | |
|---|---|
Workspaces(Depot depot)
|
|
| Method Summary | |
|---|---|
Workspace |
getWorkspace(java.lang.String name)
Returns a workspace specified by name. |
void |
saveWorkspace(Workspace workspace)
Saves changes to an existing workspace, or creates a new one. |
java.lang.StringBuilder |
syncDryRun()
Test whether there are any changes pending for the current client (P4CLIENT env var). |
java.lang.StringBuilder |
syncTo(java.lang.String path,
boolean forceSync)
Provides method to sync to a depot path and allows for any revision, changelist, label, etc. |
java.lang.StringBuilder |
syncToHead(java.lang.String path)
Synchronizes to the latest change for the specified path. |
java.lang.StringBuilder |
syncToHead(java.lang.String path,
boolean forceSync)
Synchronizes to the latest change for the specified path. |
| Methods inherited from class com.tek42.perforce.parse.AbstractPerforceTemplate |
|---|
getExtraParams, getLogger, getPerforceResponse, getRawPerforceResponseLines, hitMax, login, parseList, saveToPerforce |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Workspaces(Depot depot)
| Method Detail |
|---|
public Workspace getWorkspace(java.lang.String name)
throws PerforceException
name -
PerforceException
public void saveWorkspace(Workspace workspace)
throws PerforceException
workspace -
PerforceException
public java.lang.StringBuilder syncToHead(java.lang.String path)
throws PerforceException
syncTo(String, boolean)
path -
PerforceException
public java.lang.StringBuilder syncToHead(java.lang.String path,
boolean forceSync)
throws PerforceException
path - The depot path to sync toforceSync - True to force sync and overwrite local files
PerforceException
public java.lang.StringBuilder syncTo(java.lang.String path,
boolean forceSync)
throws PerforceException
A force sync can be specified by passing true to forceSync.
path - The depot path to sync to. Perforce suffix for [revRange] is allowed.forceSync - Should we force a sync to grab all files regardless of version on disk?
PerforceException
public java.lang.StringBuilder syncDryRun()
throws PerforceException
PerforceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||