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 2016/08/19 09:57:58 UTC
[1/2] camel git commit: CAMEL-9541: Include if a component is
deprecated
Repository: camel
Updated Branches:
refs/heads/master 52d4cf5b5 -> bd7b22b60
CAMEL-9541: Include if a component is deprecated
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/5a49e298
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5a49e298
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5a49e298
Branch: refs/heads/master
Commit: 5a49e298ee6a30b586541a6ff25d6915ccd27e22
Parents: 52d4cf5
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Aug 19 11:54:05 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Aug 19 11:54:05 2016 +0200
----------------------------------------------------------------------
components/readme.adoc | 22 ++++++++++----------
.../src/main/resources/readme-components.mvel | 2 +-
.../src/main/resources/readme-dataformats.mvel | 2 +-
.../src/main/resources/readme-languages.mvel | 2 +-
4 files changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/5a49e298/components/readme.adoc
----------------------------------------------------------------------
diff --git a/components/readme.adoc b/components/readme.adoc
index 232a986..6fcb3c5 100644
--- a/components/readme.adoc
+++ b/components/readme.adoc
@@ -82,7 +82,7 @@ Components
`braintree:apiName/methodName` | The braintree component is used for integrating with the Braintree Payment System.
| link:camel-context/src/main/docs/context-component.adoc[Camel Context] (camel-context) +
-`context:contextId:localEndpointUrl` | The context component allows to send/receive messages between Camel routes in a black box way.
+`context:contextId:localEndpointUrl` | *deprecated* The context component allows to send/receive messages between Camel routes in a black box way.
| link:camel-cassandraql/src/main/docs/cql-component.adoc[Cassandra CQL] (camel-cassandraql) +
`cql:beanRef:hosts:port/keyspace` | The cql component aims at integrating Cassandra 2.0 using the CQL3 API (not the Thrift API).
@@ -211,7 +211,7 @@ Components
`hbase:tableName` | For reading/writing from/to an HBase store (Hadoop database).
| link:camel-hdfs/src/main/docs/hdfs-component.adoc[HDFS] (camel-hdfs) +
-`hdfs:hostName:port/path` | For reading/writing from/to an HDFS filesystem using Hadoop 1.x.
+`hdfs:hostName:port/path` | *deprecated* For reading/writing from/to an HDFS filesystem using Hadoop 1.x.
| link:camel-hdfs2/src/main/docs/hdfs2-component.adoc[HDFS2] (camel-hdfs2) +
`hdfs2:hostName:port/path` | For reading/writing from/to an HDFS filesystem using Hadoop 2.x.
@@ -226,7 +226,7 @@ Components
`http4:httpUri` | For calling out to external HTTP servers using Apache HTTP Client 4.x.
| link:camel-ibatis/src/main/docs/ibatis-component.adoc[iBatis] (camel-ibatis) +
-`ibatis:statement` | Performs a query poll insert update or delete in a relational database using Apache iBATIS.
+`ibatis:statement` | *deprecated* Performs a query poll insert update or delete in a relational database using Apache iBATIS.
| link:camel-mail/src/main/docs/imap-component.adoc[IMAP] (camel-mail) +
`imap:host:port` | To send or receive emails using imap/pop3 or stmp protocols.
@@ -244,7 +244,7 @@ Components
`ironmq:queueName` | Represents a IronMQ endpoint.
| link:camel-javaspace/src/main/docs/javaspace-component.adoc[JavaSpace] (camel-javaspace) +
-`javaspace:url` | Sending and receiving messages through JavaSpace.
+`javaspace:url` | *deprecated* Sending and receiving messages through JavaSpace.
| link:camel-jbpm/src/main/docs/jbpm-component.adoc[JBPM] (camel-jbpm) +
`jbpm:connectionURL` | The jbpm component provides integration with jBPM (Business Process Management).
@@ -295,7 +295,7 @@ Components
`kafka:brokers` | The kafka component allows messages to be sent to (or consumed from) Apache Kafka brokers.
| link:camel-kestrel/src/main/docs/kestrel-component.adoc[Kestrel] (camel-kestrel) +
-`kestrel:addresses/queue` | The kestrel component allows messages to be sent to (or consumed from) Kestrel brokers.
+`kestrel:addresses/queue` | *deprecated* The kestrel component allows messages to be sent to (or consumed from) Kestrel brokers.
| link:camel-krati/src/main/docs/krati-component.adoc[Krati] (camel-krati) +
`krati:path` | The krati allows the use krati datastores and datasets inside Camel.
@@ -319,7 +319,7 @@ Components
`metrics:metricsType:metricsName` | To collect various metrics directly from Camel routes using the DropWizard metrics library.
| link:camel-mina/src/main/docs/mina-component.adoc[Mina] (camel-mina) +
-`mina:protocol:host:port` | Socket level networking using TCP or UDP with the Apache Mina 1.x library.
+`mina:protocol:host:port` | *deprecated* Socket level networking using TCP or UDP with the Apache Mina 1.x library.
| link:camel-mina2/src/main/docs/mina2-component.adoc[Mina2] (camel-mina2) +
`mina2:protocol:host:port` | Socket level networking using TCP or UDP with the Apache Mina 2.x library.
@@ -355,10 +355,10 @@ Components
`nats:servers` | Camel Components
| link:camel-netty/src/main/docs/netty-component.adoc[Netty] (camel-netty) +
-`netty:protocol:host:port` | Socket level networking using TCP or UDP with the Netty 3.x library.
+`netty:protocol:host:port` | *deprecated* Socket level networking using TCP or UDP with the Netty 3.x library.
| link:camel-netty-http/src/main/docs/netty-http-component.adoc[Netty HTTP] (camel-netty-http) +
-`netty-http:protocol:host:port/path` | Netty HTTP server and client using the Netty 3.x library.
+`netty-http:protocol:host:port/path` | *deprecated* Netty HTTP server and client using the Netty 3.x library.
| link:camel-netty4/src/main/docs/netty4-component.adoc[Netty4] (camel-netty4) +
`netty4:protocol:host:port` | Socket level networking using TCP or UDP with the Netty 4.x library.
@@ -367,7 +367,7 @@ Components
`netty4-http:protocol:host:port/path` | Netty HTTP server and client using the Netty 4.x library.
| link:camel-openshift/src/main/docs/openshift-component.adoc[OpenShift] (camel-openshift) +
-`openshift:clientId` | To manage your Openshift 2.x applications.
+`openshift:clientId` | *deprecated* To manage your Openshift 2.x applications.
| link:camel-optaplanner/src/main/docs/optaplanner-component.adoc[OptaPlanner] (camel-optaplanner) +
`optaplanner:configFile` | Solves the planning problem contained in a message with OptaPlanner.
@@ -391,7 +391,7 @@ Components
`lpr:hostname:port/printername` | The printer component is used for sending messages to printers as print jobs.
| link:camel-quartz/src/main/docs/quartz-component.adoc[Quartz] (camel-quartz) +
-`quartz:groupName/timerName` | Provides a scheduled delivery of messages using the Quartz 1.x scheduler.
+`quartz:groupName/timerName` | *deprecated* Provides a scheduled delivery of messages using the Quartz 1.x scheduler.
| link:camel-quartz2/src/main/docs/quartz2-component.adoc[Quartz2] (camel-quartz2) +
`quartz2:groupName/triggerName` | Provides a scheduled delivery of messages using the Quartz 2.x scheduler.
@@ -409,7 +409,7 @@ Components
`rmi:hostname:port/name` | The rmi component is for invoking Java RMI beans from Camel.
| link:camel-routebox/src/main/docs/routebox-component.adoc[RouteBox] (camel-routebox) +
-`routebox:routeboxName` | The routebox component allows to send/receive messages between Camel routes in a black box way.
+`routebox:routeboxName` | *deprecated* The routebox component allows to send/receive messages between Camel routes in a black box way.
| link:camel-rss/src/main/docs/rss-component.adoc[RSS] (camel-rss) +
`rss:feedUri` | The rss component is used for consuming RSS feeds.
http://git-wip-us.apache.org/repos/asf/camel/blob/5a49e298/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel
index 854e70a..af513d2 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel
+++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel
@@ -5,7 +5,7 @@
| Component | Description
@foreach{row : components}
| link:@{row.artifactId}/src/main/docs/${row.scheme}-component.adoc[@{row.title}] (@{row.artifactId}) +
-`@{row.syntax}` | @{row.description}
+`@{row.syntax}` | @if{row.deprecated == "true"}*deprecated* @end{}@{row.description}
@end{}
|=======================================================================
http://git-wip-us.apache.org/repos/asf/camel/blob/5a49e298/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel
index 65d19b0..c4b5419 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel
+++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel
@@ -4,7 +4,7 @@
|=======================================================================
| Data Format | Description
@foreach{row : dataformats}
-| link:@{row.artifactId}/src/main/docs/${row.name}-dataformat.adoc[@{row.title}] (@{row.artifactId}) | @{row.description}
+| link:@{row.artifactId}/src/main/docs/${row.name}-dataformat.adoc[@{row.title}] (@{row.artifactId}) | @if{row.deprecated == "true"}*deprecated* @end{}@{row.description}
@end{}|=======================================================================
@end{}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/5a49e298/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel
index 0761fd8..5c47fcc 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel
+++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel
@@ -4,7 +4,7 @@
|=======================================================================
| Language | Description
@foreach{row : languages}
-| link:@{row.artifactId}/src/main/docs/${row.name}-language.adoc[@{row.title}] (@{row.artifactId}) | @{row.description}
+| link:@{row.artifactId}/src/main/docs/${row.name}-language.adoc[@{row.title}] (@{row.artifactId}) | @if{row.deprecated == "true"}*deprecated* @end{}@{row.description}
@end{}|=======================================================================
@end{}
\ No newline at end of file
[2/2] camel git commit: CAMEL-9541: Fixed broken link in camel-core
readme
Posted by da...@apache.org.
CAMEL-9541: Fixed broken link in camel-core readme
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/bd7b22b6
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bd7b22b6
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bd7b22b6
Branch: refs/heads/master
Commit: bd7b22b60f6f85f276fa2c8f5560e92e7d39f705
Parents: 5a49e29
Author: Claus Ibsen <da...@apache.org>
Authored: Fri Aug 19 11:57:51 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Fri Aug 19 11:57:51 2016 +0200
----------------------------------------------------------------------
camel-core/readme.adoc | 78 ++++++++++----------
.../maven/packaging/model/ComponentModel.java | 8 ++
.../maven/packaging/model/DataFormatModel.java | 9 +++
.../maven/packaging/model/LanguageModel.java | 9 +++
.../src/main/resources/readme-components.mvel | 2 +-
.../src/main/resources/readme-dataformats.mvel | 2 +-
.../src/main/resources/readme-languages.mvel | 2 +-
7 files changed, 68 insertions(+), 42 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bd7b22b6/camel-core/readme.adoc
----------------------------------------------------------------------
diff --git a/camel-core/readme.adoc b/camel-core/readme.adoc
index 8058c58..30755ea 100644
--- a/camel-core/readme.adoc
+++ b/camel-core/readme.adoc
@@ -10,79 +10,79 @@ Components
|=======================================================================
| Component | Description
-| link:camel-core/src/main/docs/bean-component.adoc[Bean] (camel-core) +
+| link:src/main/docs/bean-component.adoc[Bean] (camel-core) +
`bean:beanName` | The bean component is for invoking Java beans from Camel.
-| link:camel-core/src/main/docs/binding-component.adoc[Binding] (camel-core) +
+| link:src/main/docs/binding-component.adoc[Binding] (camel-core) +
`binding:bindingName:delegateUri` | The binding component is used for as a of wrapping an Endpoint in a contract with a data format.
-| link:camel-core/src/main/docs/browse-component.adoc[Browse] (camel-core) +
+| link:src/main/docs/browse-component.adoc[Browse] (camel-core) +
`browse:name` | The browse component is used for viewsing the messages received on endpoints that supports BrowsableEndpoint.
-| link:camel-core/src/main/docs/class-component.adoc[Class] (camel-core) +
+| link:src/main/docs/class-component.adoc[Class] (camel-core) +
`class:beanName` | The Class Component is for invoking Java Classes (Java beans) from Camel.
-| link:camel-core/src/main/docs/controlbus-component.adoc[Control Bus] (camel-core) +
+| link:src/main/docs/controlbus-component.adoc[Control Bus] (camel-core) +
`controlbus:command:language` | The controlbus component provides easy management of Camel applications based on the Control Bus EIP pattern.
-| link:camel-core/src/main/docs/dataformat-component.adoc[Data Format] (camel-core) +
+| link:src/main/docs/dataformat-component.adoc[Data Format] (camel-core) +
`dataformat:name:operation` | The dataformat component is used for working with Data Formats as if it was a regular Component supporting Endpoints and URIs.
-| link:camel-core/src/main/docs/dataset-component.adoc[Dataset] (camel-core) +
+| link:src/main/docs/dataset-component.adoc[Dataset] (camel-core) +
`dataset:name` | The dataset component provides a mechanism to easily perform load & soak testing of your system.
-| link:camel-core/src/main/docs/direct-component.adoc[Direct] (camel-core) +
+| link:src/main/docs/direct-component.adoc[Direct] (camel-core) +
`direct:name` | The direct component provides direct synchronous call to another endpoint from the same CamelContext.
-| link:camel-core/src/main/docs/direct-vm-component.adoc[Direct VM] (camel-core) +
+| link:src/main/docs/direct-vm-component.adoc[Direct VM] (camel-core) +
`direct-vm:name` | The direct-vm component provides direct synchronous call to another endpoint from any CamelContext in the same JVM.
-| link:camel-core/src/main/docs/file-component.adoc[File] (camel-core) +
+| link:src/main/docs/file-component.adoc[File] (camel-core) +
`file:directoryName` | The file component is used for reading or writing files.
-| link:camel-core/src/main/docs/language-component.adoc[Language] (camel-core) +
+| link:src/main/docs/language-component.adoc[Language] (camel-core) +
`language:languageName:resourceUri` | The language component allows you to send a message to an endpoint which executes a script by any of the supported Languages in Camel.
-| link:camel-core/src/main/docs/log-component.adoc[Log] (camel-core) +
+| link:src/main/docs/log-component.adoc[Log] (camel-core) +
`log:loggerName` | The log component logs message exchanges to the underlying logging mechanism.
-| link:camel-core/src/main/docs/mock-component.adoc[Mock] (camel-core) +
+| link:src/main/docs/mock-component.adoc[Mock] (camel-core) +
`mock:name` | The mock component is used for testing routes and mediation rules using mocks.
-| link:camel-core/src/main/docs/properties-component.adoc[Properties] (camel-core) +
+| link:src/main/docs/properties-component.adoc[Properties] (camel-core) +
`properties:key` | The properties component is used for using property placeholders in endpoint uris.
-| link:camel-core/src/main/docs/ref-component.adoc[Ref] (camel-core) +
+| link:src/main/docs/ref-component.adoc[Ref] (camel-core) +
`ref:name` | The ref component is used for lookup of existing endpoints bound in the Registry.
-| link:camel-core/src/main/docs/rest-component.adoc[REST] (camel-core) +
+| link:src/main/docs/rest-component.adoc[REST] (camel-core) +
`rest:method:path:uriTemplate` | The rest component is used for hosting REST services which has been defined using the rest-dsl in Camel.
-| link:camel-core/src/main/docs/rest-api-component.adoc[REST API] (camel-core) +
+| link:src/main/docs/rest-api-component.adoc[REST API] (camel-core) +
`rest-api:path/contextIdPattern` | The rest-api component is used for providing Swagger API of the REST services which has been defined using the rest-dsl in Camel.
-| link:camel-core/src/main/docs/scheduler-component.adoc[Scheduler] (camel-core) +
+| link:src/main/docs/scheduler-component.adoc[Scheduler] (camel-core) +
`scheduler:name` | The scheduler component is used for generating message exchanges when a scheduler fires.
-| link:camel-core/src/main/docs/seda-component.adoc[SEDA] (camel-core) +
+| link:src/main/docs/seda-component.adoc[SEDA] (camel-core) +
`seda:name` | The seda component provides asynchronous call to another endpoint from any CamelContext in the same JVM.
-| link:camel-core/src/main/docs/stub-component.adoc[Stub] (camel-core) +
+| link:src/main/docs/stub-component.adoc[Stub] (camel-core) +
`stub:name` | The stub component provides a simple way to stub out any physical endpoints while in development or testing.
-| link:camel-core/src/main/docs/test-component.adoc[Test] (camel-core) +
+| link:src/main/docs/test-component.adoc[Test] (camel-core) +
`test:name` | The test component extends the mock component by on startup to pull messages from another endpoint to set the expected message bodies.
-| link:camel-core/src/main/docs/timer-component.adoc[Timer] (camel-core) +
+| link:src/main/docs/timer-component.adoc[Timer] (camel-core) +
`timer:timerName` | The timer component is used for generating message exchanges when a timer fires.
-| link:camel-core/src/main/docs/validator-component.adoc[Validator] (camel-core) +
+| link:src/main/docs/validator-component.adoc[Validator] (camel-core) +
`validator:resourceUri` | Validates the payload of a message using XML Schema and JAXP Validation.
-| link:camel-core/src/main/docs/vm-component.adoc[VM] (camel-core) +
+| link:src/main/docs/vm-component.adoc[VM] (camel-core) +
`vm:name` | The vm component provides asynchronous call to another endpoint from the same CamelContext.
-| link:camel-core/src/main/docs/xslt-component.adoc[XSLT] (camel-core) +
+| link:src/main/docs/xslt-component.adoc[XSLT] (camel-core) +
`xslt:resourceUri` | Transforms the message using a XSLT template.
|=======================================================================
@@ -105,13 +105,13 @@ Data Formats
|=======================================================================
| Data Format | Description
-| link:camel-core/src/main/docs/gzip-dataformat.adoc[GZip] (camel-core) | GZip compression data format
+| link:src/main/docs/gzip-dataformat.adoc[GZip] (camel-core) | GZip compression data format
-| link:camel-core/src/main/docs/serialization-dataformat.adoc[Java Object Serialization] (camel-core) | Java Object Serialization data format
+| link:src/main/docs/serialization-dataformat.adoc[Java Object Serialization] (camel-core) | Java Object Serialization data format
-| link:camel-core/src/main/docs/string-dataformat.adoc[String Encoding] (camel-core) | String (text based) data format
+| link:src/main/docs/string-dataformat.adoc[String Encoding] (camel-core) | String (text based) data format
-| link:camel-core/src/main/docs/zip-dataformat.adoc[Zip Deflate Compression] (camel-core) | Zip compression data format (not for zip files)
+| link:src/main/docs/zip-dataformat.adoc[Zip Deflate Compression] (camel-core) | Zip compression data format (not for zip files)
|=======================================================================
// dataformats: END
@@ -133,25 +133,25 @@ Expression Languages
|=======================================================================
| Language | Description
-| link:camel-core/src/main/docs/bean-language.adoc[Bean method] (camel-core) | For expressions and predicates using a java bean (aka method call)
+| link:src/main/docs/bean-language.adoc[Bean method] (camel-core) | For expressions and predicates using a java bean (aka method call)
-| link:camel-core/src/main/docs/constant-language.adoc[Constant] (camel-core) | For expressions and predicates using a constant
+| link:src/main/docs/constant-language.adoc[Constant] (camel-core) | For expressions and predicates using a constant
-| link:camel-core/src/main/docs/exchangeProperty-language.adoc[ExchangeProperty] (camel-core) | An expression which extracts the named exchange property
+| link:src/main/docs/exchangeProperty-language.adoc[ExchangeProperty] (camel-core) | An expression which extracts the named exchange property
-| link:camel-core/src/main/docs/file-language.adoc[File] (camel-core) | For expressions and predicates using the file/simple language
+| link:src/main/docs/file-language.adoc[File] (camel-core) | For expressions and predicates using the file/simple language
-| link:camel-core/src/main/docs/header-language.adoc[Header] (camel-core) | An expression which extracts the named exchange header
+| link:src/main/docs/header-language.adoc[Header] (camel-core) | An expression which extracts the named exchange header
-| link:camel-core/src/main/docs/ref-language.adoc[Ref] (camel-core) | For using a custom expression
+| link:src/main/docs/ref-language.adoc[Ref] (camel-core) | For using a custom expression
-| link:camel-core/src/main/docs/simple-language.adoc[Simple] (camel-core) | For expressions and predicates using the simple language
+| link:src/main/docs/simple-language.adoc[Simple] (camel-core) | For expressions and predicates using the simple language
-| link:camel-core/src/main/docs/tokenize-language.adoc[Tokenize] (camel-core) | For expressions and predicates using a body or header tokenizer.
+| link:src/main/docs/tokenize-language.adoc[Tokenize] (camel-core) | For expressions and predicates using a body or header tokenizer.
-| link:camel-core/src/main/docs/xtokenize-language.adoc[XML Tokenize] (camel-core) | For expressions and predicates using a body or header tokenizer.
+| link:src/main/docs/xtokenize-language.adoc[XML Tokenize] (camel-core) | For expressions and predicates using a body or header tokenizer.
-| link:camel-core/src/main/docs/xpath-language.adoc[XPath] (camel-core) | For XPath expressions and predicates
+| link:src/main/docs/xpath-language.adoc[XPath] (camel-core) | For XPath expressions and predicates
|=======================================================================
// languages: END
http://git-wip-us.apache.org/repos/asf/camel/blob/bd7b22b6/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/ComponentModel.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/ComponentModel.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/ComponentModel.java
index 9e50801..ad0445a 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/ComponentModel.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/ComponentModel.java
@@ -190,4 +190,12 @@ public class ComponentModel {
return javaType;
}
}
+
+ public String getDocLink() {
+ if ("camel-core".equals(artifactId)) {
+ return "src/main/docs";
+ } else {
+ return artifactId + "/src/main/docs";
+ }
+ }
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bd7b22b6/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/DataFormatModel.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/DataFormatModel.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/DataFormatModel.java
index 60f2145..d2abb50 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/DataFormatModel.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/DataFormatModel.java
@@ -145,4 +145,13 @@ public class DataFormatModel {
return javaType;
}
}
+
+ public String getDocLink() {
+ if ("camel-core".equals(artifactId)) {
+ return "src/main/docs";
+ } else {
+ return artifactId + "/src/main/docs";
+ }
+ }
+
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bd7b22b6/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/LanguageModel.java
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/LanguageModel.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/LanguageModel.java
index 851e5f4..b5f9197 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/LanguageModel.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/model/LanguageModel.java
@@ -145,4 +145,13 @@ public class LanguageModel {
return javaType;
}
}
+
+ public String getDocLink() {
+ if ("camel-core".equals(artifactId)) {
+ return "src/main/docs";
+ } else {
+ return artifactId + "/src/main/docs";
+ }
+ }
+
}
http://git-wip-us.apache.org/repos/asf/camel/blob/bd7b22b6/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel
index af513d2..5263a91 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel
+++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-components.mvel
@@ -4,7 +4,7 @@
|=======================================================================
| Component | Description
@foreach{row : components}
-| link:@{row.artifactId}/src/main/docs/${row.scheme}-component.adoc[@{row.title}] (@{row.artifactId}) +
+| link:@{row.docLink}/${row.scheme}-component.adoc[@{row.title}] (@{row.artifactId}) +
`@{row.syntax}` | @if{row.deprecated == "true"}*deprecated* @end{}@{row.description}
@end{}
|=======================================================================
http://git-wip-us.apache.org/repos/asf/camel/blob/bd7b22b6/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel
index c4b5419..7b769d9 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel
+++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-dataformats.mvel
@@ -4,7 +4,7 @@
|=======================================================================
| Data Format | Description
@foreach{row : dataformats}
-| link:@{row.artifactId}/src/main/docs/${row.name}-dataformat.adoc[@{row.title}] (@{row.artifactId}) | @if{row.deprecated == "true"}*deprecated* @end{}@{row.description}
+| link:@{row.docLink}/${row.name}-dataformat.adoc[@{row.title}] (@{row.artifactId}) | @if{row.deprecated == "true"}*deprecated* @end{}@{row.description}
@end{}|=======================================================================
@end{}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/camel/blob/bd7b22b6/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel
----------------------------------------------------------------------
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel
index 5c47fcc..382c29f 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel
+++ b/tooling/maven/camel-package-maven-plugin/src/main/resources/readme-languages.mvel
@@ -4,7 +4,7 @@
|=======================================================================
| Language | Description
@foreach{row : languages}
-| link:@{row.artifactId}/src/main/docs/${row.name}-language.adoc[@{row.title}] (@{row.artifactId}) | @if{row.deprecated == "true"}*deprecated* @end{}@{row.description}
+| link:@{row.docLink}/${row.name}-language.adoc[@{row.title}] (@{row.artifactId}) | @if{row.deprecated == "true"}*deprecated* @end{}@{row.description}
@end{}|=======================================================================
@end{}
\ No newline at end of file