public class ProcessExecHelper extends Object implements IProcessExecHelper
| Constructor and Description |
|---|
ProcessExecHelper(ProcessBuilder2 pb,
net.thevpc.nuts.NutsSession session,
net.thevpc.nuts.NutsPrintStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
dryExec() |
int |
exec() |
Future<Integer> |
execAsync() |
static ProcessExecHelper |
ofArgs(String[] args,
Map<String,String> env,
Path directory,
net.thevpc.nuts.NutsSessionTerminal prepareTerminal,
net.thevpc.nuts.NutsSessionTerminal execTerminal,
boolean showCommand,
boolean failFast,
long sleep,
boolean inheritSystemIO,
boolean redirectErr,
File outputFile,
File inputFile,
net.thevpc.nuts.NutsRunAs runAs,
net.thevpc.nuts.NutsSession session) |
static ProcessExecHelper |
ofDefinition(net.thevpc.nuts.NutsDefinition nutMainFile,
String[] args,
Map<String,String> env,
String directory,
Map<String,String> execProperties,
boolean showCommand,
boolean failFast,
long sleep,
boolean inheritSystemIO,
boolean redirectErr,
File outputFile,
File inputFile,
net.thevpc.nuts.NutsRunAs runAs,
net.thevpc.nuts.NutsSession session,
net.thevpc.nuts.NutsSession execSession) |
public ProcessExecHelper(ProcessBuilder2 pb, net.thevpc.nuts.NutsSession session, net.thevpc.nuts.NutsPrintStream out)
public static ProcessExecHelper ofArgs(String[] args, Map<String,String> env, Path directory, net.thevpc.nuts.NutsSessionTerminal prepareTerminal, net.thevpc.nuts.NutsSessionTerminal execTerminal, boolean showCommand, boolean failFast, long sleep, boolean inheritSystemIO, boolean redirectErr, File outputFile, File inputFile, net.thevpc.nuts.NutsRunAs runAs, net.thevpc.nuts.NutsSession session)
public static ProcessExecHelper ofDefinition(net.thevpc.nuts.NutsDefinition nutMainFile, String[] args, Map<String,String> env, String directory, Map<String,String> execProperties, boolean showCommand, boolean failFast, long sleep, boolean inheritSystemIO, boolean redirectErr, File outputFile, File inputFile, net.thevpc.nuts.NutsRunAs runAs, net.thevpc.nuts.NutsSession session, net.thevpc.nuts.NutsSession execSession) throws net.thevpc.nuts.NutsExecutionException
net.thevpc.nuts.NutsExecutionExceptionpublic void dryExec()
dryExec in interface IProcessExecHelperpublic int exec()
exec in interface IProcessExecHelperpublic Future<Integer> execAsync()
execAsync in interface IProcessExecHelperCopyright © 2021 vpc open source initiative. All rights reserved.