processing / processing-android

Processing mode and core library to create Android apps with Processing
http://android.processing.org
779 stars 293 forks source link

Align Package process stream handling(Enhancement) #679

Closed rupeshkumar22 closed 2 years ago

rupeshkumar22 commented 2 years ago

We can use a way we are already doing pb.redirectErrorStream(true);

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();'

Can it be assigned to me? @codeanticode

codeanticode commented 2 years ago

No longer needed with Gradle signing.