From d048bccfa23dd1c04c55a06a3167872c279067fd Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Tue, 29 Jun 2021 13:10:57 +0300 Subject: [PATCH] Build: fix detecting .iml files for kotlin-ide development --- settings.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/settings.gradle b/settings.gradle index bca01c8804c..3e6f1cc51f9 100644 --- a/settings.gradle +++ b/settings.gradle @@ -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())}"