essobedo opened a new pull request, #4414:
URL: https://github.com/apache/camel-quarkus/pull/4414

   fixes #4413 
   
   ## Motivation
   
   To support routes written in JShell language in Camel-K, we have to add the 
extension `jsh-dsl` and make it compatible with the native mode.
   
   ## Modifications
   
   The main idea is to compile the JShell resources at build time and ignore 
runtime compilation requests.
   
   * Convert the JShell scripts into Java classes to be able to compile them as 
normal classes
   * Compile Java resources thanks to `JavaCompilationProvider` and declare the 
result as generated
   * Instantiate and register the `RoutesBuilder` at runtime
   * Substitute the body of the method 
`JshRoutesBuilderLoader#loadRoutesBuilder` to do nothing at runtime
   * Changes the IT the same way as for the Java jOOR DSL
   * Add `jsh` to the mapping of the `license-maven-plugin` to prevent check 
style issue
   
   ## Result
   
   Routes written in JShell resources can be compiled and included in the 
native image.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to