Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable verbose output from groovy's AntBuilder

Is there a way to turn debug/verbose output on for groovy's AntBuilder? In other words, I want to enable more detailed output like one would get with ant -verbose from the command line.

I know about the recorder task, as described here, but this writes to a file, and I want to write to stdout or possibly a logger (like the one provided for maven plugins written in groovy).

like image 725
GreenGiant Avatar asked Feb 28 '13 18:02

GreenGiant


1 Answers

As inspired by the first result from google (rewritten for Groovy conciseness):

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

Values are documented here, with 4 being most verbose.

like image 59
tim_yates Avatar answered Oct 16 '22 22:10

tim_yates