CORE-12019 Fix PR comments

This commit is contained in:
Emil Gabrovski 2023-03-29 13:25:51 +03:00
parent cd57d05e7a
commit e65ed7617c

View File

@ -205,20 +205,6 @@ public class BuildCPIsHelper {
Process proc = pb.start(); Process proc = pb.start();
proc.waitFor(); proc.waitFor();
// todo: work out how to capture error code better than the following code
// BufferedReader reader = new BufferedReader(new InputStreamReader(proc.getInputStream()));
// File tempOutputFile = new File(String.format("%s/tempOutput.txt", pc.devEnvWorkspace));
// tempOutputFile.delete();
// FileWriter fileWriter = new FileWriter(tempOutputFile);
// String line;
// while (( line = reader.readLine()) != null){
// fileWriter.write(line + "\n");
// }
// fileWriter.close();
// todo: in the meantime, here is a simple working impl
//Get CPI packaging errors //Get CPI packaging errors
if (proc.getErrorStream().available() > 0) { if (proc.getErrorStream().available() > 0) {
proc.getErrorStream().transferTo(pc.out); proc.getErrorStream().transferTo(pc.out);