or a separate redirect stream handler thread can be defined as follows -
Process process = Runtime.getRuntime().exec(commandArguments, null, workingDir);
new RedirectStreamHandler(new PrintWriter(out, true), process.getInputStream());
new RedirectStreamHandler(new PrintWriter(err, true), process.getErrorStream());
RedirectStreamHandler will extend the thread and use bufferReader to read the stream line by line and redirect it to the standard output console. The above code will be used just before 'alignProcess.waitFor();'
We can use a way we are already doing pb.redirectErrorStream(true);
or a separate redirect stream handler thread can be defined as follows -
RedirectStreamHandler will extend the thread and use bufferReader to read the stream line by line and redirect it to the standard output console. The above code will be used just before 'alignProcess.waitFor();'
Can it be assigned to me? @codeanticode