diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-01-26 19:46:12 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2018-01-26 19:46:32 -0500 |
commit | 3d34771e759c112fdc26f6d9ea1f8ef445c15eaf (patch) | |
tree | 9294e71b375582acdfa54d349e78e98ebd99b196 /src | |
parent | bc4534c1ac264785879e77017aa36a4f4dcffd5e (diff) | |
download | groovy-sandbox-3d34771e759c112fdc26f6d9ea1f8ef445c15eaf.tar.gz |
Use curl. Why not.
Diffstat (limited to 'src')
-rw-r--r-- | src/edu/stsci/CondaInstaller.groovy | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/edu/stsci/CondaInstaller.groovy b/src/edu/stsci/CondaInstaller.groovy index 0c3b3e6..5c27d63 100644 --- a/src/edu/stsci/CondaInstaller.groovy +++ b/src/edu/stsci/CondaInstaller.groovy @@ -32,11 +32,18 @@ class CondaInstaller implements Serializable { void download() { println("${this.ident} Downloading $url") + cmd = "curl -qL ${this.url}" + proc = cmd.execute() + proc.inputStream.eachLine { println(it) } + + // Whatever Jenkins... + /* File fp = new File(this.installer) def body = fp.newOutputStream() body << new URL(this.url).openStream() body.close() println("${this.ident} Received ${fp.length()} bytes") + */ } int install() { |