public class CommandLineBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
argumentList |
| Constructor and Description |
|---|
CommandLineBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object... args)
Add an entry to the command list
|
void |
addOutAndErrFiles(String stdout,
String stderr)
Append the output and error files to the tail of the command
|
String |
build()
Build the command line
|
String |
elt(int offset)
Get the value at an offset
|
List<String> |
getArgumentList() |
int |
size()
Get the number of arguments
|
String |
toString()
This just returns the command line
|
public void add(Object... args)
args - arguments -these will be converted stringspublic String elt(int offset)
offset - offsetpublic int size()
public void addOutAndErrFiles(String stdout, String stderr)
stdout - outstderr - error. Set this to null to append into stdoutpublic String toString()
public String build()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.