Bug 25134 - Implement support for the 1.5.1 feature: -inputhandler
Summary: Implement support for the 1.5.1 feature: -inputhandler
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P2 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Jared Burns CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
: 21667 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-21 13:57 EDT by Darin Swanson CLA
Modified: 2005-11-14 22:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Swanson CLA 2002-10-21 13:57:38 EDT
Now that Ant has been moved to 1.5.1 we need to facilitate -inputhandler
feature.

 -inputhandler <class>  the class which will handle input requests
Comment 1 Darin Swanson CLA 2002-10-28 15:11:39 EST
Implemented in InternalAntRunner, AntInputHandler.
Please verify.
Comment 2 Darin Swanson CLA 2002-10-28 15:21:07 EST
Test added as well OptionTests#testInputHandler
Comment 3 Darin Swanson CLA 2002-10-28 18:17:53 EST
Note that by default Eclipse provides the AntInputHandler to respond to the 
<input> task.
Comment 4 Darin Swanson CLA 2002-10-28 18:27:20 EST
*** Bug 21667 has been marked as a duplicate of this bug. ***
Comment 5 Jared Burns CLA 2002-10-29 14:03:13 EST
Verified.
Comment 6 scotsummers CLA 2005-11-14 17:57:56 EST
But, my ant build file has a <java> tag, when executing java code that inputs 
for stdin I can write in the Eclipse Console but the java program does not 
capture my keypresses.
Comment 7 Darin Swanson CLA 2005-11-14 22:18:07 EST
Your issue is not the same: see bug 21748 especially: 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".