You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2016/03/07 17:34:48 UTC

[5/5] camel git commit: Do not output empty options table in component documentation

Do not output empty options table in component documentation


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

Branch: refs/heads/master
Commit: 21186b2cb3861e5a0866c3d0c93bf8403c29704f
Parents: 8d2cb5e
Author: Antonin Stefanutti <an...@stefanutti.fr>
Authored: Mon Mar 7 17:16:13 2016 +0100
Committer: Antonin Stefanutti <an...@stefanutti.fr>
Committed: Mon Mar 7 17:34:08 2016 +0100

----------------------------------------------------------------------
 .../src/main/resources/component-options.mvel                      | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/21186b2c/tooling/maven/camel-package-maven-plugin/src/main/resources/component-options.mvel
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/component-options.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/component-options.mvel
index 394e49c..f2b0c1f 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/resources/component-options.mvel
+++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/component-options.mvel
@@ -4,8 +4,10 @@ The @{title} component has no options.
 The @{title} component supports @{componentOptions.size()} options which are listed below.
 @end{}
 
+@if{!componentOptions.isEmpty()}
 [width="100%",cols="2s,1m,8",options="header"]
 |=======================================================================
 | Name | Java Type | Description
 @foreach{row : componentOptions}| @{row.name} | @{row.shortJavaType} | @{row.description}
 @end{}|=======================================================================
+@end{}
\ No newline at end of file