You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2023/01/17 14:27:27 UTC

[GitHub] [camel-quarkus] essobedo opened a new pull request, #4414: Ref #4413: JavaShell DSL support

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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] essobedo commented on pull request #4414: Ref #4413: JavaShell DSL support

Posted by GitBox <gi...@apache.org>.
essobedo commented on PR #4414:
URL: https://github.com/apache/camel-quarkus/pull/4414#issuecomment-1387716087

   Ideally before to be able to add it to Camel-K sooner but it is not critical if it is an issue, it can wait for the next release 


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] aldettinger commented on pull request #4414: Ref #4413: JavaShell DSL support

Posted by GitBox <gi...@apache.org>.
aldettinger commented on PR #4414:
URL: https://github.com/apache/camel-quarkus/pull/4414#issuecomment-1396102360

   > 
   
   okay, caught the ticket is already closed.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] aldettinger merged pull request #4414: Ref #4413: JavaShell DSL support

Posted by GitBox <gi...@apache.org>.
aldettinger merged PR #4414:
URL: https://github.com/apache/camel-quarkus/pull/4414


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] aldettinger commented on pull request #4414: Ref #4413: JavaShell DSL support

Posted by GitBox <gi...@apache.org>.
aldettinger commented on PR #4414:
URL: https://github.com/apache/camel-quarkus/pull/4414#issuecomment-1396100210

   Ok, let's merge this one then.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] jamesnetherton commented on pull request #4414: Ref #4413: JavaShell DSL support

Posted by GitBox <gi...@apache.org>.
jamesnetherton commented on PR #4414:
URL: https://github.com/apache/camel-quarkus/pull/4414#issuecomment-1386619406

   @essobedo Do you think eventually we could / should think about extracting most of the build time code somewhere under `extensions-support`, so that it's reusable for all of the language DSLs? The code is pretty much the same for all of them, right?


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] essobedo commented on pull request #4414: Ref #4413: JavaShell DSL support

Posted by GitBox <gi...@apache.org>.
essobedo commented on PR #4414:
URL: https://github.com/apache/camel-quarkus/pull/4414#issuecomment-1386623503

   > @essobedo Do you think eventually we could / should think about extracting most of the build time code somewhere under `extensions-support`, so that it's reusable for all of the language DSLs? The code is pretty much the same for all of them, right?
   
   @jamesnetherton I fully agree, it is what I planned to do today


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-quarkus] aldettinger commented on pull request #4414: Ref #4413: JavaShell DSL support

Posted by GitBox <gi...@apache.org>.
aldettinger commented on PR #4414:
URL: https://github.com/apache/camel-quarkus/pull/4414#issuecomment-1396101500

   @essobedo Do we have a ticket linked to this pr ?


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org