Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Getting input

Getting input

2003-03-31       - By Oki DZ
Reply:     1     2     3  

Hi,

I have something like the following in my build.xml:
 <target name="execute" depends="compile" description="execute the
app">
   <exec dir="${ojbhome}" executable="${javahome}/bin/java">
     <arg line="MyClass"/>
   </exec>
 </target>

MyClass uses Readline.readline(<prompt>) (from
java-readline.sourceforge.net). Unfortunately, the input is suppressed
by Ant (meaning, the prompt is not displayed). How can I get it working?

BTW, if I use BufferedReader and have the InputStream from System.in, it
would be the same thing.

Thanks in advance,
Oki




©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.