This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 57000

Summary: Easy way to fork an external process w/ IO redirection
Product: platform Reporter: Jesse Glick <jglick>
Component: ExecutionAssignee: t_h <t_h>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: mkleint, mkrauskopf, raccah, tboudreau, tor
Priority: P3 Keywords: API
Version: 4.x   
Hardware: All   
OS: All   
URL: http://wiki.netbeans.info/wiki/view/DevFaqOutputWindowExternalProcess
Issue Type: ENHANCEMENT Exception Reporter:

Description Jesse Glick 2005-03-25 14:38:37 UTC
With the deprecation of ProcessExecutor in 4.0, there is no easy way to fork an
external process and manage IO streams with the output window. Would be nice to
have a simple API in o.o.execution to make an ExecutorTask given some params
(probably same as would be passed to Runtime.exec), running in ExecutionEngine
and with (optional) InputOutput redirection. Shouldn't be too hard; copy some
impl from ProcessExecutor (minus Executor inheritance, .Format cruft, etc.).
Comment 1 Jesse Glick 2005-03-25 14:40:52 UTC
Could use NbProcessDescriptor, but I'm not sure it's very useful.
Comment 2 _ tboudreau 2005-03-25 14:52:37 UTC
Would very much like to see this, as anyone who integrates something that runs an external process has 
to write reams of boilerplate code for watcher threads to catch process output and pass it to the output 
window, etc. - and this crufts up tutorials as well.
Comment 3 Antonin Nebuzelsky 2008-02-19 14:00:13 UTC
Reassigning to new module owner Tomas Holy.
Comment 4 Jesse Glick 2008-09-25 18:56:13 UTC

*** This issue has been marked as a duplicate of 136929 ***