diff options
author | Yves Fischer <yves.fischer@cern.ch> | 2016-02-15 17:45:07 +0100 |
---|---|---|
committer | Yves Fischer <yves.fischer@cern.ch> | 2016-02-15 17:45:07 +0100 |
commit | 7a0dc250a73b8b289ab416bd492582fcbbeb6015 (patch) | |
tree | 383403e517abb42f517252e27447a51a15a2b2fd /packages/oraclejdk/build.gradle | |
parent | 37175c8ac467db648a7e5ceb7c5216c2db12b8fc (diff) | |
download | debian-packages-7a0dc250a73b8b289ab416bd492582fcbbeb6015.tar.gz debian-packages-7a0dc250a73b8b289ab416bd492582fcbbeb6015.zip |
oraclejdk java7
Diffstat (limited to 'packages/oraclejdk/build.gradle')
-rw-r--r-- | packages/oraclejdk/build.gradle | 21 |
1 files changed, 21 insertions, 0 deletions
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 |