Run configuration: do not contain FQN in name
#KT-16886 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
ce21a55943
commit
8477c1935c
@@ -295,7 +295,11 @@ public class KotlinRunConfiguration extends JetRunConfiguration {
|
|||||||
if (StringUtil.isEmpty(MAIN_CLASS_NAME)) {
|
if (StringUtil.isEmpty(MAIN_CLASS_NAME)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return MAIN_CLASS_NAME;
|
List<String> parts = StringUtil.split(MAIN_CLASS_NAME, ".");
|
||||||
|
if (parts.isEmpty()) {
|
||||||
|
return MAIN_CLASS_NAME;
|
||||||
|
}
|
||||||
|
return parts.get(parts.size() - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
Reference in New Issue
Block a user