org.apache.maven.surefire.booter
Class Commandline

java.lang.Object
  extended by org.codehaus.plexus.util.cli.Commandline
      extended by org.apache.maven.surefire.booter.Commandline
All Implemented Interfaces:
java.lang.Cloneable

public class Commandline
extends org.codehaus.plexus.util.cli.Commandline

Commandline class copied from plexus-utils with fix for PLX-161, as we can not upgrade plexus-utils until it's upgraded in core Maven

TODO deprecate when plexus-utils 1.2 can be used

Author:
Carlos Sanchez

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.plexus.util.cli.Commandline
org.codehaus.plexus.util.cli.Commandline.Argument, org.codehaus.plexus.util.cli.Commandline.Marker
 
Field Summary
private  org.codehaus.plexus.util.cli.shell.Shell shell
           
 
Fields inherited from class org.codehaus.plexus.util.cli.Commandline
arguments, envVars, executable, OS_NAME, WINDOWS
 
Constructor Summary
Commandline()
           
 
Method Summary
 org.codehaus.plexus.util.cli.shell.Shell getShell()
          Get the shell to be used in this command line.
 java.lang.String[] getShellCommandline()
          Returns the shell, executable and all defined arguments.
private  void setDefaultShell()
          Sets the shell or command-line interpretor for the detected operating system, and the shell arguments.
 void setShell(org.codehaus.plexus.util.cli.shell.Shell shell)
          Allows to set the shell to be used in this command line.
 
Methods inherited from class org.codehaus.plexus.util.cli.Commandline
addArg, addArg, addArguments, addEnvironment, addSystemEnvironment, clear, clearArgs, clone, createArg, createArg, createArgument, createArgument, createMarker, execute, getArguments, getCommandline, getEnvironmentVariables, getExecutable, getPid, getSystemEnvVars, getWorkingDirectory, quoteArgument, setExecutable, setPid, setWorkingDirectory, setWorkingDirectory, size, toString, toString, translateCommandline
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

shell

private org.codehaus.plexus.util.cli.shell.Shell shell
Constructor Detail

Commandline

public Commandline()
Method Detail

setDefaultShell

private void setDefaultShell()

Sets the shell or command-line interpretor for the detected operating system, and the shell arguments.


getShellCommandline

public java.lang.String[] getShellCommandline()
Returns the shell, executable and all defined arguments.

Overrides:
getShellCommandline in class org.codehaus.plexus.util.cli.Commandline

setShell

public void setShell(org.codehaus.plexus.util.cli.shell.Shell shell)
Allows to set the shell to be used in this command line.

Overrides:
setShell in class org.codehaus.plexus.util.cli.Commandline
Parameters:
shell -
Since:
1.2

getShell

public org.codehaus.plexus.util.cli.shell.Shell getShell()
Get the shell to be used in this command line.

Overrides:
getShell in class org.codehaus.plexus.util.cli.Commandline
Since:
1.2