(.js)
laraImport("lara.util.ProcessExecutor");
(.lara)
import lara.util.ProcessExecutor;
Classes:
new ProcessExecutor()Launches processes.
execute(command)getCommand()getConsoleOutput()getExecutableFile()getReturnValue()getStdErr()getStdOut()getWorkingDir()setAppend([printToConsole = true], append)Sets if the output should be appended to the output of the previous execution.
setCustomReturnValue(returnValue)setLogErrorsOnly(logErrorsOnly)setOutputFile(outputFile)setOutputPrefix(outputPrefix)setPrintToConsole([printToConsole = true])Sets if the output of the process should be output to the console.
setStopOnError(stopOnError)If true, throws an exception if there is a problem when running the process. By default is set to 'false'.
setTimeUnit(timeUnit)Sets the time unit of the timeout value. By defaults, is SECONDS.
setTimeout(timeout)setWorkingDir(workingDir)