org.apache.geronimo.testsupport.commands
Class CommandTestSupport

java.lang.Object
  extended by org.apache.geronimo.testsupport.commands.CommandTestSupport

public class CommandTestSupport
extends Object


Field Summary
static String DEPLOY
           
protected static String geronimoHome
           
static String GSH
           
protected static long timeout
           
 
Constructor Summary
CommandTestSupport()
           
 
Method Summary
 void execute(String command, List<String> args, InputStream in, OutputStream out)
           
 void execute(String command, String[] args, InputStream in, OutputStream out)
           
protected  List<String> getCommandArguments(String command)
           
protected  List<String> getCommandEnvironment(String command)
           
 boolean isWindows()
           
protected  String resolveCommandForOS(String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GSH

public static final String GSH
See Also:
Constant Field Values

DEPLOY

public static final String DEPLOY
See Also:
Constant Field Values

timeout

protected static final long timeout
See Also:
Constant Field Values

geronimoHome

protected static String geronimoHome
Constructor Detail

CommandTestSupport

public CommandTestSupport()
Method Detail

execute

public void execute(String command,
                    String[] args,
                    InputStream in,
                    OutputStream out)
             throws Exception
Throws:
Exception

execute

public void execute(String command,
                    List<String> args,
                    InputStream in,
                    OutputStream out)
             throws Exception
Throws:
Exception

getCommandArguments

protected List<String> getCommandArguments(String command)

getCommandEnvironment

protected List<String> getCommandEnvironment(String command)

resolveCommandForOS

protected String resolveCommandForOS(String command)

isWindows

public boolean isWindows()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.