camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] camel git commit: First cut of mvn goal to generate/update component readme.md file. Switch to mvel which is easier to use than freemarker.
Date Wed, 27 Jan 2016 08:53:26 GMT
Repository: camel
Updated Branches:
  refs/heads/master c94011b2c -> 126f8ffc5


First cut of mvn goal to generate/update component readme.md file. Switch to mvel which is
easier to use than freemarker.


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

Branch: refs/heads/master
Commit: 126f8ffc527f5123b250a26a7520da7471f94aa1
Parents: 062aeaf
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Jan 27 09:47:40 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Jan 27 09:53:19 2016 +0100

----------------------------------------------------------------------
 .../src/main/resources/component-header.mvel                  | 7 +++++--
 .../src/main/resources/component-options.mvel                 | 6 +++---
 .../src/main/resources/endpoint-options.mvel                  | 2 +-
 3 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/126f8ffc/tooling/maven/camel-package-maven-plugin/src/main/resources/component-header.mvel
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/component-header.mvel
b/tooling/maven/camel-package-maven-plugin/src/main/resources/component-header.mvel
index 965401a..13aa9d3 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/resources/component-header.mvel
+++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/component-header.mvel
@@ -1,7 +1,9 @@
-Welcome to @{title}
+# @{title}
 
 @{description}
 
+### Syntax
+
 The syntax:
 
     @{syntax}
@@ -12,6 +14,8 @@ An alternative syntax can be used:
     @{alternativeSyntax}
 @end{}
 
+### Maven Dependency
+
 Maven users would need to add dependency:
 
 ```xml
@@ -21,4 +25,3 @@ Maven users would need to add dependency:
       <version>${version}</version>
     </dependency>
 ```
-

http://git-wip-us.apache.org/repos/asf/camel/blob/126f8ffc/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 a367431..974a642 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
@@ -7,14 +7,14 @@ The @{title} component supports @{componentOptions.size()} options which
are lis
 
 | Name | Java Type | Description |
 | ---- | --------- | ----------- |
-@foreach{row : componentOptions}| @{row.name} | @{row.javaType} | @{row.description} |
+@foreach{row : componentOptions}| @{row.name} | @{row.shortJavaType} | @{row.description}
|
 @end{}
 
 #### Configuring component options
 
 The @{title} component can be configured using Java code as shown:
 
-```Java
+```java
    @{shortJavaType} @{scheme} = camelContext.getComponent("@{scheme}", @{shortJavaType}.class);
    @{scheme}.setFoo(...);
    @{scheme}.setBar(...);
@@ -22,7 +22,7 @@ The @{title} component can be configured using Java code as shown:
 
 And in XML you can configure the @{title} component as a <bean> as shown:
 
-```XML
+```xml
    <bean id="@{scheme}" class="@{javaType}">
      <property name="foo" value="..."/>
      <property name="bar" value="..."/>

http://git-wip-us.apache.org/repos/asf/camel/blob/126f8ffc/tooling/maven/camel-package-maven-plugin/src/main/resources/endpoint-options.mvel
----------------------------------------------------------------------
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 fd74440..b7f10b3 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
@@ -4,5 +4,5 @@ The @{title} component supports @{endpointOptions.size()} endpoint options
which
 
 | Name | Group | Required | Default | Java Type | Description |
 | ---- | ----- | -------- | ------- | --------- | ----------- |
-@foreach{row : endpointOptions}| @{row.name} | @{row.group} | @{row.required} | @{row.defaultValue}
| @{row.javaType} | @{row.description} |
+@foreach{row : endpointOptions}| @{row.name} | @{row.group} | @{row.required} | @{row.defaultValue}
| @{row.shortJavaType} | @{row.description} |
 @end{}


Mime
View raw message