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

(cherry picked from commit b34734e53219822fb2157b7bcb3f6e3b7bc84dc5)

IJ-MR-176799

GitOrigin-RevId: 38f0ec4dd8ae9d52fc5ad102ffe2457f0b0af565
This commit is contained in:
Egor Malyshev
2025-10-21 21:01:56 +00:00
committed by intellij-monorepo-bot
parent f960251fb0
commit 3cccbb1719
@@ -132,12 +132,12 @@ private suspend fun buildResourcesForHelpPlugin(resourceRoot: Path, classPath: L
archiver.setRootDir(resourceRoot)
supportedLanguages.forEach { (lang, descriptor) ->
val rootDir = resourceRoot.resolve(descriptor.resPath)
if (rootDir.exists()) {
val langRootDir = resourceRoot.resolve(descriptor.resPath)
if (langRootDir.exists()) {
Span.current().addEvent("adding \"${lang}\" to the resulting ZIP.")
descriptor.resList.forEach { resDir ->
archiveDir(
startDir = rootDir,
startDir = langRootDir.resolve(resDir),
addFile = { archiver.addFile(it, zipCreator) })
}
}