Package org.jenkinsci.plugins.p4.client
Class ViewMapHelper
- java.lang.Object
-
- org.jenkinsci.plugins.p4.client.ViewMapHelper
-
public class ViewMapHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ViewMapHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getClientView(String depotView, String client, boolean overlay)
Generates client view mapping string.static String
getClientView(List<String> views, String client, boolean external, boolean overlay)
static String
getScriptView(String base, String scriptPath, String client)
static String[]
splitDepotPath(String path)
-
-
-
Method Detail
-
getClientView
public static String getClientView(String depotView, String client, boolean overlay)
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
public static String getClientView(List<String> views, String client, boolean external, boolean overlay)
-
-