Bug 19535

Summary: [ExternalTools] Log Console Output from is interspersed
Product: [Eclipse Project] Platform Reporter: Nailesh <naileshsoni>
Component: AntAssignee: Darin Wright <darin.eclipse>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: P5 Keywords: ui
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Nailesh CLA 2002-06-06 15:37:58 EDT
Steps:
Set an external tool to build a component.
Set build order for multiple files.
external Tool(a batch processor - java Mytool %1) -> file1
external Tool(a batch processor) -> file2
JAVABUILDORDER

The stderr output from tool and console output are interspersed.
D:\testtool>java Mytool myFile1 (in Blue Color)
Mytool tester (in Red Color)
Mytool tester (in Red Color)

D:\testtool>java Mytool myFile2 (in Blue Color)

Expected output (sometimes works)
D:\testtool>java Mytool myFile1 (in Blue Color)
Mytool tester (in Red Color)

D:\testtool>java Mytool myFile2 (in blue color)
Mytool tester (in Red Color)
Comment 1 John Arthorne CLA 2002-06-07 11:00:13 EDT
Stdout and stderr are two different streams, so the order is never going to be 
completely deterministic.

However, the runner reads stdout and stderr using two different threads, which 
makes the problem worse.  If the stdout and stderr were read using a single 
thread, the interleaving problem might be improved.

Moving to Platform->UI (external tools).  Recommend deferring.

See also bug 6036 for the same problem with the debug console.
Comment 2 Darin Wright CLA 2002-11-14 15:04:51 EST
The debug console is now used for external tools/ant scripts. This bug is now a 
duplicate.

*** This bug has been marked as a duplicate of 6036 ***