Bug 50399

Summary: DefaultInputHandler produces unnecessary newline in prompt
Product: Ant Reporter: Michael Osipov <michaelo>
Component: Core tasksAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 1.8.2   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Michael Osipov 2010-12-02 05:31:08 UTC
I recently started using the Input Task and found an annoyance:
If the input task prompts for the input, it produces a newline after the prompt. My input goes in a new line. This is ugly.
If you take a look at like 53 http://svn.apache.org/viewvc/ant/core/tags/ANT_181/src/main/org/apache/tools/ant/input/DefaultInputHandler.java?view=markup#l53
You just need to replace println with print.
For those who really need a new line, they can add \n or ${line.sep...}