Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 241BFDB44 for ; Thu, 20 Dec 2012 07:06:33 +0000 (UTC) Received: (qmail 50038 invoked by uid 500); 20 Dec 2012 07:06:33 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 49993 invoked by uid 500); 20 Dec 2012 07:06:32 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 49985 invoked by uid 99); 20 Dec 2012 07:06:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 07:06:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 07:06:31 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 84F1223889D5; Thu, 20 Dec 2012 07:06:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1424349 - in /camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources: pom.xml src/main/groovy/MyRouteBuilder.groovy Date: Thu, 20 Dec 2012 07:06:11 -0000 To: commits@camel.apache.org From: ningjiang@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121220070611.84F1223889D5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ningjiang Date: Thu Dec 20 07:06:10 2012 New Revision: 1424349 URL: http://svn.apache.org/viewvc?rev=1424349&view=rev Log: CAMEL-5898 update the camel-archetype-groovy with latest groovy DSL support Modified: camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources/pom.xml camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources/src/main/groovy/MyRouteBuilder.groovy Modified: camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources/pom.xml URL: http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources/pom.xml?rev=1424349&r1=1424348&r2=1424349&view=diff ============================================================================== --- camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources/pom.xml (original) +++ camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources/pom.xml Thu Dec 20 07:06:10 2012 @@ -84,41 +84,45 @@ org.apache.maven.plugins + maven-resources-plugin + ${maven-resources-plugin-version} + + UTF-8 + + + maven-compiler-plugin ${maven-compiler-plugin-version} 1.6 - 1.6 + 1.6 + groovy-eclipse-compiler + + + + + org.codehaus.groovy + groovy-eclipse-compiler + 2.7.0-01 + + org.apache.maven.plugins - maven-resources-plugin - ${maven-resources-plugin-version} + maven-eclipse-plugin + ${maven-eclipse-plugin-version} - UTF-8 + + org.eclipse.jdt.groovy.core.groovyNature + + + org.eclipse.jdt.launching.JRE_CONTAINER + GROOVY_DSL_SUPPORT + - + - - - org.codehaus.gmaven - gmaven-plugin - ${gmaven-plugin-version} - - 1.8 - - - - - generateStubs - compile - generateTestStubs - testCompile - - - - Modified: camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources/src/main/groovy/MyRouteBuilder.groovy URL: http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources/src/main/groovy/MyRouteBuilder.groovy?rev=1424349&r1=1424348&r2=1424349&view=diff ============================================================================== --- camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources/src/main/groovy/MyRouteBuilder.groovy (original) +++ camel/trunk/tooling/archetypes/camel-archetype-groovy/src/main/resources/archetype-resources/src/main/groovy/MyRouteBuilder.groovy Thu Dec 20 07:06:10 2012 @@ -28,8 +28,7 @@ class MyRouteBuilder extends RouteBuilde */ void configure() { from("jetty:http://0.0.0.0:8080") - .transform() - .groovy("'Today is ' + new Date()") + .transform { 'Today is ' + new Date() } } }