ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter DePasquale" <>
Subject Output Beffuering Question - text-based application execution via ant
Date Sun, 15 Oct 2006 12:59:02 GMT
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( 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

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
    <java classname="Project1"/>


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message