nicolaferraro commented on a change in pull request #133: runtime: initial support for kotlin runtime URL: https://github.com/apache/camel-k/pull/133#discussion_r220585279
########## File path: runtime/examples/routes.kts ########## @@ -0,0 +1,19 @@ +// +// To run this integrations use: +// +// kamel run -d kamel-runtime-kotlin runtime/examples/routes.kts +// + +val rnd = java.util.Random() +val builder = bindings["builder"] as org.apache.camel.builder.RouteBuilder +fun from(uri: String): org.apache.camel.model.RouteDefinition = builder.from(uri) Review comment: Maybe we can implicitly add those (and other) lines in the future. Wdyt? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services