Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top