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:
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
 
Fields inherited from class org.codehaus.plexus.util.cli.Commandline
arguments, envVars, executable, OS_NAME, WINDOWS
 
Constructor Summary
Commandline()
           
 
Method Summary
 Shell getShell()
          Get the shell to be used in this command line.
 String[] getShellCommandline()
          Returns the shell, executable and all defined arguments.
 void setShell(Shell shell)
          Allows to set the shell to be used in this command line.
 
Methods inherited from class org.codehaus.plexus.util.cli.Commandline
addArguments, addEnvironment, addSystemEnvironment, clear, clearArgs, clone, createArgument, createArgument, createMarker, execute, getArguments, getCommandline, getCurrentEnvironment, getEnvironments, getExecutable, getSystemEnvVars, getWorkingDirectory, quoteArgument, setExecutable, setWorkingDirectory, size, toString, toString, translateCommandline
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Commandline

public Commandline()
Method Detail

getShellCommandline

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

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

setShell

public void setShell(Shell shell)
Allows to set the shell to be used in this command line.

Parameters:
shell -
Since:
1.2

getShell

public Shell getShell()
Get the shell to be used in this command line.

Since:
1.2


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.