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 - Easy way to fork an external process w/ IO redirection
Summary: Easy way to fork an external process w/ IO redirection
Status: RESOLVED DUPLICATE of bug 136929
Alias: None
Product: platform
Classification: Unclassified
Component: Execution (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: t_h
URL: http://wiki.netbeans.info/wiki/view/D...
Keywords: API
Depends on:
Blocks:
 
Reported: 2005-03-25 14:38 UTC by Jesse Glick
Modified: 2008-12-22 11:18 UTC (History)
5 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***