Skip to content
Snippets Groups Projects
Commit dd1f7dd4 authored by Jens Bendisposto's avatar Jens Bendisposto
Browse files

add cli download task

parent 664e74ca
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,31 @@ apply plugin: 'base'
def download(address,target) {
def file = new FileOutputStream(target)
def out = new BufferedOutputStream(file)
out << new URL(address).openStream()
out.close()
}
task downloadCli << {
['leopard':'macos','linux':'linux','linux64':'linux64','win32':'windows'].each {
n = it.getKey()
dir = 'de.prob.core/prob/'
targetdir = dir+it.getValue()
targetzip = dir+"probcli_${n}.zip"
url = "http://nightly.cobra.cs.uni-duesseldorf.de/cli/probcli_${n}.zip"
download(url,targetzip)
FileTree zip = zipTree(targetzip)
copy {
from zip
into targetdir
}
delete file(targetzip)
}
}
subprojects {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment