diff --git a/src/main/org/apache/tools/ant/input/DefaultInputHandler.java b/src/main/org/apache/tools/ant/input/DefaultInputHandler.java index e2e38985f..a88f0fe09 100644 --- a/src/main/org/apache/tools/ant/input/DefaultInputHandler.java +++ b/src/main/org/apache/tools/ant/input/DefaultInputHandler.java @@ -86,16 +86,16 @@ public class DefaultInputHandler implements InputHandler { try { in = new DataInputStream(new KeepAliveInputStream(getInputStream())); - do { - System.err.println(prompt); - try { - String input = in.readLine(); - request.setInput(input); - } catch (IOException e) { - throw new BuildException("Failed to read input from Console.", - e); - } - } while (!request.isInputValid()); + do { + System.err.println(prompt); + try { + String input = in.readLine(); + request.setInput(input); + } catch (IOException e) { + throw new BuildException("Failed to read input from" + + " Console.", e); + } + } while (!request.isInputValid()); } finally { if (in != null) { try {