[
https://issues.apache.org/jira/browse/CAMEL-25199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18121269#comment-18121269
]
Claus Ibsen commented on CAMEL-25199:
-------------------------------------
PR: https://github.com/apache/camel/pull/27147
_Claude Code on behalf of davsclaus_
> camel-jbang - read Java routes with the Java DSL parser only, retire the
> regex readers
> --------------------------------------------------------------------------------------
>
> Key: CAMEL-25199
> URL: https://issues.apache.org/jira/browse/CAMEL-25199
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
>
> The project overview reads Java routes with the Java DSL parser (CAMEL-25148)
> and falls back to a regex reader when the parser finds no routes. The
> consumer check of camel validate (EndpointConsumerChecks, which direct:/seda:
> endpoints the Java routes of an application consume) still reads Java with a
> regex only.
> Over the examples of camel-examples, camel-spring-boot-examples and
> camel-quarkus-examples (232 Java sources with from), the parser finds the
> routes of 224, the regex finds routes in one source the parser does not: an
> anonymous RouteBuilder passed to camel.configure().addRoutesBuilder(...),
> where the parser took the call configure() for the declaration of configure().
> * The parser tells a call of configure() from its declaration, so anonymous
> route builders passed to addRoutesBuilder are read.
> * The overview reads Java with the parser only; the regex reader is removed.
> * EndpointConsumerChecks reads the endpoints Java routes consume with the
> parser (endpoint DSL and constants resolved), still answering unknown for a
> route template or an input known only at runtime.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)