[GRADLE-1029] add captureStandardError() method on Task API to mirror existing captureStandardOutput() Created: 12/Jul/10  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 0.9-rc-1

Type: Bug
Reporter: Chris Beams Assignee: Adam Murdoch
Resolution: Fixed Votes: 0


Some times code out of your control (an ant taskdef in my case) will issue spurious log output to stderr that you would like to quell.

this can be done with captureStandardOutput(LogLevel.INFO), but there is no similar method for capturing stderr.

Comment by Adam Murdoch [ 18/Jul/10 ]

Added LoggingManager.captureStandardError() and Task.getLogging() to provide access to the task's LoggingManager, so you can use task.logging.captureStandardError LogLevel.INFO

Generated at Wed Jun 30 11:45:06 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.