public interface CommandBuilder
Modifier and Type | Method and Description |
---|---|
org.apache.commons.exec.Executor |
configure(org.apache.commons.exec.Executor exec)
Configure the
Executor . |
org.apache.commons.exec.CommandLine |
createCommandLine(AdaptrisMessage msg)
Build a
ProcessBuilder object from the available data. |
java.util.Map<java.lang.String,java.lang.String> |
createEnvironment(AdaptrisMessage msg)
Create the environment when executing the process.
|
org.apache.commons.exec.CommandLine createCommandLine(AdaptrisMessage msg) throws CoreException
ProcessBuilder
object from the available data.msg
- the AdaptrisMessageProcessBuilder
CoreException
- wrapping any other exception.org.apache.commons.exec.Executor configure(org.apache.commons.exec.Executor exec) throws CoreException
Executor
.exec
- the Executor to configure.CoreException
- wrapping other exceptions.java.util.Map<java.lang.String,java.lang.String> createEnvironment(AdaptrisMessage msg) throws CoreException
msg
- the message.Executor.execute(CommandLine, Map)
. If null, then the default environment is used.CoreException
- wrapping other exceptions