Repository: camel
Updated Branches:
  refs/heads/master 0fc8903cf -> af50946b7


Component docs


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/af50946b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/af50946b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/af50946b

Branch: refs/heads/master
Commit: af50946b7efd3c9a9794c1f94a0d5321957f4a0f
Parents: 0fc8903
Author: Claus Ibsen <davscl...@apache.org>
Authored: Tue Aug 23 10:08:36 2016 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Tue Aug 23 10:08:36 2016 +0200

----------------------------------------------------------------------
 components/camel-bindy/src/main/docs/bindy-dataformat.adoc    | 2 +-
 .../org/apache/camel/maven/packaging/ReadmeComponentMojo.java | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/af50946b/components/camel-bindy/src/main/docs/bindy-dataformat.adoc
----------------------------------------------------------------------
diff --git a/components/camel-bindy/src/main/docs/bindy-dataformat.adoc 
b/components/camel-bindy/src/main/docs/bindy-dataformat.adoc
index 59aa943..a4918fb 100644
--- a/components/camel-bindy/src/main/docs/bindy-dataformat.adoc
+++ b/components/camel-bindy/src/main/docs/bindy-dataformat.adoc
@@ -74,7 +74,7 @@ The Bindy dataformat supports 3 options which are listed 
below.
 [width="100%",cols="2s,1m,1m,6",options="header"]
 |=======================================================================
 | Name | Default | Java Type | Description
-| type | KeyValue | BindyType | Whether to use csv fixed or key value pairs 
mode.
+| type |  | BindyType | Whether to use csv fixed or key value pairs mode. The 
default value is either Csv or KeyValue depending on chosen dataformat.
 | classType |  | String | Name of model class to use.
 | locale |  | String | To configure a default locale to use such as us for 
united states. To use the JVM platform default locale then use the name default
 |=======================================================================

http://git-wip-us.apache.org/repos/asf/camel/blob/af50946b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java
----------------------------------------------------------------------
diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java
index e1583e3..227ac11 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/ReadmeComponentMojo.java
@@ -528,6 +528,13 @@ public class ReadmeComponentMojo extends AbstractMojo {
             option.setDefaultValue(getSafeValue("defaultValue", row));
             option.setDescription(getSafeValue("description", row));
 
+            // special for bindy as we reuse one readme file
+            if (dataFormatName.startsWith("bindy") && 
option.getName().equals("type")) {
+                option.setDefaultValue("");
+                String doc = option.getDescription() + " The default value is 
either Csv or KeyValue depending on chosen dataformat.";
+                option.setDescription(doc);
+            }
+
             // skip option named id
             if ("id".equals(option.getName())) {
                 getLog().debug("Skipping option: " + option.getName());

Reply via email to