ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnas Kupsys <>
Subject newbie: input to the java app
Date Thu, 21 Feb 2002 12:42:58 GMT
Hello, I'm new to ant, but felt in love with this tool from the first sight.

I have a problem.
If my java application wants to read from the keyboard,
and is lounched using ant ant java commant using fork="yes" attribute,
Input stream blocks.
I need fork because I have to provide jvmarg to java VM.
Does anybody knows how to solve this problem?

These are the lines I use in java file:

     BufferedReader in =
        new BufferedReader (new InputStreamReader (;
      System.out.print ("Enter line: ");
      String oneLine = in.readLine ();

This is the command I use in ant:
<java  classname="EchoLine" fork="yes">

Thanks in advance
Arnas Kupsys

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message