Class GitCommandLineUtils

    • Method Detail

      • addTarget

        public static void addTarget​(org.codehaus.plexus.util.cli.Commandline commandLine,
                                     List<File> files)
      • getBaseGitCommandLine

        public static org.codehaus.plexus.util.cli.Commandline getBaseGitCommandLine​(File workingDirectory,
                                                                                     String command)
        Use this only for commands not requiring environment variables (i.e. local commands).
      • execute

        public static int execute​(org.codehaus.plexus.util.cli.Commandline commandline,
                                  org.codehaus.plexus.util.cli.StreamConsumer consumer,
                                  org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr)
                           throws ScmException
        Throws:
        ScmException
      • execute

        public static int execute​(org.codehaus.plexus.util.cli.Commandline commandLine,
                                  org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stdout,
                                  org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer stderr)
                           throws ScmException
        Throws:
        ScmException