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 2016/04/03 08:58:01 UTC

[2/3] camel git commit: fix schematron classpath uri resolver

fix schematron classpath uri resolver


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

Branch: refs/heads/camel-2.17.x
Commit: 0570a2aa677ae1bc9c9c16b39f2925dd1a987654
Parents: 41fe473
Author: syakimovich <s0...@gmail.com>
Authored: Sat Apr 2 19:05:51 2016 +0300
Committer: Claus Ibsen <da...@apache.org>
Committed: Sun Apr 3 08:56:41 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/camel/blob/0570a2aa/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 1fc8a9a..ddc1725 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
@@ -39,6 +39,6 @@ public class ClassPathURIResolver implements URIResolver {
     @Override
     public Source resolve(String href, String base) throws TransformerException {
         return new StreamSource(ClassPathURIResolver.class.getClassLoader()
-                .getResourceAsStream(rulesDir.concat(File.separator).concat(href)));
+                .getResourceAsStream(rulesDir.concat("/").concat(href)));
     }
 }