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/02/26 09:31:39 UTC

[camel] 01/03: CAMEL-12273: Component docs should not generate empty tables.

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 7d8f0ea68a29acca1f182b132068b8445788fb24
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Feb 26 10:01:04 2018 +0100

    CAMEL-12273: Component docs should not generate empty tables.
---
 .../src/main/resources/eip-options.mvel                           | 4 +++-
 .../src/main/resources/endpoint-options.mvel                      | 8 ++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/eip-options.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/eip-options.mvel
index d57f18b..ee51c62 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/resources/eip-options.mvel
+++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/eip-options.mvel
@@ -1,6 +1,8 @@
+@if{eipOptions.isEmpty()}
+The @{title} EIP has no options.
+@else{}
 The @{title} EIP supports @{eipOptions.size()} options which are listed below:
 
-@if{!eipOptions.isEmpty()}
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/endpoint-options.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/endpoint-options.mvel
index ee86096..217313f 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/resources/endpoint-options.mvel
+++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/endpoint-options.mvel
@@ -8,16 +8,24 @@ with the following path and query parameters:
 
 ==== Path Parameters (@{endpointPathOptions.size()} parameters):
 
+@if{endpointPathOptions.isEmpty()}
+The @{title} endpoint has no path parameters.
+@else{}
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
 @foreach{row : endpointPathOptions}| *@{row.getShortName(30)}* | @{row.description} | @{row.getShortDefaultValue(20)} | @{row.getShortJavaType(25)}
 @end{}|===
+@end{}
 
 ==== Query Parameters (@{endpointOptions.size()} parameters):
 
+@if{endpointOptions.isEmpty()}
+The @{title} endpoint has no query parameters.
+@else{}
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
 @foreach{row : endpointOptions}| *@{row.getShortName(30)}* (@{row.shortGroup}) | @{row.description} | @{row.getShortDefaultValue(20)} | @{row.getShortJavaType(25)}
 @end{}|===
+@end{}

-- 
To stop receiving notification emails like this one, please contact
davsclaus@apache.org.