Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ protected int parseStdOut(File stdOut) {
boolean isAppExec = false;
boolean isInputDownload = false;
boolean isResultUpload = false;
boolean isAfterExec = false;
String lfcHost = "";

try {
Expand All @@ -190,8 +189,7 @@ protected int parseStdOut(File stdOut) {
if (line.contains("<application_execution>")) {
isAppExec = true;
} else if (line.contains("</application_execution>")) {
isAppExec = false;
isAfterExec = true;
isAppExec = false;;
} else if (isAppExec) {
appStdOutWriter.write(line + "\n");
appStdOutBuf.append(line).append("\n");
Expand All @@ -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);
Expand Down
Loading