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 +++++++ packages/oraclejdk/oraclejdk7/build.gradle | 3 ++- packages/oraclejdk/oraclejdk8/build.gradle | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'packages/oraclejdk') 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 diff --git a/packages/oraclejdk/oraclejdk7/build.gradle b/packages/oraclejdk/oraclejdk7/build.gradle index 901f586..97d6f9a 100644 --- a/packages/oraclejdk/oraclejdk7/build.gradle +++ b/packages/oraclejdk/oraclejdk7/build.gradle @@ -5,4 +5,5 @@ download.sha256sum 'bad9a731639655118740bee119139c1ed019737ec802a630dd7ad7aab430 ospackage { into '/usr/lib/jvm/java-7-oraclejdk' -} \ No newline at end of file +} +activator.env['JAVA_HOME'] = '/usr/lib/jvm/java-7-oraclejdk' \ No newline at end of file diff --git a/packages/oraclejdk/oraclejdk8/build.gradle b/packages/oraclejdk/oraclejdk8/build.gradle index 10922cd..3af763a 100644 --- a/packages/oraclejdk/oraclejdk8/build.gradle +++ b/packages/oraclejdk/oraclejdk8/build.gradle @@ -6,3 +6,5 @@ download.sha256sum '7e95ad5fa1c75bc65d54aaac9e9986063d0a442f39a53f77909b044cef63 ospackage { into '/usr/lib/jvm/java-8-oraclejdk' } + +activator.env['JAVA_HOME'] = '/usr/lib/jvm/java-8-oraclejdk' -- cgit v1.2.1