Bug 50399 - DefaultInputHandler produces unnecessary newline in prompt
Summary: DefaultInputHandler produces unnecessary newline in prompt
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.8.2
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2010-12-02 05:31 UTC by Michael Osipov
Modified: 2010-12-27 11:11 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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...}