Bug 19535 - [ExternalTools] Log Console Output from is interspersed
Summary: [ExternalTools] Log Console Output from is interspersed
Status: RESOLVED DUPLICATE of bug 6036
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P5 minor (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2002-06-06 15:37 EDT by Nailesh CLA
Modified: 2002-11-14 15:04 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***