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.git
The following commit(s) were added to refs/heads/main by this push:
new d29a5f2bf54 CAMEL-19773 camel-jbang - use camel root tag in generated
xml route (#11598)
d29a5f2bf54 is described below
commit d29a5f2bf5424431ee0a2ff6540c636920beadda
Author: Jono Morris <[email protected]>
AuthorDate: Fri Sep 29 02:07:08 2023 +1300
CAMEL-19773 camel-jbang - use camel root tag in generated xml route (#11598)
* CAMEL-19773 use camel root tag in generated xml route
* CAMEL-19773 fix upgrade guide typo
---
docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_1.adoc | 2 ++
.../camel-jbang-core/src/main/resources/templates/xml.tmpl | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_1.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_1.adoc
index 7e528d77811..2fe82ded384 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_1.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_1.adoc
@@ -127,6 +127,8 @@ The `pipe` command has been renamed to `script`.
The `--secrets-refresh` and `--secret-refresh-providers` have been removed,
since they were logically incorrect in the export command context. More
information at CAMEL-19927 issue.
+The generated xml route, created using the command `camel init`, now uses
`<camel>` as the root tag instead of `<routes>`.
+
=== camel-jetty / camel-servlet / camel-atmosphere-websocket /
camel-http-common
By default stack traces will not be included in HTTP responses,
diff --git
a/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/xml.tmpl
b/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/xml.tmpl
index d9db2253489..cbbf988b6fe 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/xml.tmpl
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/templates/xml.tmpl
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- camel-k: language=xml -->
-<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<camel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://camel.apache.org/schema/spring"
xsi:schemaLocation="
http://camel.apache.org/schema/spring
@@ -16,4 +16,4 @@
<log message="${body}"/>
</route>
-</routes>
+</camel>