davsclaus commented on code in PR #31214:
URL: https://github.com/apache/camel/pull/31214#discussion_r4761975399
##########
core/camel-api/src/main/java/org/apache/camel/spi/BacklogTracer.java:
##########
@@ -150,12 +150,12 @@ public interface BacklogTracer {
void setIncludeException(boolean includeException);
/**
- * Whether to support tracing messages and outputting as JSon.
+ * Whether to trace routes that is created from Rest DSL.
Review Comment:
Fixed in ad99895443c8, also in `Tracer`, `TracerConfigurationProperties` and
the generated `camel.trace.*` docs.
_Claude Code on behalf of davsclaus_
##########
core/camel-api/src/main/java/org/apache/camel/spi/BacklogTracer.java:
##########
@@ -150,12 +150,12 @@ public interface BacklogTracer {
void setIncludeException(boolean includeException);
/**
- * Whether to support tracing messages and outputting as JSon.
+ * Whether to trace routes that is created from Rest DSL.
*/
boolean isTraceRests();
/**
- * Whether to trace routes that is created from route templates or
kamelets.
+ * Whether to trace routes that is created from Rest DSL.
Review Comment:
Fixed in ad99895443c8, also in `Tracer`, `TracerConfigurationProperties` and
the generated `camel.trace.*` docs.
_Claude Code on behalf of davsclaus_
##########
dsl/camel-dsl-modeline/src/main/docs/dsl-modeline.adoc:
##########
@@ -13,5 +13,51 @@
== Camel CLI
-There is support for
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang
dependencies] using the `//DEPS` comments style,
-when using Camel CLI.
+The Camel CLI supports
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang
dependencies] in the
+`//DEPS` comment style: a route file can name the extra Maven dependencies it
needs, and `camel run` downloads them and
+adds them to the classpath.
+
+A `//DEPS` line is a comment, so it is written in the comment style of the
file. In a Java route:
+
+[source,java]
+----
+//DEPS com.example:my-library:1.0
+
+import org.apache.camel.builder.RouteBuilder;
+
+public class MyRoute extends RouteBuilder {
+
+ @Override
+ public void configure() throws Exception {
+ from("timer:tick")
+ .to("log:tick");
+ }
+}
+----
+
+And in a YAML route, behind `#`:
+
Review Comment:
Moot: 2c4202d3da31 removed this `//DEPS` text from the page; the description
moves to the modeline deprecation (CAMEL-28011, #31216).
_Claude Code on behalf of davsclaus_
##########
dsl/camel-dsl-modeline/src/main/docs/dsl-modeline.adoc:
##########
@@ -13,5 +13,51 @@
== Camel CLI
-There is support for
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang
dependencies] using the `//DEPS` comments style,
-when using Camel CLI.
+The Camel CLI supports
https://www.jbang.dev/documentation/guide/latest/dependencies.html[JBang
dependencies] in the
+`//DEPS` comment style: a route file can name the extra Maven dependencies it
needs, and `camel run` downloads them and
+adds them to the classpath.
+
+A `//DEPS` line is a comment, so it is written in the comment style of the
file. In a Java route:
+
+[source,java]
+----
+//DEPS com.example:my-library:1.0
+
+import org.apache.camel.builder.RouteBuilder;
+
+public class MyRoute extends RouteBuilder {
+
+ @Override
+ public void configure() throws Exception {
+ from("timer:tick")
+ .to("log:tick");
+ }
+}
+----
+
+And in a YAML route, behind `#`:
+
+[source,yaml]
+----
+#//DEPS com.example:my-library:1.0
+#//DEPS com.example:other-library:2.1
+
+- route:
+ from:
+ uri: timer:tick
+ steps:
+ - to:
+ uri: log:tick
+----
+
+The rules:
+
+* Each dependency is a Maven coordinate `groupId:artifactId:version`. One line
can name several, separated by spaces.
+* A coordinate that ends with `@pom` (a BOM in JBang) is skipped.
Review Comment:
Moot: 2c4202d3da31 removed this `//DEPS` text from the page; the description
moves to the modeline deprecation (CAMEL-28011, #31216).
_Claude Code on behalf of davsclaus_
--
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]