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 2020/03/03 11:00:01 UTC

[GitHub] [camel-quarkus] dc2tom opened a new issue #837: Velocity Support

dc2tom opened a new issue #837: Velocity Support
URL: https://github.com/apache/camel-quarkus/issues/837
 
 
   Our team make use of camel-velocity for running message transformations.  It would be great to see a camel-quarkus extension supporting velocity.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-quarkus] ppalaga edited a comment on issue #837: Velocity Support

Posted by GitBox <gi...@apache.org>.
ppalaga edited a comment on issue #837: Velocity Support
URL: https://github.com/apache/camel-quarkus/issues/837#issuecomment-593901244
 
 
   A contribution is welcome. You may want to follow https://camel.apache.org/camel-quarkus/latest/contributor-guide.html if you are interested. There is also a PR with Freemarker support under review https://github.com/apache/camel-quarkus/pull/835 that may have vast similarities to velocity.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-quarkus] dc2tom commented on issue #837: Velocity Support

Posted by GitBox <gi...@apache.org>.
dc2tom commented on issue #837: Velocity Support
URL: https://github.com/apache/camel-quarkus/issues/837#issuecomment-600015654
 
 
   Happy to collaborate on this @zhfeng if I get a chance - that Freemarker pull request does look to have a lot of similarities

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-quarkus] zhfeng commented on issue #837: Velocity Support

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #837: Velocity Support
URL: https://github.com/apache/camel-quarkus/issues/837#issuecomment-600473247
 
 
   @dc2tom it should be very similar to the freemarker component. At first, you need to create the velocity extension by ```mvn cq:create -N -Dcq.artifactIdBase=velocity```. The followup steps could do
   
   - enable the reflective class of the Exchanges in VelocityProcessor.java
     ```
     reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, Exchanges.class);
     ```
     so the ${exchange.properties} can be used in the vm files.
   - add the option of ```quarkus.camel.velocity.classModules=<list of the classes which could be used in the template file>``` in the runtime of VelocityConfig just like freemarkers and process these class just like the Exchanges class above.
   - add the option to scan all of the vm files and add them into the native image resources.
   - check the integration test and make sure it work
   - re-gen the docs by ```mvn process-resources -Pformat```
   
   anyway, you are welcome to contribute a PR. Feel free to ask here and I will try my best to help you !

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-quarkus] ppalaga commented on issue #837: Velocity Support

Posted by GitBox <gi...@apache.org>.
ppalaga commented on issue #837: Velocity Support
URL: https://github.com/apache/camel-quarkus/issues/837#issuecomment-593901244
 
 
   A contribution is welcome. You may want to follow https://camel.apache.org/camel-quarkus/latest/contributor-guide.html if you are interested. There is also a PR with Freemarker support under review https://github.com/apache/camel-quarkus/pull/835

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-quarkus] zhfeng commented on issue #837: Velocity Support

Posted by GitBox <gi...@apache.org>.
zhfeng commented on issue #837: Velocity Support
URL: https://github.com/apache/camel-quarkus/issues/837#issuecomment-599968811
 
 
   I can take a look at this issue.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services