You can't do stream redirection like that, can you try:
def fs = File.separator
def command = "wsimport -s src${fs}main${fs}java -d $classesDir path to my WSDL-file -b bindings${fs}bindingFirst.xml -b bindings${fs}bindingSecond.xml"
new File( 'bindings/OutInfo.log' ).withWriterAppend { out ->
out << command.execute().text
}