diff options
author | Yves Fischer <yves.fischer@cern.ch> | 2016-05-21 17:24:14 +0200 |
---|---|---|
committer | Yves Fischer <yves.fischer@cern.ch> | 2016-05-21 17:24:14 +0200 |
commit | bb29281a4e1092b605c4ae1019df01f6eef66f3a (patch) | |
tree | a897cbf58fed9079aee4e3f8dada31b92b530631 /packages/oraclejdk | |
parent | de1e05cdea94cf97c9376f988f276daa39bfde2e (diff) | |
download | debian-packages-bb29281a4e1092b605c4ae1019df01f6eef66f3a.tar.gz debian-packages-bb29281a4e1092b605c4ae1019df01f6eef66f3a.zip |
add activator support
Diffstat (limited to 'packages/oraclejdk')
-rw-r--r-- | packages/oraclejdk/build.gradle | 7 | ||||
-rw-r--r-- | packages/oraclejdk/oraclejdk7/build.gradle | 3 | ||||
-rw-r--r-- | packages/oraclejdk/oraclejdk8/build.gradle | 2 |
3 files changed, 11 insertions, 1 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 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' |