This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-2.25.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 2723cc64f1669249a909a909ee8b69c5a956543b
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Apr 20 11:20:39 2021 +0200

    XML DSL should mark top level elements as deprecated if they are in the XSD 
documentation.
---
 .../src/main/java/org/apache/camel/maven/DocumentationEnricher.java   | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/main/java/org/apache/camel/maven/DocumentationEnricher.java
 
b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/main/java/org/apache/camel/maven/DocumentationEnricher.java
index 1153de8..e601974 100644
--- 
a/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/main/java/org/apache/camel/maven/DocumentationEnricher.java
+++ 
b/tooling/maven/camel-eip-documentation-enricher-maven-plugin/src/main/java/org/apache/camel/maven/DocumentationEnricher.java
@@ -66,6 +66,10 @@ public class DocumentationEnricher {
         for (Map<String, String> row : rows) {
             if (row.containsKey(Constants.DESCRIPTION_ATTRIBUTE_NAME)) {
                 String descriptionText = 
row.get(Constants.DESCRIPTION_ATTRIBUTE_NAME);
+                String deprecatedText = 
row.get(Constants.DEPRECATED_ATTRIBUTE_NAME);
+                if ("true".equals(deprecatedText)) {
+                    descriptionText = "Deprecated: " + descriptionText;
+                }
                 addDocumentation(item, descriptionText);
                 break;
             }

Reply via email to