Always remove extension from script file

Fix for 35631dc2df refactoring.
Extension was actually always removed before refactoring.
This commit is contained in:
Nikolay Krasko
2017-01-10 16:40:49 +03:00
parent e89ffbf916
commit 80af30fb4f
4 changed files with 7 additions and 11 deletions
@@ -188,7 +188,7 @@ private class ScriptCommandLineState(
override fun createJavaParameters(): JavaParameters? {
val params = commonParameters()
val filePath = configuration.filePath ?: throw CantRunException("Script file was not specified")
val scriptVFile = LocalFileSystem.getInstance().findFileByIoFile(File(filePath)) ?:
throw CantRunException("Script file was not found in project")