Revision: 50694
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 30, 2011 18:06 by m3rol666
Initial Code
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().text
}
Initial URL
Initial Description
used this to download a bunch of wsdls. Put all addresses in a file and execute the script like groovy download.groovy file.txt
Initial Title
download files with groovy and wget
Initial Tags
download, files, groovy
Initial Language
Groovy