ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: java class is unable to receive user input when fork="yes"
Date Mon, 07 Oct 2002 16:18:11 GMT
um, I didnt know that the java task would receive input when fork=no; if it
did, it was not intentional.

For your particular problem, the answer is 'not unless you can code a
solution'

----- Original Message -----
From: "Sadu Venu Gopal" <saduv@aztec.soft.net>
To: <ant-dev@jakarta.apache.org>
Sent: Sunday, October 06, 2002 9:34 PM
Subject: java class is unable to receive user input when fork="yes"


> Hi,
>
> I have a simple class, which will take user input from System.in
> When I use
> <java classname="Client" fork="no"><java/>
> program is receiving the user input and working fine.
>
> If I use fork="yes" the same program is not receiving the user input.
>
> Is there any why by which I can achieve this even if fork="yes" ???
>
>
> Example Code (Client.java):
>         BufferedReader bReader =
>             new BufferedReader(new InputStreamReader(System.in));
>         System.out.println("END to come out from the program");
>         msg = bReader.readLine();
>         while(!msg.equalsIgnoreCase("END")){
> System.out.println("Echo:"+msg);
>             msg = bReader.readLine();
>         }
>         bReader.close();
>
> Regards,
> Venu.
> ph: 5522892 Ext: 280
>
>


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message