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 54117 - Cannot send input to the same Ant target if run twice in a row
Summary: Cannot send input to the same Ant target if run twice in a row
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-28 02:55 UTC by Jesse Glick
Modified: 2008-12-22 20:52 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 Jesse Glick 2005-01-28 02:55:37 UTC
Run the target nofork-stdin from the attached Ant
script. You are prompted for input. Send some
lines, then close the input field to end the
process. Now run the same target again. It will
display an immediate EOF. If you run some other
target, then go back to this one, it will work again.

Problem is that the Ant module tries to reuse the
output tab whenever it can, and does its best to
reset it using

io.getOut().reset();
io.getErr().reset();

This works for output but it does not reset the
state of standard input, which is still marked
internally as closed.

NbIO.reset() should be being called here (by both
of the above lines), and this should be calling
in.reuse(), which should have the desired effect.
But apparently something is not working. Maybe
dispose() is being called first?
Comment 1 Milos Kleint 2005-01-28 14:01:25 UTC
can you attach the script?
Comment 2 Milos Kleint 2005-02-01 14:20:21 UTC
fixed in trunk.
Comment 3 Jesse Glick 2005-04-09 17:13:35 UTC
BTW for the future please paste CVS commit logs into a bug report when closing
as fixed, to make it easier to verify or track down problems later.