I am trying to get command line input in a running java program that I started with ant. However, nothing that I type in the terminal is redirected to the System.in the java process. This is normal? I am using Windows 7 and Ant 1.8.2.
Part of the Ant script in question is as follows:
<target name="run-client" depends="compile" description="Run client."> <java classname="client.Client" fork="true" classpathref="project.classpath"> <arg value="localhost"/> ... other args </java> </target>
source share