Support jps.kotlin.home
This commit is contained in:
@@ -49,6 +49,13 @@ public class PathUtil {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static KotlinPaths getKotlinPathsForJpsPluginOrJpsTests() {
|
public static KotlinPaths getKotlinPathsForJpsPluginOrJpsTests() {
|
||||||
|
// When JPS is run on TeamCity, it can not rely on Kotlin plugin layout,
|
||||||
|
// so the path to Kotlin is specified in a system property
|
||||||
|
String jpsKotlinHome = System.getProperty("jps.kotlin.home");
|
||||||
|
if (jpsKotlinHome != null) {
|
||||||
|
return new KotlinPathsFromHomeDir(new File(jpsKotlinHome));
|
||||||
|
}
|
||||||
|
|
||||||
if ("true".equalsIgnoreCase(System.getProperty("kotlin.jps.tests"))) {
|
if ("true".equalsIgnoreCase(System.getProperty("kotlin.jps.tests"))) {
|
||||||
return getKotlinPathsForDistDirectory();
|
return getKotlinPathsForDistDirectory();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user