[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 |
Description |
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. |
Comments |
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 |