Enable verbose output from groovy AntBuilder

Is there a way to enable debug / verbose output for groovy AntBuilder? In other words, I want to include more verbose output, for example, ant -verbosefrom the command line.

I know about the task of the recorder as described here , but it writes to a file, and I want to write to stdout or possibly to a log (for example, for maven plugins written in groovy ).

+5
source share
1 answer

Inspired by Google's first result (rewritten for short Groovy):

ant.project.buildListeners[0].messageOutputLevel = 4

The values are documented , with 4 being the most detailed.

+7

All Articles