| Constructor and Description |
|---|
ExecBuilder() |
public ExecUtils.ExecBuilder withThreadsBaseName(String threadsBaseName)
public ExecUtils.ExecBuilder withCompletionHandler(ExecUtils.ExecCompletionHandler completionHandler)
public ExecUtils.ExecBuilder withOutputConsumer(ExecUtils.ExecSubscription consumer)
public ExecUtils.ExecBuilder withErrorConsumer(ExecUtils.ExecSubscription consumer)
public ExecUtils.ExecBuilder withOutputConsumers(List<ExecUtils.ExecSubscription> consumers)
public ExecUtils.ExecBuilder withErrorConsumers(List<ExecUtils.ExecSubscription> consumers)
public ExecUtils.ExecBuilder withCleanuper(ExecUtils.ExecCleanuper cleanuper)
public ExecUtils.ExecBuilder withCleanupers(List<ExecUtils.ExecCleanuper> cleanupers)
public ExecUtils.ExecBuilder withProcessBuilder(ProcessBuilder pb)
public ExecUtils.ExecBuilder withArgs(List<String> args)
public ExecUtils.ExecBuilder withArgs(String[] args)
public ExecUtils.ExecBuilder withEnv(Map<String,String> env)
public ExecUtils.ExecBuilder withEnv(String key, String value)
public ExecUtils.ExecBuilder withCwd(File cwd)
public ExecUtils.ExecBuilder withInput(String input)
public ExecUtils.ExecBuilder withKiller(ExecUtils.LazyInitExecKiller killer)
public int exec()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.