mail[Wesnoth-commits] r44494 - /trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/ExternalToolInvoker.java


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by timotei_cluj on July 21, 2010 - 20:00:
Author: timotei
Date: Wed Jul 21 20:00:04 2010
New Revision: 44494

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44494&view=rev
Log:
eclipse plugin: fix a big bug, when the stderr thread was not reading from 
err but from out

Modified:
    
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/ExternalToolInvoker.java

Modified: 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/ExternalToolInvoker.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/ExternalToolInvoker.java?rev=44494&r1=44493&r2=44494&view=diff
==============================================================================
--- 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/ExternalToolInvoker.java
 (original)
+++ 
trunk/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/ExternalToolInvoker.java
 Wed Jul 21 20:00:04 2010
@@ -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 @@
                                        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 @@
                                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)




Related Messages


Powered by MHonArc, Updated Wed Jul 21 20:20:34 2010