How do I intercept or elevate log messages when calling an Ant task from Gradle
===

I call ant.signjar from a gradle script.
How can I capture its output?
I did neither get it managed easily to elevate the output from INFO to another level, nor to intercept or wrap the output to error warnings out to WARN level.
Currently the signjar echoes out that the certificate will expire soon, but this is not shown on WARN level which is not so nice.