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 2019/05/19 09:06:50 UTC

[camel] branch master updated (f9b1a28 -> cf74f15)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from f9b1a28  Update deprecated method
     new a144a22  Fixed CS
     new cf74f15  CAMEL-13371: Fixed test

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../camel/support/builder/xml/NamespacesHelper.java | 21 ++++++++++++++++++++-
 .../org/apache/camel/util/camel-context.xml         |  0
 2 files changed, 20 insertions(+), 1 deletion(-)
 copy core/{camel-core => camel-jaxp}/src/test/resources/org/apache/camel/util/camel-context.xml (100%)


[camel] 02/02: CAMEL-13371: Fixed test

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit cf74f1553f690d41aaad629fdd9cb407444e6180
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun May 19 11:06:36 2019 +0200

    CAMEL-13371: Fixed test
---
 .../org/apache/camel/util/camel-context.xml        | 49 ++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/core/camel-jaxp/src/test/resources/org/apache/camel/util/camel-context.xml b/core/camel-jaxp/src/test/resources/org/apache/camel/util/camel-context.xml
new file mode 100644
index 0000000..d111a23
--- /dev/null
+++ b/core/camel-jaxp/src/test/resources/org/apache/camel/util/camel-context.xml
@@ -0,0 +1,49 @@
+<?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.
+
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
+
+  <!-- notice Camel will only update the routes that has been changed, so you can edit either either route or both
+       and save the file, and Camel will update only what is required -->
+
+  <camelContext xmlns="http://camel.apache.org/schema/spring">
+
+    <route id="timer">
+      <from uri="timer:foo"/>
+      <!-- call the 2nd route -->
+      <to uri="direct:foo"/>
+      <!-- try to change me and save this file -->
+      <log message="You said: ${body}"/>
+    </route>
+
+    <route id="foo">
+      <from uri="direct:foo"/>
+      <!-- try to change me and save this file -->
+      <transform>
+        <constant>Hello World</constant>
+      </transform>
+    </route>
+
+  </camelContext>
+
+</beans>


[camel] 01/02: Fixed CS

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit a144a22c72c49b25acbea800913558e3713e600b
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun May 19 11:03:56 2019 +0200

    Fixed CS
---
 .../camel/support/builder/xml/NamespacesHelper.java | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/core/camel-jaxp/src/main/java/org/apache/camel/support/builder/xml/NamespacesHelper.java b/core/camel-jaxp/src/main/java/org/apache/camel/support/builder/xml/NamespacesHelper.java
index 37383f6..491f02a 100644
--- a/core/camel-jaxp/src/main/java/org/apache/camel/support/builder/xml/NamespacesHelper.java
+++ b/core/camel-jaxp/src/main/java/org/apache/camel/support/builder/xml/NamespacesHelper.java
@@ -1,3 +1,19 @@
+/*
+ * 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.support.builder.xml;
 
 import org.w3c.dom.Attr;
@@ -7,7 +23,10 @@ import org.w3c.dom.Node;
 
 import org.apache.camel.support.builder.Namespaces;
 
-public class NamespacesHelper {
+public final class NamespacesHelper {
+
+    private NamespacesHelper() {       
+    }
 
     public static Namespaces namespaces(Element element) {
         Namespaces namespaces = new Namespaces();