summaryrefslogtreecommitdiff
path: root/packages/oraclejdk/build.gradle
diff options
context:
space:
mode:
authorYves Fischer <yves.fischer@cern.ch>2016-05-21 17:24:14 +0200
committerYves Fischer <yves.fischer@cern.ch>2016-05-21 17:24:14 +0200
commitbb29281a4e1092b605c4ae1019df01f6eef66f3a (patch)
treea897cbf58fed9079aee4e3f8dada31b92b530631 /packages/oraclejdk/build.gradle
parentde1e05cdea94cf97c9376f988f276daa39bfde2e (diff)
downloaddebian-packages-bb29281a4e1092b605c4ae1019df01f6eef66f3a.tar.gz
debian-packages-bb29281a4e1092b605c4ae1019df01f6eef66f3a.zip
add activator support
Diffstat (limited to 'packages/oraclejdk/build.gradle')
-rw-r--r--packages/oraclejdk/build.gradle7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/oraclejdk/build.gradle b/packages/oraclejdk/build.gradle
index 6c1e3d6..e2e8c90 100644
--- a/packages/oraclejdk/build.gradle
+++ b/packages/oraclejdk/build.gradle
@@ -18,4 +18,11 @@ subprojects {
project.afterEvaluate {
untar.from tarTree(download.destFile)
}
+
+ tasks.getByName('createActivator').dependsOn('untar')
+ tasks.getByName('createActivator').doFirst {
+ file("${buildDir}/unpacked/dist/bin").list().each {
+ activator.bin[it] = "/opt/${project.name}/bin/${it}"
+ }
+ }
} \ No newline at end of file