Author: buildbot
Date: Thu Dec 20 20:18:18 2012
New Revision: 843267
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/groovy-dsl.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/groovy-dsl.html
==============================================================================
--- websites/production/camel/content/groovy-dsl.html (original)
+++ websites/production/camel/content/groovy-dsl.html Thu Dec 20 20:18:18 2012
@@ -75,7 +75,76 @@
<tbody>
<tr>
<td valign="top" width="100%">
-<div class="wiki-content maincontent"></div>
+<div class="wiki-content maincontent"><h3><a shape="rect"
name="GroovyDSL-AbouttheGroovyDSL"></a>About the Groovy DSL</h3>
+
+<p>The Groovy DSL implementation is built on top of the existing Java-based <a
shape="rect" href="dsl.html" title="DSL">DSL</a>, but it additionally allows to
use Groovy language features in your routes, particularly <a shape="rect"
class="external-link" href="http://groovy.codehaus.org/Closures"
rel="nofollow">Closures</a> acting as <a shape="rect" href="processor.html"
title="Processor">processor</a>, <a shape="rect" href="expression.html"
title="Expression">expression</a>, <a shape="rect" href="predicate.html"
title="Predicate">predicate</a>, or <a shape="rect" href="aggregator.html"
title="Aggregator">aggregation strategy</a>.<br clear="none">
+With the Groovy DSL you write your RouteBuilder classes entirely in Groovy,
while the <a shape="rect" href="scripting-languages.html" title="Scripting
Languages">scripting component</a> allows to embed small scripts into Java
routes. The Groovy DSL requires Groovy 2.0 or newer and is available as of
<b>Camel 2.11</b>.</p>
+
+<h3><a shape="rect" name="GroovyDSL-Overview"></a>Overview</h3>
+
+<p>TODO</p>
+
+<h4><a shape="rect" name="GroovyDSL-UsingClosures"></a>Using Closures</h4>
+
+<h4><a shape="rect" name="GroovyDSL-UsingGroovyXMLprocessing"></a>Using Groovy
XML processing</h4>
+
+<h4><a shape="rect" name="GroovyDSL-CustomDSLextensions"></a>Custom DSL
extensions</h4>
+
+<h3><a shape="rect" name="GroovyDSL-DevelopingwiththeGroovyDSL"></a>Developing
with the Groovy DSL</h3>
+
+<p>To be able to use the Groovy DSL in your camel routes you need to add the a
dependency on <b>camel-groovy</b> which implements the Groovy DSL.</p>
+
+<p>If you use Maven you can just add the following to your pom.xml,
substituting the version number for the latest & greatest release (see the
download page for the latest versions).</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-xml">
+<span class="code-tag"><dependency></span>
+ <span class="code-tag"><groupId></span>org.apache.camel<span
class="code-tag"></groupId></span>
+ <span class="code-tag"><artifactId></span>camel-groovy<span
class="code-tag"></artifactId></span>
+ <span class="code-tag"><version></span>2.11.0<span
class="code-tag"></version></span>
+<span class="code-tag"></dependency></span>
+</pre>
+</div></div>
+
+<p>Additionally you need to make sure that the Groovy classes will be
compiled. You can either use gmaven for this or, particularly with mixed
projects containing Java and Groovy code, you might want to use the <a
shape="rect" class="external-link"
href="http://groovy.codehaus.org/Groovy-Eclipse+compiler+plugin+for+Maven"
rel="nofollow">Groovy Eclipse compiler</a>:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-xml">
+ <span class="code-tag"><plugin></span>
+ <span class="code-tag"><artifactId></span>maven-compiler-plugin<span
class="code-tag"></artifactId></span>
+ <span class="code-tag"><configuration></span>
+ <span
class="code-tag"><compilerId></span>groovy-eclipse-compiler<span
class="code-tag"></compilerId></span>
+ <span class="code-tag"></configuration></span>
+ <span class="code-tag"><dependencies></span>
+ <span class="code-tag"><dependency></span>
+ <span class="code-tag"><groupId></span>org.codehaus.groovy<span
class="code-tag"></groupId></span>
+ <span
class="code-tag"><artifactId></span>groovy-eclipse-compiler<span
class="code-tag"></artifactId></span>
+ <span class="code-tag"><version></span>2.7.0-01<span
class="code-tag"></version></span>
+ <span class="code-tag"></dependency></span>
+ <span class="code-tag"></dependencies></span>
+ <span class="code-tag"></plugin></span>
+</pre>
+</div></div>
+
+<p>As Eclipse user, you might want to configure the Maven Eclipse plugin in a
way so that your project is set up correctly for using <a shape="rect"
class="external-link" href="http://groovy.codehaus.org/Eclipse+Plugin"
rel="nofollow">Eclipse Plugin for Groovy</a> when <tt>mvn eclipse:eclipse</tt>
is executed:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<pre class="code-xml">
+ <span class="code-tag"><plugin></span>
+ <span class="code-tag"><groupId></span>org.apache.maven.plugins<span
class="code-tag"></groupId></span>
+ <span class="code-tag"><artifactId></span>maven-eclipse-plugin<span
class="code-tag"></artifactId></span>
+ <span class="code-tag"><configuration></span>
+ <span class="code-tag"><additionalProjectnatures></span>
+ <span
class="code-tag"><projectnature></span>org.eclipse.jdt.groovy.core.groovyNature<span
class="code-tag"></projectnature></span>
+ <span class="code-tag"></additionalProjectnatures></span>
+ <span class="code-tag"><classpathContainers></span>
+ <span
class="code-tag"><classpathContainer></span>org.eclipse.jdt.launching.JRE_CONTAINER<span
class="code-tag"></classpathContainer></span>
+ <span
class="code-tag"><classpathContainer></span>GROOVY_DSL_SUPPORT<span
class="code-tag"></classpathContainer></span>
+ <span class="code-tag"></classpathContainers></span>
+ <span class="code-tag"></configuration></span>
+ <span class="code-tag"></plugin></span>
+</pre>
+</div></div></div>
</td>
<td valign="top">
<div class="navigation">