build scripts: zip compression should not fail for missing directory (for example, if a module has no production output)

GitOrigin-RevId: 944d101f85f97afcbc36af7d1f7740d454270a84
This commit is contained in:
Dmitriy.Panov
2021-08-24 12:08:57 +03:00
committed by intellij-monorepo-bot
parent 77d213e58d
commit 855cf21f88

View File

@@ -113,6 +113,7 @@ internal fun compressDir(startDir: Path, archiver: ZipArchiver, excludes: List<P
val tempList = ArrayList<Path>()
while (true) {
val dir = dirCandidates.pollFirst() ?: break
if (!Files.exists(dir)) break
tempList.clear()
Files.newDirectoryStream(dir).use {
if (excludes == null) {