public class ViewMapHelper extends Object
Constructor and Description |
---|
ViewMapHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getClientView(List<String> views,
String client,
boolean external,
boolean overlay) |
static String |
getClientView(String depotView,
String client,
boolean overlay)
Generates client view mapping string.
|
static String |
getScriptView(String base,
String scriptPath,
String client) |
static String[] |
splitDepotPath(String path) |
public static String getClientView(String depotView, String client, boolean overlay)
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/...
depotView
- The left hand side of the client viewclient
- The client workspace nameoverlay
- Overlay '+' mappingspublic static String getClientView(List<String> views, String client, boolean external, boolean overlay)
Copyright © 2016–2019. All rights reserved.