Czar
01/06/2019, 12:23 AMilya.chernikov
01/16/2019, 2:08 PMCzar
01/16/2019, 2:13 PMilya.chernikov
01/16/2019, 2:16 PMCzar
01/16/2019, 2:16 PMilya.chernikov
01/16/2019, 2:21 PMCzar
01/16/2019, 2:25 PMilya.chernikov
01/16/2019, 2:28 PMCzar
01/16/2019, 6:14 PMscriptCompilationCOnfiguration
and install them into kotlinCompilerConfiguration
in kotlin.script.experimental.jvmhost.impl.KJvmCompilerImpl#compile
. Something along the lines of this snippet I used to test that it would work:
K2JVMCompilerArguments().also {
parseCommandLineArguments(
updatedConfiguration[PropertiesCollection.Key<List<String>>("compilerOptions")]!!,
it
)
kotlinCompilerConfiguration.put(JVMConfigurationKeys.JVM_TARGET, JvmTarget.fromString(it.jvmTarget!!)!!)
Pardon all the exclamation marks, it's just a quick test code 🙂
To be honest I do not see a lot of difference between getting jdkHome
in that same method and what I thought to do to fix the problem. I may of course be missing something, as this is my first foray into the scripting host code.
Please do ping me if you think I can be of help in any way, I do have some free time this week 🙂ilya.chernikov
01/17/2019, 4:43 PMCzar
01/17/2019, 4:49 PMNikky
01/17/2019, 6:27 PM