Bug 21748 - tasks that require input from stdio lock up Eclipse
Summary: tasks that require input from stdio lock up Eclipse
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
: 28222 56913 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-22 05:34 EDT by Marco Mulder CLA
Modified: 2009-08-30 02:16 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Mulder CLA 2002-07-22 05:34:32 EDT
Tasks that require input from stdio lock up Eclipse:

- Make sure that "ssh.exe" is on your classpath
- Create a new Simple Project
- Add the following build.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <project default="testssh" name="SSH Project">
    <target name="testssh">
        <exec executable="ssh.exe">
            <arg line="localhost"/>
        </exec>
    </target>
    </project>
- Launch the Ant script from the contect menu on build.xml
- On the Log Console, the following message appears:
    "Pseudo-terminal will not be allocated because stdin is not a terminal."
- Eclipse hangs
- Even pressing Cancel does not help
Comment 1 Darin Swanson CLA 2002-10-02 11:32:43 EDT
Working on this after bug 24318

* Ant has now a pluggable way to prompt users for input, which is used
  by the new <input> task.  IDE integrators can provide an
  implementation of the InputHandler interface to decouple Ant's input
  from the console.  An implementation that gets its input from a file
  for unattended builds is part of Ant's distribution.

  For more details see docs/manual/inputhandler.html.
Comment 2 Darin Swanson CLA 2002-10-02 11:34:34 EDT
Sorry annotation was meant for bug 21667
Comment 3 Darin Swanson CLA 2002-12-05 14:34:54 EST
I really do not think that there is much we can do here as the exec effectively 
creates input and output streams that we know nothing about.
As well, from a respected source for Ant (Java development with Ant, Hatcher 
and Loughran, pg 132): "You cannot handle prompts for input at the console.  If 
the application is waiting for user input, Ant just hangs".
Comment 4 Darin Swanson CLA 2002-12-12 18:02:27 EST
*** Bug 28222 has been marked as a duplicate of this bug. ***
Comment 5 Darin Swanson CLA 2003-01-09 14:46:41 EST
Defer to look at again after 2.1.
Comment 6 Darin Swanson CLA 2003-06-02 17:20:12 EDT
Nothing further planned
Outlined in readme.
Comment 7 Darin Swanson CLA 2004-03-31 11:35:52 EST
*** Bug 56913 has been marked as a duplicate of this bug. ***
Comment 8 Denis Roy CLA 2009-08-30 02:16:07 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.