org.sonar.api.utils.command
Class Command

java.lang.Object
  extended by org.sonar.api.utils.command.Command

public final class Command
extends Object

Since:
2.7

Method Summary
 Command addArgument(String arg)
           
 Command addArguments(List<String> args)
           
 Command addArguments(String[] args)
           
static Command create(String executable)
          Create a command line without any arguments
 List<String> getArguments()
           
 String getExecutable()
           
 String toCommandLine()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getExecutable

public String getExecutable()

getArguments

public List<String> getArguments()

addArgument

public Command addArgument(String arg)

addArguments

public Command addArguments(List<String> args)

addArguments

public Command addArguments(String[] args)

toCommandLine

public String toCommandLine()

toString

public String toString()
Overrides:
toString in class Object

create

public static Command create(String executable)
Create a command line without any arguments

Parameters:
executable -


Copyright © 2009-2011 SonarSource. All Rights Reserved.