You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/04/22 13:45:08 UTC
[camel-examples] branch main updated: dump routes as xml in this
example
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-examples.git
The following commit(s) were added to refs/heads/main by this push:
new fe09078 dump routes as xml in this example
fe09078 is described below
commit fe09078e261b0c5ee840e1154177079a5bf124ec
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Apr 21 14:19:40 2021 +0200
dump routes as xml in this example
---
examples/routeloader/pom.xml | 5 +++++
examples/routeloader/src/main/resources/application.properties | 3 +++
2 files changed, 8 insertions(+)
diff --git a/examples/routeloader/pom.xml b/examples/routeloader/pom.xml
index b7baaf2..b2df5d4 100644
--- a/examples/routeloader/pom.xml
+++ b/examples/routeloader/pom.xml
@@ -71,6 +71,11 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-yaml-dsl</artifactId>
</dependency>
+ <!-- used to dump routes as XML -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-xml-jaxb</artifactId>
+ </dependency>
<!-- components -->
<dependency>
diff --git a/examples/routeloader/src/main/resources/application.properties b/examples/routeloader/src/main/resources/application.properties
index e05ff48..b8955fc 100644
--- a/examples/routeloader/src/main/resources/application.properties
+++ b/examples/routeloader/src/main/resources/application.properties
@@ -19,6 +19,9 @@
# here you can configure options on camel main (see MainConfigurationProperties class)
camel.main.name = MyJavaLoader
+# dump routes as XML (routes are coded in different DSLs but can be dumped as XML)
+camel.main.dump-routes = true
+
# which directory(s) to scan for routes which can be xml or java files
camel.main.routes-include-pattern=classpath:myroutes/*