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 54116

Summary: Input textfield, once closed, does not reopen during the same build
Product: platform Reporter: Jesse Glick <jglick>
Component: Output WindowAssignee: Milos Kleint <mkleint>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Sample script

Description Jesse Glick 2005-01-28 02:50:22 UTC
If you run an Ant target that requests some input,
the Input field in the OW opens, you enter some
lines of text, then press the Close button when
done; and then the Ant script requests some more
input, it won't get it - the input field is
already closed and it will get an immediate EOF.
This behavior is (1) undesirable, (2) inconsistent
with command-line usage where Ctrl-D (Unix) or
Ctrl-Z (Windows) sends EOF to the current
subprocess but permits another one to still get
input again.

To reproduce, just try the nofork-repeated-stdin
target in the attached script, both from the
command line and from NetBeans (dev build).
Comment 1 Jesse Glick 2005-01-28 02:50:53 UTC
Created attachment 20021 [details]
Sample script
Comment 2 Milos Kleint 2005-02-01 08:56:40 UTC
not sure how to reproduce the problem.
I've writen this target and it runs without an issues. I've tried
running repeatedly, closing the output, clearing the output, but stil
cannot reproduce. Please reopen with more information.

    <target name="printoutput">
       <input message="my message1" addproperty="milos.kleint"/>
       <echo message="output ${milos.kleint}"/>
       <input message="my message2" addproperty="milos.kleint2"/>
       <echo message="output ${milos.kleint2}"/>
    </target>
Comment 3 Milos Kleint 2005-02-01 08:58:23 UTC
reopening. I missed the attached file.
Comment 4 Milos Kleint 2005-11-15 11:58:33 UTC
done,

Checking in src/org/netbeans/core/output2/Controller.java;
/cvs/core/output2/src/org/netbeans/core/output2/Controller.java,v  <-- 
Controller.java
new revision: 1.43; previous revision: 1.42
done
Checking in src/org/netbeans/core/output2/NbIO.java;
/cvs/core/output2/src/org/netbeans/core/output2/NbIO.java,v  <--  NbIO.java
new revision: 1.10; previous revision: 1.9