[xbuild] Fix handling of tool output.
authorAnkit Jain <radical@corewars.org>
Tue, 14 Sep 2010 23:06:59 +0000 (04:36 +0530)
committerAnkit Jain <radical@corewars.org>
Tue, 14 Sep 2010 23:10:52 +0000 (04:40 +0530)
commit82a3f043325960b3f679e8608035524c09a99edf
tree1c4c60aefbcb2348eeefdd1d0e328510216633c1
parent0ce58c9023641694a21d659c1d00453e4aeb9558
[xbuild] Fix handling of tool output.

The *StreamChanged event for ProcessWrapper may get parts of
long lines, so process the complete ones that we have (for matching
error/warning), and save rest for processing when the rest of it
is received.

Also, don't ignore empty lines.

* class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs
mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs