I'm trying to get command line input into a running java program that I started with ant. However, nothing of what I type in the terminal is redirected to System.in
of the java process. Is this normal? I'm using Windows 7 and Ant 1.8.2.
The part of the ant script in question goes like this:
<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>