mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-182501 inherit SDK in the new module
GitOrigin-RevId: 567f98749720edf5244600420ddcf0cc9d459199
This commit is contained in:
committed by
intellij-monorepo-bot
parent
28fdadd2b6
commit
78561d6b9c
@@ -84,6 +84,7 @@ internal suspend fun createIjModule(vRoot: VirtualFile, moduleName: String) {
|
||||
backgroundWriteAction {
|
||||
val module = ModuleManager.getInstance(project).newModule(files.moduleRoot.resolve("$moduleName.iml"), JAVA_MODULE_ENTITY_TYPE_ID_NAME)
|
||||
val rootModel = ModuleRootManager.getInstance(module).modifiableModel
|
||||
rootModel.inheritSdk()
|
||||
rootModel.addContentEntry(vFiles.vModuleRoot).also { contentEntry ->
|
||||
contentEntry.addSourceFolder(vFiles.vSrc, JavaSourceRootType.SOURCE).also {
|
||||
it.packagePrefix = "com.$moduleName"
|
||||
|
||||
Reference in New Issue
Block a user