From 7a0dc250a73b8b289ab416bd492582fcbbeb6015 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Mon, 15 Feb 2016 17:45:07 +0100 Subject: oraclejdk java7 --- packages/oraclejdk/build.gradle | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/oraclejdk/build.gradle (limited to 'packages/oraclejdk/build.gradle') diff --git a/packages/oraclejdk/build.gradle b/packages/oraclejdk/build.gradle new file mode 100644 index 0000000..6c1e3d6 --- /dev/null +++ b/packages/oraclejdk/build.gradle @@ -0,0 +1,21 @@ +import org.xapek.yvesf.gradle.DownloadTask + +subprojects { + task download(type: DownloadTask) {} + + task untar(type: Copy) { + into file("${buildDir}/unpacked/dist") + eachFile { FileCopyDetails fcd -> + fcd.path = fcd.path.substring(path.indexOf('/') + 1) + } + } + untar.dependsOn(download) + + ospackage { + from untar.outputs.files + } + + project.afterEvaluate { + untar.from tarTree(download.destFile) + } +} \ No newline at end of file -- cgit v1.2.1