[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Why doesn't the Eclipse console stream?

Gabriel,

Maybe you should call OutputStream.flush in the code to ensure that it's not buffered...


Gabriel wrote:
Hi all,

Does anybody know why the Eclipse console does not stream the output of a process? I have a plug-in and I run an external process and plug it in Eclipse with:

Process process = DebugPlugin.exec(commandLine, workingDir);
IProcess p = DebugPlugin.newProcess(launch, process, "label");

if I execute the command line in the OS command prompt/terminal the output is streamed. But in eclipse it waits until it about 4096 chars (4094, 4095) and only then it prints it to the console.

Does anybody know how can I disable this buffer or configure the console such that the output of the process is immediately seen?

Thanks for the help,
Gabriel