STDOUT redirection to a file does not work if Groovy script run directly from command line (.groovy in PATHEXT)
I've updated the title, please see update below for the reason. I have asked this question on Stackoverflow, but still didn't receive an answer. Groovy: redirect stdout to a file does not work. ...