org.codehaus.plexus.util.cli.shell
Class CmdShell

java.lang.Object
  extended byorg.codehaus.plexus.util.cli.shell.Shell
      extended byorg.codehaus.plexus.util.cli.shell.CmdShell

public class CmdShell
extends Shell

Implementation to call the CMD Shell present on Windows NT, 2000 and XP

Since:
1.2
Author:
Carlos Sanchez

Constructor Summary
CmdShell()
           
 
Method Summary
 java.util.List getCommandLine(java.lang.String executable, java.lang.String[] arguments)
          Specific implementation that quotes the all the command line
 
Methods inherited from class org.codehaus.plexus.util.cli.shell.Shell
getShellArgs, getShellCommand, getShellCommandLine, setShellArgs, setShellCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdShell

public CmdShell()
Method Detail

getCommandLine

public java.util.List getCommandLine(java.lang.String executable,
                                     java.lang.String[] arguments)
Specific implementation that quotes the all the command line

Overrides:
getCommandLine in class Shell
Parameters:
executable - executable that the shell has to call
arguments - arguments for the executable, not the shell
Returns:
List with one String object with executable and arguments quoted as needed


Copyright © 2001-2006 Codehaus. All Rights Reserved.