Is it possible to specify logger for ant inside build.xml?

ant

Solution

Within the buildfile it's possible to make use of the ant api and create an internal task via `scriptdef`. i.e. implemented with groovy:

http://josefbetancourt.wordpress.com/2011/08/18/buildlistener-groovy-scriptdef/ http://octodecillion.com/blog/buildlistener-groovy-scriptdef/

It's also possible to adjust the loglevel inside the buildfile, see : https://stackoverflow.com/a/5464009/130683 https://stackoverflow.com/a/5479606/130683

Problem

Is it possible specify Ant listener/logger inside `build.xml`, not on a command line?

Original source

Related problems