Need to access OutputStream within a TaskListener

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      The current TaskListener API exposes only a PrintStream. This is convenient for typical callers, but PrintStream is simply a utility class, and it makes IOException handling opaque. This has resulted in the need in at least one case to "unwrap" it using reflection, which then breaks on Java 17. The underlying OutputStream should rather be exposed directly. (There are only a few implementations so it should not be hard to offer it most of the time.)

            Assignee:
            Unassigned
            Reporter:
            Jesse Glick
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: