https://bz.apache.org/bugzilla/show_bug.cgi?id=53506
--- Comment #6 from Alex R. <[email protected]> --- Confirming this bug on Windows 7, Ant 1.10.5. Use case: Feed <exec>'s stdout and stderr both into the Ant log as well as an outputproperty. Configuration: Use <redirector alwayslog="true" logError="false" outputproperty="myoutput"/> within the <exec> task. Problem: Each stderr line occurs twice in the Ant log, but should occur only once. stdout on Ant log is fine, i.e. only occurs once. stderr and stdout in the outputproperty are fine. Reproduction: Compile the attached DemoOutErr.java into a runnable JAR named DemoOutErr.jar, then run the attached Ant script demouterr.xml. The Java outputs 2 lines on stdout and stderr. The Ant script <exec>s the jar and showcases the problem. Output: C:\temp>ant -f demoouterr.xml Buildfile: C:\temp\demoouterr.xml demo: [exec] Hello on output [exec] News on output [exec] Hello on error [exec] News on error [exec] Hello on error [exec] News on error [echo] [echo] Contents of myoutput: [echo] Hello on output [echo] News on output [echo] Hello on error [echo] News on error BUILD SUCCESSFUL Total time: 0 seconds -- You are receiving this mail because: You are the assignee for the bug.
