sdeleuze
07/03/2018, 8:26 AM*.kts files will be compiled automatically. I have a src/main/resources/application.kts file that is defining val foo = ... and I would like to access foo from my src/main/kotlin source code. Is that use case supported? Does it require specific configuration?ilya.chernikov
07/03/2018, 9:00 AMval scriptClass = Class.forName("Application")
val ctor = scriptClass.getConstructor() // the params depend on your definition
...sdeleuze
07/03/2018, 9:01 AM1.2.60 EAP next week thensdeleuze
07/03/2018, 9:10 AM*.kts compilation from resources? The point of app configuration is to be separated from source code and I would like it to be optionaly externaliable.sdeleuze
07/03/2018, 9:10 AMapplication.properties would be really nicesdeleuze
07/03/2018, 9:11 AMsdeleuze
07/03/2018, 9:11 AMsdeleuze
07/03/2018, 9:12 AMilya.chernikov
07/03/2018, 9:16 AMilya.chernikov
07/03/2018, 9:19 AMsdeleuze
07/03/2018, 12:16 PMsdeleuze
07/03/2018, 12:19 PMilya.chernikov
07/03/2018, 12:54 PMsdeleuze
07/03/2018, 2:09 PMilya.chernikov
07/09/2018, 4:15 PMeval call is the script class instance.
Since you’re using the result returned from the script engine, I think it would be easier if you’ll continue to use JSR223 for now.ilya.chernikov
07/09/2018, 4:16 PMsdeleuze
07/10/2018, 3:09 PMsdeleuze
08/29/2018, 8:42 AMilya.chernikov
08/29/2018, 12:56 PMsdeleuze
08/29/2018, 12:56 PMsdeleuze
08/29/2018, 12:57 PM