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

inlined local tasks

parent cfda90ca
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,39 @@ parentID = groupID+".parent" // will be the same as the folder name
targetRepositories = ["http://cobra.cs.uni-duesseldorf.de/prob_dev_target/","http://download.eclipse.org/releases/indigo/"] // ps Repository with Target Definition File
apply from: 'local_tasks.gradle'
apply from: 'tycho_build.gradle'
// Local tasks
def download(address,target) {
def file = new FileOutputStream(target)
def out = new BufferedOutputStream(file)
out << new URL(address).openStream()
out.close()
}
task downloadCli << {
dir = 'de.prob.core/prob/'
delete file(dir)
new File(dir).mkdirs()
['leopard':'macos','linux':'linux','linux64':'linux64','win32':'windows'].each {
n = it.getKey()
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)
}
}
task collectArtifacts(type:Copy) {
from groupID+'.repository/target/repository/'
into 'updatesite'
}
def download(address,target) {
def file = new FileOutputStream(target)
def out = new BufferedOutputStream(file)
out << new URL(address).openStream()
out.close()
}
task downloadCli << {
dir = 'de.prob.core/prob/'
delete file(dir)
new File(dir).mkdirs()
['leopard':'macos','linux':'linux','linux64':'linux64','win32':'windows'].each {
n = it.getKey()
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)
}
}
task collectArtifacts(type:Copy) {
from groupID+'.repository/target/repository/'
into 'updatesite'
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment