ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar Boström <Gunnar.N.Bost...@telia.se>
Subject input to java task
Date Wed, 13 Dec 2000 13:36:59 GMT
Hi gurus,

I've problem with the java task. I would like to run a program which prompts
the user and then reads the answer, something like this:
System.out.print("Please enter your name: "); 
BufferedReader br = 
  new BufferedReader(new InputStreamReader(System.in));
String name = br.readLine();

I don't get the prompt and the program hangs.

Any suggestion?
:-)

Mime
View raw message