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 2017/03/27 15:55:18 UTC

[3/3] camel git commit: CAMEL-11074: Unable to load Schematron XSLT templates on windows

CAMEL-11074: Unable to load Schematron XSLT templates on windows


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d999f21b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d999f21b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d999f21b

Branch: refs/heads/camel-2.17.x
Commit: d999f21b641c3505b88cc7c4c66aee6054956611
Parents: 9ea2a28
Author: James Netherton <ja...@gmail.com>
Authored: Mon Mar 27 16:19:07 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Mar 27 17:55:08 2017 +0200

----------------------------------------------------------------------
 .../component/schematron/processor/ClassPathURIResolver.java      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/d999f21b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/ClassPathURIResolver.java
----------------------------------------------------------------------
diff --git a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/ClassPathURIResolver.java b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/ClassPathURIResolver.java
index 86c9bed..8be20e1 100644
--- a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/ClassPathURIResolver.java
+++ b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/ClassPathURIResolver.java
@@ -16,7 +16,6 @@
  */
 package org.apache.camel.component.schematron.processor;
 
-import java.io.File;
 import java.io.InputStream;
 import javax.xml.transform.Source;
 import javax.xml.transform.TransformerException;
@@ -43,7 +42,7 @@ public class ClassPathURIResolver implements URIResolver {
     @Override
     public Source resolve(String href, String base) throws TransformerException {
         InputStream stream = ClassPathURIResolver.class.getClassLoader()
-                .getResourceAsStream(rulesDir.concat(File.separator).concat(href));
+                .getResourceAsStream(rulesDir.concat("/").concat(href));
         if (stream != null) {
             return new StreamSource(stream);
         } else {