Support jps.kotlin.home

This commit is contained in:
Andrey Breslav
2013-05-22 20:31:26 +04:00
committed by Natalia.Ukhorskaya
parent 8694cfa9ad
commit 8511137596
@@ -49,6 +49,13 @@ public class PathUtil {
@NotNull
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"))) {
return getKotlinPathsForDistDirectory();
}