mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-22 15:51:33 +00:00
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)) {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user