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/20 07:04:13 UTC
[camel] branch master updated: XML DSL should include deprecated on
EIP model level also.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new a33804c XML DSL should include deprecated on EIP model level also.
a33804c is described below
commit a33804cbf7ead087705c01fdc9d086a457a2a0a4
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Apr 20 09:02:08 2021 +0200
XML DSL should include deprecated on EIP model level also.
---
.../src/main/java/org/apache/camel/maven/DocumentationEnricher.java | 3 +++
1 file changed, 3 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 33555cc..32a69f2 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
@@ -65,6 +65,9 @@ public class DocumentationEnricher {
private void addElementDocumentation(Element item, File jsonFile) {
BaseModel<?> model = JsonMapper.generateModel(jsonFile.toPath());
String descriptionText = model.getDescription();
+ if (model.isDeprecated()) {
+ descriptionText = "Deprecated: " + descriptionText;
+ }
addDocumentation(item, descriptionText);
}