Skip to content

Instantly share code, notes, and snippets.

@alces
Created July 5, 2016 07:16
Show Gist options
  • Save alces/c72a1258cf4e1493c3bc73e0120523ab to your computer and use it in GitHub Desktop.
Save alces/c72a1258cf4e1493c3bc73e0120523ab to your computer and use it in GitHub Desktop.
How to download a file via HTTP/HTTPS in Groovy script using "get" task from Ant. The script requires no external dependencies.
def ant = new AntBuilder()
ant.get(src: 'http://central.maven.org/maven2/jsch/jsch/0.1.29/jsch-0.1.29.jar',
dest: 'jsch.jar')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment