Commit 58591b77 authored by Alexander Zolotov's avatar Alexander Zolotov
Browse files

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

(IDEA-176641)
parent 0a59e9e3
Showing with 5 additions and 1 deletion
+5 -1
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment