public void handleInput(InputRequest request) throws BuildException {
String prompt = getPrompt(request);
DataInputStream in = null;
try {
in =
new DataInputStream(new KeepAliveInputStream(getInputStream()));
do {
System.err.println(prompt);
System.err.flush();
try {
String input = in.readLine();