From bb29281a4e1092b605c4ae1019df01f6eef66f3a Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 21 May 2016 17:24:14 +0200 Subject: add activator support --- packages/oraclejdk/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packages/oraclejdk/build.gradle') 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 -- cgit v1.2.1