IDEA-CR-53681 remove code duplication

GitOrigin-RevId: 1ac6bc9ff5f5569698d988bfaf56746103bddf4a
This commit is contained in:
Vladimir Krivosheev
2019-11-07 02:40:58 +00:00
committed by intellij-monorepo-bot
parent 4687042d54
commit 3860237560
2 changed files with 7 additions and 6 deletions
@@ -112,6 +112,13 @@ abstract class BaseIdeaProperties extends ProductProperties {
productLayout.platformLayoutCustomizer = { PlatformLayout layout ->
layout.customize {
for (String name : JAVA_IDE_API_MODULES) {
withModule(name)
}
for (String name : JAVA_IDE_IMPLEMENTATION_MODULES) {
withModule(name)
}
//todo currently intellij.platform.testFramework included into idea.jar depends on this jar so it cannot be moved to java plugin
withModule("intellij.java.rt", "idea_rt.jar", null)
@@ -36,12 +36,6 @@ class IdeaCommunityProperties extends BaseIdeaProperties {
productLayout.platformLayoutCustomizer = { PlatformLayout layout ->
commonCustomizer.accept(layout)
layout.customize {
for (String name : JAVA_IDE_API_MODULES) {
withModule(name)
}
for (String name : JAVA_IDE_IMPLEMENTATION_MODULES) {
withModule(name)
}
withModule("intellij.platform.duplicates.analysis")
withModule("intellij.platform.structuralSearch")
}