eclipse plugin: allow the game to spawn the stdout.txt and stderr.txt...

...so we wait a bit.
This commit is contained in:
Timotei Dolean 2010-07-24 10:44:26 +00:00
parent 51e3b8e3ac
commit b862bb8024

View file

@ -78,6 +78,7 @@ public class ExternalToolInvoker
Constants.IS_WINDOWS_MACHINE)
{
String wesnothParent = new File(arguments_.get(0)).getParent() + "/";
Thread.sleep(100);
stdoutReader = new FileReader(wesnothParent + "stdout.txt");
stderrReader = new FileReader(wesnothParent + "stderr.txt");
}
@ -93,6 +94,9 @@ public class ExternalToolInvoker
{
Logger.getInstance().logException(e);
}
catch (InterruptedException e)
{
}
}
/**