[GRADLE-878] missing newline character when text is written to stderr Created: 26/Mar/10 Updated: 04/Jan/13 Resolved: 24/Nov/10 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.9 |
Fix Version/s: | 0.9-rc-1 |
Type: | Improvement | ||
Reporter: | Adam Murdoch | Assignee: | Adam Murdoch |
Resolution: | Fixed | Votes: | 0 |
Description |
There's a missing newline character between the current task name and the text written to stderr. |
Comments |
Comment by Rodion Moiseev [ 14/Jun/12 ] |
Still reproducible in version 1.0. New lines appear correct in the terminal, but do not work when redirecting. Here's sample output: $ gradle build 2>&1 | tee gradle.out ... :logformat:compileJava/home/rodion/workspace/logstx/logformat/src/main/java/com/logstorage/logformat/dag/LogformatConverter.java:92: warning: [unchecked] unchecked cast for (Element e2 : ((List<Element>) e.getChildren("action"))) { ^ required: List<Element> found: List ... The above output appears in the console (piped through tee) and in the resulting gradle.out file, in identical manner. This has an unfortunate effect on Gradle-based plugins (e.g. Jenkins, see JENKINS-12234 for a screenshot). Gradle -version output: $ gradle -version ------------------------------------------------------------ Gradle 1.0 ------------------------------------------------------------ Gradle build time: Tuesday, June 12, 2012 12:56:21 AM UTC Groovy: 1.8.6 Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010 Ivy: 2.2.0 JVM: 1.7.0_03 (Oracle Corporation 22.1-b02) OS: Linux 2.6.32-220.17.1.el6.i686 i386 |