Class ViewMapHelper

java.lang.Object
org.jenkinsci.plugins.p4.client.ViewMapHelper

public class ViewMapHelper extends Object
  • Constructor Details

    • ViewMapHelper

      public ViewMapHelper()
  • Method Details

    • 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 view
      client - The client workspace name
      overlay - Overlay '+' mappings
      Returns:
      Client view mapping
    • getClientView

      public static String getClientView(List<String> views, String client, boolean external, boolean overlay)
    • getScriptView

      public static String getScriptView(String base, String scriptPath, String client)
    • splitDepotPath

      public static String[] splitDepotPath(String path)