This is an interesting situation. I would usually say that you cannot do this in an automatic way. You can wrap Ant in a shell script to do this, but Ant alone is not a complete programming language.
The only thing I can think of is to add a <ant> call at the end of each task to give out what you want. You can configure it so that if there is no variable, the echo will not happen. Of course, this means that you need to name the same goal a dozen or so in order to get this final <echo> .
I checked AntXtras and Ant -Contrib for possible methods, but could not find.
Unfortunately.
source share