The Jetbrains Kotlin compiler in Eclipse outputs to a hidden folder inside the Eclipse compiler plugin. This hidden folder is then made available through the Eclipse Kotlin clas
From the short analysis of the code of Kotlin plugin, it looks like the proper method is KotlinCompiler.compileKotlinFiles. It is being called in two contexts:
LaunchConfigurationDelegate
, and depending on the results, either compiles whole project (via its own private fun compileKotlinFiles
), or just makes stubs in memory.So, I'd use the method from 2. wrapped in a similar way as compileKotlinFiles
from file in 1.