However, maybe the solution is simpler than it seems. Use System.err instead of System.out, and violin, as they say in French, the distinction between the application's output and the Ant output is very clear:
Still, it would be nice if there was a way to exclude the Ant output, via an option setting. And switching to "Quiet" mode in the Ant settings doesn't help. Believe me, I've tried.