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 37794 - Redirect the standard output and error streams to IDE output window
Summary: Redirect the standard output and error streams to IDE output window
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-05 14:17 UTC by Petr Jiricka
Modified: 2006-06-05 00:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2003-12-05 14:17:28 UTC
Currently, server output is shown in a separate
command prompt window (at least on Windows). It
should really show in the IDE's output window.
Comment 1 Nam Nguyen 2003-12-10 08:06:04 UTC
For this I propose have this SPI methods:

InputStream StartServer.getServerOutput(Target target);
InputStream StartServer.getServerError(Target target);

Server life-cycle implementation need to drain these input stream into
an IDE output tab when starting the server.
Server instance node will have 'Show Output Window' action to bring up
this output tab.
Comment 2 Nam Nguyen 2003-12-17 01:31:51 UTC
The design is to remove this generic functionality from j2eeserver.
Server plugin could use ProcessExecutor to execute java command and
handle output/error redirection.  Or, plugin could implement its own
CopyMaker for special needs like looking of some error string in the
process input stream.

Based on the above points, I will close this request as won't fix.