eclipse plugin: fix a big bug,
...when the stderr thread was not reading from err but from out
This commit is contained in:
parent
d528049ed3
commit
33f1cf9ad3
1 changed files with 6 additions and 5 deletions
|
@ -9,6 +9,7 @@
|
|||
package wesnoth_eclipse_plugin.utils;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
@ -322,9 +323,9 @@ public class ExternalToolInvoker
|
|||
String line = "";
|
||||
while((line = toolInvoker.readOutputLine()) != null)
|
||||
{
|
||||
for (OutputStream outputStream : stdout)
|
||||
for (OutputStream out : stdout)
|
||||
{
|
||||
outputStream.write((line + "\n").getBytes());
|
||||
out.write((line + "\n").getBytes());
|
||||
}
|
||||
}
|
||||
} catch (IOException e)
|
||||
|
@ -340,11 +341,11 @@ public class ExternalToolInvoker
|
|||
try
|
||||
{
|
||||
String line = "";
|
||||
while((line = toolInvoker.readOutputLine()) != null)
|
||||
while((line = toolInvoker.readErrorLine()) != null)
|
||||
{
|
||||
for (OutputStream outputStream : stderr)
|
||||
for (OutputStream err : stderr)
|
||||
{
|
||||
outputStream.write((line + "\n").getBytes());
|
||||
err.write((line + "\n").getBytes());
|
||||
}
|
||||
}
|
||||
} catch (IOException e)
|
||||
|
|
Loading…
Add table
Reference in a new issue