Class CommandLineSupport

java.lang.Object
org.jacoco.core.runtime.CommandLineSupport

final class CommandLineSupport extends Object
Internal utility to parse and create command lines arguments.
  • Field Details

  • Constructor Details

    • CommandLineSupport

      private CommandLineSupport()
  • Method Details

    • quote

      static String quote(String arg)
      Quotes a single command line argument if necessary.
      Parameters:
      arg - command line argument
      Returns:
      quoted argument
    • quote

      static String quote(List<String> args)
      Builds a single command line string from the given argument list. Arguments are quoted when necessary.
      Parameters:
      args - command line arguments
      Returns:
      combined command line
    • split

      static List<String> split(String commandline)
      Splits a command line into single arguments and removes quotes if present.
      Parameters:
      commandline - combined command line
      Returns:
      list of arguments
    • addArgument

      private static void addArgument(List<String> args, StringBuilder current)