asJoinedOutput property

String asJoinedOutput

Returns the line-concatenated output of stdout and stderr (both converted to String), and the final output trimmed.

Implementation

String get asJoinedOutput {
  return [
    stdout.asString.trim(),
    stderr.asString.trim(),
  ].join('\n').trim();
}