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 2018/08/09 08:08:06 UTC

[camel] 01/02: CAMEL-12716: Some spring-boot-starters generated have wrong component name in their javadoc documentation

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

commit 51d0198787a9513c8c38cbc444cf167e1df01ea4
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Aug 9 09:10:35 2018 +0200

    CAMEL-12716: Some spring-boot-starters generated have wrong component name in their javadoc documentation
---
 .../apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
index 3bb1f13..f49ea23 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
@@ -708,7 +708,8 @@ public class SpringBootAutoConfigurationMojo extends AbstractMojo {
 
         // add bogus field for enabled so spring boot tooling can get the javadoc as description in its metadata
         PropertySource<JavaClassSource> bogus = javaClass.addProperty("java.lang.Boolean", "enabled");
-        bogus.getField().getJavaDoc().setText("Whether to enable auto configuration of the " + model.getScheme() + " component. This is enabled by default.");
+        String scheme = overrideComponentName != null ? overrideComponentName : model.getScheme();
+        bogus.getField().getJavaDoc().setText("Whether to enable auto configuration of the " + scheme + " component. This is enabled by default.");
         bogus.removeAccessor();
         bogus.removeMutator();