Bug 55513

Summary: StreamCopier cannot be used with System.err or System.out as it closes the output stream
Product: JMeter Reporter: Sebb <sebb>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: 2.9   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Sebb 2013-09-02 23:09:58 UTC
It would be useful to be able to use StreamCopier with System.out/System.err, however the output strem is closed at the end. This prevents any output appearing.

The output stream should only be closed if it is not System.out/.err

The same consideration does not apply to System.in, as it would be read until EOF anyway.
Comment 1 Sebb 2013-09-02 23:13:52 UTC
URL: http://svn.apache.org/r1519529
Log:
StreamCopier cannot be used with System.err or System.out as it closes the output stream
Bugzilla Id: 55513

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/exec/StreamCopier.java
    jmeter/trunk/xdocs/changes.xml