Having said that, I discovered that I could just check whether the
BuildListener was an instance of DefaultLogger, which is all I needed
ant.project.buildListebers.each {
if(it instance of DefaultLogger) {
it.messageOutputLevel = ant.project.MSG_DEBUG
}
}
Thanks for the pointer.
On 28/03/2016 18:37, Schalk Cronjé wrote:
Unfortunately that does not work for me. Having checked the Ant docs,
there is not messageOutputLevel on BuildLIstener.
On 28/03/2016 17:51, Nelson, Erick wrote:
Along with CliBuilder....
def ant = new AntBuilder()
ant.project.buildListeners.each { it.messageOutputLevel =
ant.project.MSG_DEBUG }
Erick Nelson
Senior Developer | IT Application Development
HD Supply Facilities Maintenance
O: 858-831-2209
C: 760-473-7542
H: 760-930-0461
[email protected]
-----Original Message-----
From: Schalk Cronjé [mailto:[email protected]]
Sent: Saturday, March 26, 2016 1:27 PM
To: [email protected]
Subject: Debug logging in AntBuilder
When using Ant from the command0line one can pass -debug to turn debug
logging on. I want to do the same when using an AntBuilder instance, but
i cannot any reference on how this can be done (or whther it is indeed
possible).
Any pointers?
--
Schalk W. Cronjé
Twitter / Ello / Toeter : @ysb33r