Return to Snippet

Revision: 50694
at August 30, 2011 18:06 by m3rol666

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

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