You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2007/09/12 07:03:21 UTC
svn commit: r574787 - in /activemq/camel/trunk/components/camel-ruby: ./
src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/
src/main/java/org/apache/camel/ src/main/java/org/apache/camel/ruby/
src/main/resources/ src/test/ src/t...
Author: jstrachan
Date: Tue Sep 11 22:03:18 2007
New Revision: 574787
URL: http://svn.apache.org/viewvc?rev=574787&view=rev
Log:
initial spike of a ruby DSL for Camel for CAMEL-145
Added:
activemq/camel/trunk/components/camel-ruby/
activemq/camel/trunk/components/camel-ruby/pom.xml (with props)
activemq/camel/trunk/components/camel-ruby/src/
activemq/camel/trunk/components/camel-ruby/src/main/
activemq/camel/trunk/components/camel-ruby/src/main/java/
activemq/camel/trunk/components/camel-ruby/src/main/java/org/
activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/
activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/
activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/
activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/RubyCamel.java (with props)
activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/ScriptRouteBuilder.java (with props)
activemq/camel/trunk/components/camel-ruby/src/main/resources/
activemq/camel/trunk/components/camel-ruby/src/main/resources/camel.rb (with props)
activemq/camel/trunk/components/camel-ruby/src/test/
activemq/camel/trunk/components/camel-ruby/src/test/java/
activemq/camel/trunk/components/camel-ruby/src/test/java/org/
activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/
activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/
activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/
activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RouteUsingNestedScopesTest.java (with props)
activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java (with props)
activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RunScript.java (with props)
activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/example.rb (with props)
activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/scopes.rb (with props)
activemq/camel/trunk/components/camel-ruby/src/test/resources/
activemq/camel/trunk/components/camel-ruby/src/test/resources/log4j.properties (with props)
Added: activemq/camel/trunk/components/camel-ruby/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ruby/pom.xml?rev=574787&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-ruby/pom.xml (added)
+++ activemq/camel/trunk/components/camel-ruby/pom.xml Tue Sep 11 22:03:18 2007
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-parent</artifactId>
+ <version>1.1-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>camel-ruby</artifactId>
+ <name>Camel :: Ruby</name>
+ <description>Camel Ruby support</description>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-spring</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jruby</groupId>
+ <artifactId>jruby</artifactId>
+ <version>1.0.1</version>
+ </dependency>
+
+ <!-- testing -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-core</artifactId>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+</project>
+
+
Propchange: activemq/camel/trunk/components/camel-ruby/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/RubyCamel.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/RubyCamel.java?rev=574787&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/RubyCamel.java (added)
+++ activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/RubyCamel.java Tue Sep 11 22:03:18 2007
@@ -0,0 +1,52 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.ruby;
+
+import java.util.List;
+import java.util.ArrayList;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.impl.DefaultCamelContext;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+public class RubyCamel {
+ private static CamelContext camelContext;
+ private static List<RouteBuilder> routes = new ArrayList<RouteBuilder>();
+
+ public static List<RouteBuilder> getRoutes() {
+ return routes;
+ }
+
+ public static void addRouteBuilder(RouteBuilder builder) {
+ routes.add(builder);
+ }
+
+ public static CamelContext getCamelContext() {
+ if (camelContext == null) {
+ camelContext = new DefaultCamelContext();
+ }
+ return camelContext;
+ }
+
+ public static void setCamelContext(CamelContext camelContext) {
+ RubyCamel.camelContext = camelContext;
+ }
+}
Propchange: activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/RubyCamel.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/ScriptRouteBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/ScriptRouteBuilder.java?rev=574787&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/ScriptRouteBuilder.java (added)
+++ activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/ScriptRouteBuilder.java Tue Sep 11 22:03:18 2007
@@ -0,0 +1,71 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.ruby;
+
+import org.apache.camel.Endpoint;
+import org.apache.camel.CamelContext;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.model.ProcessorType;
+import org.apache.camel.model.RouteType;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * Provide some helper methods for building routes from scripting languages
+ * with a minimum amount of noise using state for the current node in the DSL
+ *
+ * @version $Revision: 1.1 $
+ */
+public abstract class ScriptRouteBuilder extends RouteBuilder {
+ private static final transient Log LOG = LogFactory.getLog(ScriptRouteBuilder.class);
+ protected ProcessorType node;
+
+ public ScriptRouteBuilder() {
+ }
+
+ public ScriptRouteBuilder(CamelContext context) {
+ super(context);
+ }
+
+ @Override
+ protected void configureRoute(RouteType route) {
+ super.configureRoute(route);
+ this.node = route;
+ }
+
+ public ProcessorType to(String uri) {
+ return getNode().to(uri);
+ }
+
+ public ProcessorType to(Endpoint endpoint) {
+ return getNode().to(endpoint);
+ }
+
+ public ProcessorType getNode() {
+ if (node == null) {
+ throw new IllegalStateException("You must define a route first via the from() method");
+ }
+ return node;
+ }
+
+ public void setNode(ProcessorType node) {
+ this.node = node;
+
+ LOG.info("Node is now: " + node);
+ }
+}
Propchange: activemq/camel/trunk/components/camel-ruby/src/main/java/org/apache/camel/ruby/ScriptRouteBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/components/camel-ruby/src/main/resources/camel.rb
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ruby/src/main/resources/camel.rb?rev=574787&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-ruby/src/main/resources/camel.rb (added)
+++ activemq/camel/trunk/components/camel-ruby/src/main/resources/camel.rb Tue Sep 11 22:03:18 2007
@@ -0,0 +1,65 @@
+require "java"
+
+module Camel
+
+ include_class "org.apache.camel.impl.DefaultCamelContext"
+ include_class "org.apache.camel.impl.ExpressionSupport"
+ include_class "org.apache.camel.model.RouteType"
+ include_class "org.apache.camel.ruby.ScriptRouteBuilder"
+
+ class RubyRouteBuilder < ScriptRouteBuilder
+
+ # def from(uri)
+ # @node = super.from(uri)
+ # @node
+ # end
+ #
+ # def to(uri)
+ # @node = @node.to(uri)
+ # @node
+ # end
+ #
+
+
+ def filter(params={}, &predicate)
+ e = expression(&predicate)
+ answer = getNode().filter(e)
+ setNode(answer)
+ return answer
+ end
+
+ def aaaafilter2(predicate, &block)
+ puts "Called filter2 with #{predicate}"
+ node = getNode()
+ setNode(node.filter(predicate))
+ block.call(getNode())
+ setNode(node)
+ end
+
+ def expression(&block)
+ e = BlockExpression.new
+ e.value(&block)
+ end
+ end
+
+ class BlockExpression < ExpressionSupport
+
+ def value(&block)
+ @block = block
+ self
+ end
+
+ def evaluate(exchange)
+ @block.call(exchange)
+ end
+
+ def assertionFailureMessage(text)
+ text
+ end
+
+ def to_s
+ @block.to_s
+ end
+ end
+end
+
Propchange: activemq/camel/trunk/components/camel-ruby/src/main/resources/camel.rb
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RouteUsingNestedScopesTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RouteUsingNestedScopesTest.java?rev=574787&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RouteUsingNestedScopesTest.java (added)
+++ activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RouteUsingNestedScopesTest.java Tue Sep 11 22:03:18 2007
@@ -0,0 +1,29 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.ruby;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+public class RouteUsingNestedScopesTest extends RubyTest {
+ @Override
+ protected void setUp() throws Exception {
+ scriptName = "src/test/java/org/apache/camel/ruby/scopes.rb";
+ super.setUp();
+ }
+}
\ No newline at end of file
Propchange: activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RouteUsingNestedScopesTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java?rev=574787&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java (added)
+++ activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java Tue Sep 11 22:03:18 2007
@@ -0,0 +1,78 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.ruby;
+
+import java.util.List;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.builder.RouteBuilder;
+import org.jruby.Main;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+public class RubyTest extends ContextTestSupport {
+ protected String expected = "<hello>world!</hello>";
+ protected String scriptName = "src/test/java/org/apache/camel/ruby/example.rb";
+
+ public void testSendMatchingMessage() throws Exception {
+ MockEndpoint resultEndpoint = getMockEndpoint("mock:results");
+ resultEndpoint.expectedBodiesReceived(expected);
+
+ template.sendBodyAndHeader("direct:a", expected, "foo", "bar");
+
+ assertMockEndpointsSatisifed();
+ }
+
+ public void testSendNotMatchingMessage() throws Exception {
+ MockEndpoint resultEndpoint = getMockEndpoint("mock:results");
+ resultEndpoint.expectedMessageCount(0);
+
+ template.sendBodyAndHeader("direct:a", expected, "foo", "123");
+
+ assertMockEndpointsSatisifed();
+ }
+
+
+ @Override
+ protected CamelContext createCamelContext() throws Exception {
+ CamelContext answer = super.createCamelContext();
+ RubyCamel.setCamelContext(answer);
+
+ // TODO make a better way to load ruby based route definitions!
+
+ // now lets run the script
+ runScript(scriptName);
+
+ List<RouteBuilder> list = RubyCamel.getRoutes();
+
+ log.info("Found route builders: " + list);
+ for (RouteBuilder routeBuilder : list) {
+ answer.addRoutes(routeBuilder);
+ }
+
+ return answer;
+ }
+
+ public static void runScript(String name) {
+ String[] args = {name};
+ Main.main(args);
+ }
+}
Propchange: activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RubyTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RunScript.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RunScript.java?rev=574787&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RunScript.java (added)
+++ activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RunScript.java Tue Sep 11 22:03:18 2007
@@ -0,0 +1,42 @@
+/**
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.ruby;
+
+import junit.framework.TestCase;
+import org.jruby.Main;
+
+/**
+ * @version $Revision: 1.1 $
+ */
+public class RunScript {
+ public static void main(String[] args) {
+ if (args.length == 0) {
+ runScript("src/test/java/org/apache/camel/ruby/example.rb");
+ }
+ else {
+ for (String arg : args) {
+ runScript(arg);
+ }
+ }
+ }
+
+ public static void runScript(String name) {
+ String[] args = {name};
+ Main.main(args);
+ }
+}
\ No newline at end of file
Propchange: activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/RunScript.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/example.rb
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/example.rb?rev=574787&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/example.rb (added)
+++ activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/example.rb Tue Sep 11 22:03:18 2007
@@ -0,0 +1,25 @@
+require 'camel'
+
+include_class "org.apache.camel.ruby.RubyCamel"
+
+class MyRoute < Camel::RubyRouteBuilder
+
+ def configure
+
+ from "direct:a"
+
+ filter { |e|
+ e.in.headers["foo"] == "bar"
+ }
+
+ # TODO this should not use the filter!
+ to "mock:results"
+
+ end
+
+end
+
+RubyCamel.addRouteBuilder(MyRoute.new)
+
+
+
Propchange: activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/example.rb
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/scopes.rb
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/scopes.rb?rev=574787&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/scopes.rb (added)
+++ activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/scopes.rb Tue Sep 11 22:03:18 2007
@@ -0,0 +1,20 @@
+require 'camel'
+
+include_class "org.apache.camel.ruby.RubyCamel"
+
+class MyScopesRoute < Camel::RubyRouteBuilder
+
+ def configure
+
+ from "direct:a"
+
+ filter {|e| e.in.headers["foo"] == "bar" }.to "mock:results"
+
+ end
+
+end
+
+RubyCamel.addRouteBuilder(MyScopesRoute.new)
+
+
+
Propchange: activemq/camel/trunk/components/camel-ruby/src/test/java/org/apache/camel/ruby/scopes.rb
------------------------------------------------------------------------------
svn:eol-style = native
Added: activemq/camel/trunk/components/camel-ruby/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-ruby/src/test/resources/log4j.properties?rev=574787&view=auto
==============================================================================
--- activemq/camel/trunk/components/camel-ruby/src/test/resources/log4j.properties (added)
+++ activemq/camel/trunk/components/camel-ruby/src/test/resources/log4j.properties Tue Sep 11 22:03:18 2007
@@ -0,0 +1,32 @@
+## ------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ------------------------------------------------------------------------
+
+#
+# The logging properties used for eclipse testing, We want to see debug output on the console.
+#
+log4j.rootLogger=INFO, out
+
+# uncomment the following to enable debug of Camel
+log4j.logger.org.apache.camel=DEBUG
+
+#log4j.logger.org.apache.activemq=DEBUG
+
+# CONSOLE appender not used by default
+log4j.appender.out=org.apache.log4j.ConsoleAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
+#log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
Propchange: activemq/camel/trunk/components/camel-ruby/src/test/resources/log4j.properties
------------------------------------------------------------------------------
svn:eol-style = native