println "archivo [${args[0]}]" File f = new File (args [0 ] ) f. each { String name =it. substring ( it. lastIndexOf ( "/" ) + 1 ) + ".wsdl" println " saving [$name] " String cmd = "wget ${it}?wsdl -O ${name}" println cmd cmd. execute ( ). getText() }