From 3b7cbbd6a5652b055aa680a1fc4dc1369079c78d Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 7 Jan 2016 09:23:29 +0100 Subject: idea: strip top directory from tar --- packages/idea-iu/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/idea-iu/build.gradle b/packages/idea-iu/build.gradle index 9897299..a6933eb 100644 --- a/packages/idea-iu/build.gradle +++ b/packages/idea-iu/build.gradle @@ -10,6 +10,9 @@ task download(type: DownloadTask) { task untar(type: Copy) { from tarTree(download.destFile) into file("${buildDir}/unpacked/dist") + eachFile { FileCopyDetails fcd -> + fcd.path = fcd.path.substring(path.indexOf('/')+1) + } } untar.dependsOn(download) -- cgit v1.2.1