mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
GTW-8236 getProductPluginContentModules: always look for <content> tags in PlatformLangPlugin.xml
GitOrigin-RevId: f3ed1355f5323ec36dce4a4ee19b92d09a49a1bd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3caa4aaa24
commit
08e1c02c5f
@@ -478,7 +478,7 @@ private fun compute(list: List<Pair<String, PersistentList<String>>>,
|
||||
private suspend fun getProductPluginContentModules(context: BuildContext, productPluginSourceModuleName: String): Set<ModuleItem> {
|
||||
val result = LinkedHashSet<ModuleItem>()
|
||||
|
||||
val content = withContext(Dispatchers.IO) {
|
||||
withContext(Dispatchers.IO) {
|
||||
var file = context.findFileInModuleSources(productPluginSourceModuleName, "META-INF/plugin.xml")
|
||||
if (file == null) {
|
||||
file = context.findFileInModuleSources(moduleName = productPluginSourceModuleName,
|
||||
@@ -490,9 +490,10 @@ private suspend fun getProductPluginContentModules(context: BuildContext, produc
|
||||
}
|
||||
|
||||
readXmlAsModel(file).getChild("content")
|
||||
} ?: return emptySet()
|
||||
}?.let { content ->
|
||||
collectProductModules(content, result)
|
||||
}
|
||||
|
||||
collectProductModules(content, result)
|
||||
|
||||
withContext(Dispatchers.IO) {
|
||||
val file = context.findFileInModuleSources("intellij.platform.resources", "META-INF/PlatformLangPlugin.xml")
|
||||
|
||||
Reference in New Issue
Block a user