+ processReturnCode + ".\nThe last input was: "
+ line
+ ".\nThe standard output was: " + outputString
+ "\nThe error output was: " + errorString);
} else {
error.send(0, new StringToken(errorString));
output.send(0, new StringToken(outputString));
}
}
} catch (InterruptedException interrupted) {
throw new InternalErrorException(this, interrupted,
"_process.waitFor() was interrupted");
}
String outputString = _outputGobbler.getAndReset();
String errorString = _errorGobbler.getAndReset();
if (_debugging) {
_debug("Exec: Error: '" + errorString + "'");
_debug("Exec: Output: '" + outputString + "'");
}
// We could have a parameter that if it was set
// we would throw an exception if there was any error data.
error.send(0, new StringToken(errorString));
output.send(0, new StringToken(outputString));
}