/ Published in: Groovy

This script will alow you to download files from a remote FTP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
ant.ftp( server:"ftp.foo.com", userid:"user", password:"passwd", passive:"yes", verbose:"yes", action:"get', remotedir:"/pub/incoming", binary:"yes" ) { fileset( dir:"." ) { include( name:"**/*.gz" ) } }
URL: http://blog.hhhhq.org/2007/04/ftp-using-groovy-and-ant.html
Comments
