Class ViewMapHelper


  • public class ViewMapHelper
    extends Object
    • Constructor Detail

      • ViewMapHelper

        public ViewMapHelper()
    • 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 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)
      • splitDepotPath

        public static String[] splitDepotPath​(String path)