ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnas Kupsys <arnas.kup...@epfl.ch>
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.in));
      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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message