Class Commandline.Argument

java.lang.Object
org.apache.maven.shared.utils.cli.Commandline.Argument
All Implemented Interfaces:
Arg
Enclosing class:
Commandline

public static class Commandline.Argument extends Object implements Arg
A single command line argument
  • Constructor Details

    • Argument

      public Argument()
  • Method Details

    • setValue

      public void setValue(String value)
      Specified by:
      setValue in interface Arg
      Parameters:
      value - the value to be set
    • setLine

      public void setLine(String line) throws CommandLineException
      Specified by:
      setLine in interface Arg
      Parameters:
      line - the line of arguments
      Throws:
      CommandLineException - in case of unbalanced quotes.
    • setFile

      public void setFile(File value)
      Specified by:
      setFile in interface Arg
      Parameters:
      value - the file to be set
    • setMask

      public void setMask(boolean mask)
      Whether to hide the argument value when a command line prints the arguments.
      Specified by:
      setMask in interface Arg
      Parameters:
      mask - new state of the mask property
    • isMask

      public boolean isMask()
      Returns:
      true/false