Build: fix detecting .iml files for kotlin-ide development

This commit is contained in:
Dmitriy Novozhilov
2021-06-29 13:10:57 +03:00
parent 5816d7ae9f
commit d048bccfa2
+4 -4
View File
@@ -323,10 +323,10 @@ if (!buildProperties.inJpsBuildIdeaSync) {
}
void kotlinIde(String imlPath) {
File imlFile = new File("kotlin-ide/kotlin/${imlPath}")
imlFile = imlFile.exists() ? imlFile : new File("kotlin-ide/${imlPath}")
imlFile = imlFile.exists() ? imlFile : new File("kotlin-ide/intellij/community/${imlPath}")
imlFile = imlFile.exists() ? imlFile : new File("kotlin-ide/intellij/${imlPath}")
File imlFile = new File("${rootDir}/kotlin-ide/kotlin/${imlPath}")
imlFile = imlFile.exists() ? imlFile : new File("${rootDir}/kotlin-ide/${imlPath}")
imlFile = imlFile.exists() ? imlFile : new File("${rootDir}/kotlin-ide/intellij/community/${imlPath}")
imlFile = imlFile.exists() ? imlFile : new File("${rootDir}/kotlin-ide/intellij/${imlPath}")
assert imlFile.exists()
String fileName = imlFile.name
String projectName = ":kotlin-ide.${fileName.substring(0, fileName.length() - ".iml".length())}"