From a452613cddb558069331cdcb70e2a1e85e212987 Mon Sep 17 00:00:00 2001 From: Axel Bonnet Date: Mon, 17 Nov 2025 10:35:35 +0100 Subject: [PATCH] read return value log from the begining of the output file --- .../insalyon/creatis/gasw/execution/GaswOutputParser.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/fr/insalyon/creatis/gasw/execution/GaswOutputParser.java b/src/main/java/fr/insalyon/creatis/gasw/execution/GaswOutputParser.java index 84aa1d5..ae92d50 100644 --- a/src/main/java/fr/insalyon/creatis/gasw/execution/GaswOutputParser.java +++ b/src/main/java/fr/insalyon/creatis/gasw/execution/GaswOutputParser.java @@ -177,7 +177,6 @@ protected int parseStdOut(File stdOut) { boolean isAppExec = false; boolean isInputDownload = false; boolean isResultUpload = false; - boolean isAfterExec = false; String lfcHost = ""; try { @@ -190,8 +189,7 @@ protected int parseStdOut(File stdOut) { if (line.contains("")) { isAppExec = true; } else if (line.contains("")) { - isAppExec = false; - isAfterExec = true; + isAppExec = false;; } else if (isAppExec) { appStdOutWriter.write(line + "\n"); appStdOutBuf.append(line).append("\n"); @@ -214,7 +212,7 @@ protected int parseStdOut(File stdOut) { int uploadTime = Integer.parseInt(lineSplitted[lineSplitted.length - 2]); job.setEnd(addDate(job.getUpload(), Calendar.SECOND, uploadTime)); - } else if (line.contains("Exiting with return value") && isAfterExec) { + } else if (line.contains("Exiting with return value")) { String[] errmsg = line.split("\\s+"); exitCode = Integer.parseInt(errmsg[errmsg.length - 1]); job.setExitCode(exitCode);