[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Trouble in Launching a process within "launchConfigurationTypes"

I'm studying writting plugins for eclipse. The trouble is the output of the process I invoked does not appear in the Console until the process outputs a certain amount of bytes. I hope the Console does what a command line does.
My delegate's launch is as follows:
public void launch(ILaunchConfiguration configuration, String mode,
ILaunch launch, IProgressMonitor monitor) throws CoreException {
Process p = DebugPlugin.exec(new String[]{"python" , "a.py"} , new File("C:/"));
DebugPlugin.newProcess(launch, p, "My Process");
}


a.py:
  import sys
  i = 0
  while i < 4096:
     print "a.py"
     i += 1
  sys.stdin.readline()

Did I missed something? Or what I wrote is totally wrong?

Thanks in advance!