Exclude entire lib directory while packing JBRE without tools.jar on Mac

(IDEA-176641)
This commit is contained in:
Alexander Zolotov
2018-01-05 15:31:53 +03:00
parent 0a59e9e3a3
commit 58591b77d3
+5 -1
View File
@@ -94,7 +94,11 @@ def createTarJbreTask(String taskName, String untarTaskName, String platform, St
outputs.file(outputFile)
def arguments = ['tar', '-czf', outputFile, '-C', untarOutputs.singleFile.absolutePath]
if (!includeToolsJar) {
arguments += ['--exclude', "**/tools.jar"]
arguments += ['--exclude', '**/tools.jar']
// exclude entire lib directory (IDEA-176641)
if (platform == 'osx') {
arguments += ['--exclude', './jdk/Contents/Home/lib']
}
}
arguments += [dirToTar]
commandLine arguments