org.apache.maven.it.util.cli.shell
Class CmdShell

java.lang.Object
  extended by org.apache.maven.it.util.cli.shell.Shell
      extended by org.apache.maven.it.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
 List getCommandLine(String executable, String[] arguments)
          Specific implementation that quotes the all the command line
 
Methods inherited from class org.apache.maven.it.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 List getCommandLine(String executable,
                           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 © 2002-2011 The Apache Software Foundation. All Rights Reserved.