6

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).

Community
  • 1
  • 1
GreenGiant
  • 4,930
  • 1
  • 46
  • 76

1 Answers1

10

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.

Astral
  • 954
  • 1
  • 7
  • 9
tim_yates
  • 167,322
  • 27
  • 342
  • 338