質問

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

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top