public interface JavaMainCaller
| Modifier and Type | Method and Description |
|---|---|
void |
addArgs(String... args)
Adds arguments for the process
|
void |
addEnvVar(String key,
String value)
Adds an environemnt variable
|
void |
addJvmArgs(String... args)
Adds a JVM arg.
|
void |
addOption(String key,
boolean value)
Adds the key if the value is true
|
void |
addOption(String key,
File value)
Adds an option (key-file pair).
|
void |
addOption(String key,
String value)
Adds option (basically two arguments)
|
void |
redirectToLog()
request run to be redirected to maven/requester logger
|
void |
run(boolean displayCmd) |
boolean |
run(boolean displayCmd,
boolean throwFailure)
Runs the JavaMain with all the built up arguments/options
|
SpawnMonitor |
spawn(boolean displayCmd)
run the command without stream redirection nor waiting for exit
|
void addJvmArgs(String... args)
void addArgs(String... args)
void addOption(String key, File value)
void addOption(String key, boolean value)
void redirectToLog()
boolean run(boolean displayCmd,
boolean throwFailure)
throws Exception
ExceptionSpawnMonitor spawn(boolean displayCmd) throws Exception
displayCmd - ExceptionCopyright © 2012–2015. All rights reserved.