Hi, we are generating Kotlin classes and we need t...
# getting-started
t
Hi, we are generating Kotlin classes and we need to compile them from Kotlin app. Currently we start a new process and run
kotlinc
but it requires to have a source file in filesystem. Is there a way how to do it on the fly (pipe, iostreams etc.)?
w
I'm sorry, I don't have an answer for you, but I am very curious for your use case 🙂
a
Maybe use a shell that supports process substitution (such as bash and zsh)?
t
We have a platform for creating some content and user can write custom implementations of some interfaces, then we compile it, package it a distribute it with the content as jar.
k
Not sure if Jimfs in-memory file system would work - never tried it but sounds promising.
🔥 1