I run Ant with the output filed to the log file:
ant -logfile file.txt target-name
I would also like to print some progress information on the console. The answer seems to be a BuildEvent listener that writes to the console every time a new target is hit, but the documentation explicitly states:
The listener should not access System.out and System.err directly, since ouput in these threads is redirected by the Ant kernel to the assembly event system.
Did I miss something? Is there any way to do this?
source
share