All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ratpack.kotlin.runner.KotlinDslRunner.kt Maven / Gradle / Ivy

There is a newer version: 1.10.3
Show newest version
package ratpack.kotlin.runner

import javax.script.ScriptEngineManager

class KotlinDslRunner {
  companion object {
    @JvmStatic
    fun main(args: Array) {
      val engine = ScriptEngineManager().getEngineByExtension("kts")
      val reader = KotlinDslRunner::class.java.classLoader.getResourceAsStream("ratpack.kts").bufferedReader()
      engine.eval(reader)
    }
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy