Class StarteamCommandLineUtils


  • public final class StarteamCommandLineUtils
    extends Object
    Command line construction utility.
    Author:
    Dan T. Tran
    • Method Detail

      • addCompressionOption

        public static void addCompressionOption​(org.codehaus.plexus.util.cli.Commandline cl)
      • addEOLOption

        public static void addEOLOption​(List<String> args)
      • toJavaPath

        public static String toJavaPath​(String path)
      • displayCommandlineWithoutPassword

        public static String displayCommandlineWithoutPassword​(org.codehaus.plexus.util.cli.Commandline cl)
                                                        throws ScmException
        Hellper method to display command line without password
        Parameters:
        cl -
        Returns:
        String
        Throws:
        ScmException
      • executeCommandline

        public static int executeCommandline​(org.codehaus.plexus.util.cli.Commandline cl,
                                             org.codehaus.plexus.util.cli.StreamConsumer consumer,
                                             org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr,
                                             ScmLogger logger)
                                      throws ScmException
        Throws:
        ScmException
      • getRelativeChildDirectory

        public static String getRelativeChildDirectory​(String parent,
                                                       String child)
        Given 2 paths, make sure parent and child are on the same tree return the port of child that not in parent
        Parameters:
        parent -
        child -
        Returns: