Maybe if we don't reset the root, eventually it will pick the subfolders up

(cherry picked from commit aae201038e8d2e677f5c947aa66e81198bc50899)

IJ-MR-176799

GitOrigin-RevId: b1d814ca2f505ed5852d178d75e6067ecc47caf4
This commit is contained in:
Egor Malyshev
2025-10-21 21:01:56 +00:00
committed by intellij-monorepo-bot
parent b5d651a066
commit f960251fb0
@@ -128,13 +128,13 @@ private suspend fun buildResourcesForHelpPlugin(resourceRoot: Path, classPath: L
}
writeNewZipWithoutIndex(file = assetJar, compress = true) { zipCreator ->
val archiver = ZipArchiver()
archiver.setRootDir(resourceRoot)
supportedLanguages.forEach { (lang, descriptor) ->
val rootDir = resourceRoot.resolve(descriptor.resPath)
if (rootDir.exists()) {
val archiver = ZipArchiver()
archiver.setRootDir(rootDir)
Span.current().addEvent("adding \"${lang}\" to the resulting ZIP.")
descriptor.resList.forEach { resDir ->
archiveDir(
startDir = rootDir,