Community
Participate
Working Groups
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)
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.
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 ***