polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Merlin <paulmer...@apache.org>
Subject Re: [7/9] polygene-java git commit: POLYGENE-29 Fix Kotlin Script file extension: *.kts
Date Mon, 10 Apr 2017 12:05:29 GMT
Le 2017-04-10 13:57, Niclas Hedhman a écrit :
> Paul,
> I looked at exactly the same page as you, but I didn't trust the
> documentation and went to
> https://github.com/JetBrains/kotlin/tree/master/libraries/examples/kotlin-jsr223-local-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223
> where it ultimately points to, and there it is a .kt file. Maybe add
> multiple extensions...

This .kt file is a test that demonstrate usage of Kotlin Scripting.
.kts is the only extension for which the scripting engine is registered 
and the official way to denotate Kotlin Scripts from regular Kotlin 
files. IDEs make that difference too.
See 
https://github.com/JetBrains/kotlin/blob/master/libraries/examples/kotlin-jsr223-local-example/src/test/kotlin/org/jetbrains/kotlin/script/jsr223/KotlinJsr223ScriptEngineIT.kt#L36



Mime
View raw message