Merge pull request #30 from corda/CORE-12019/Capture-CPI-build-errors
CORE-12019 Capture CPI build errors simple impl from Graham
This commit is contained in:
commit
a043d8dcd1
@ -205,18 +205,10 @@ 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
|
//Get CPI packaging errors
|
||||||
|
if (proc.getErrorStream().available() > 0) {
|
||||||
// BufferedReader reader = new BufferedReader(new InputStreamReader(proc.getInputStream()));
|
proc.getErrorStream().transferTo(pc.out);
|
||||||
// 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();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createNotaryCPI() throws CsdeException, IOException, InterruptedException {
|
private void createNotaryCPI() throws CsdeException, IOException, InterruptedException {
|
||||||
|
Loading…
Reference in New Issue
Block a user