I'm sure this is a common issue, but I can't seem to find an
answer/explanation for it.

I'm teaching my students ANT in their programming course.  We use only
text-based System.out/Scanner(System.in) I/O in this course.

I am finding that in student programs which require user interaction
(application prompting followed by user input) the prompting seems to be
buffering until the ant execution task (<java>) is completed.

Is there a clear, easy way to have user interaction co-exist with ANT such
that my students can use ant for execution purposes?  I recall a few years
ago we used to be able to do this, but it seems that the situation is now
changed.

There is no problem grabbing the input when the user provides it.  However,
the problem only seems to be that the output is buffered.  Thus, the
students don't see the prompts from their program.  If the user knows what
to enter and when, all will execute perfectly.

Currently they use a run target in a form similar to:
 <target name="run" depends="compile" description="execute the
application">
   <java classname="Project1"/>
 </target>

Thanks.

Reply via email to