Build: fix detecting .iml files for kotlin-ide development
This commit is contained in:
+4
-4
@@ -323,10 +323,10 @@ if (!buildProperties.inJpsBuildIdeaSync) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void kotlinIde(String imlPath) {
|
void kotlinIde(String imlPath) {
|
||||||
File imlFile = new File("kotlin-ide/kotlin/${imlPath}")
|
File imlFile = new File("${rootDir}/kotlin-ide/kotlin/${imlPath}")
|
||||||
imlFile = imlFile.exists() ? imlFile : new File("kotlin-ide/${imlPath}")
|
imlFile = imlFile.exists() ? imlFile : new File("${rootDir}/kotlin-ide/${imlPath}")
|
||||||
imlFile = imlFile.exists() ? imlFile : new File("kotlin-ide/intellij/community/${imlPath}")
|
imlFile = imlFile.exists() ? imlFile : new File("${rootDir}/kotlin-ide/intellij/community/${imlPath}")
|
||||||
imlFile = imlFile.exists() ? imlFile : new File("kotlin-ide/intellij/${imlPath}")
|
imlFile = imlFile.exists() ? imlFile : new File("${rootDir}/kotlin-ide/intellij/${imlPath}")
|
||||||
assert imlFile.exists()
|
assert imlFile.exists()
|
||||||
String fileName = imlFile.name
|
String fileName = imlFile.name
|
||||||
String projectName = ":kotlin-ide.${fileName.substring(0, fileName.length() - ".iml".length())}"
|
String projectName = ":kotlin-ide.${fileName.substring(0, fileName.length() - ".iml".length())}"
|
||||||
|
|||||||
Reference in New Issue
Block a user