@Override protected Process process(Object input) throws Exception { Validate.executionNotNull(command, "Command must not be null"); Validate.executionNotNull(command.getProgramName(), "Command program name must not be null"); ProcessBuilder builder = new ProcessBuilder(command.getFullCommand()); builder.directory(workingDirectory); builder.environment().putAll(environment); builder.redirectErrorStream(redirectErrorStream); return builder.start(); } }
@Override protected ProcessResult process(Object input) throws Exception { Validate.executionNotNull(commandBuilder, "Command must not be null");