Class CommandLineBuilder

java.lang.Object
ru.akman.maven.plugins.CommandLineBuilder

public class CommandLineBuilder extends Object
CommandLine builder is a wrapper added group of agruments to an option.
  • Constructor Details

    • CommandLineBuilder

      public CommandLineBuilder()
      Default constructor.
  • Method Details

    • setExecutable

      public void setExecutable(String executable)
      Set executable.
      Parameters:
      executable - the executable path
    • createOpt

      public CommandLineOption createOpt()
      Create a new option (group of arguments).
      Returns:
      created empty option
    • createArg

      public org.codehaus.plexus.util.cli.Arg createArg()
      Create a new agrument and a new option for it, then add created argument to this option.
      Returns:
      created option with added argument
    • buildCommandLine

      public org.codehaus.plexus.util.cli.Commandline buildCommandLine()
      Build command line.
      Returns:
      builded command line
    • buildOptionList

      public List<String> buildOptionList()
      Build list of options.
      Returns:
      builded option list