Package org.jenkinsci.plugins.p4.client
Class ViewMapHelper
java.lang.Object
org.jenkinsci.plugins.p4.client.ViewMapHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetClientView(String depotView, String client, boolean overlay) Generates client view mapping string.static StringgetClientView(List<String> views, String client, boolean external, boolean overlay) static StringgetScriptView(String base, String scriptPath, String client) static String[]splitDepotPath(String path)
-
Constructor Details
-
ViewMapHelper
public ViewMapHelper()
-
-
Method Details
-
getClientView
Generates client view mapping string. e.g //depot/src/... //ws/src/...This method handles the case where multiple items are specified in dpotSyntax delimitted with a new line character \n, in addition to standard specification. e.g //depot/src/...\n//depot/tgt/...
If multiple items are speicified in depot syntax, each client syntax will be appended with the part of the depot syntax that follows //, to avoid ambiguity.
For instance //depot/src/...\n//depot/tgt/... with a client syntax of jenkins-job will generate the following view,
//depot/src/... //jenkins-job/depot/src/... //depot/tgt/... //jenkins-job/depot/tgt/...
- Parameters:
depotView- The left hand side of the client viewclient- The client workspace nameoverlay- Overlay '+' mappings- Returns:
- Client view mapping
-
getClientView
-
getScriptView
-
splitDepotPath
-