You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2015/03/18 12:37:34 UTC
[3/6] camel git commit: CAMEL-8504 Fixed the Schematron XSLT
templates loading issue on windows
CAMEL-8504 Fixed the Schematron XSLT templates loading issue on windows
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e35d33ac
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e35d33ac
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e35d33ac
Branch: refs/heads/camel-2.15.x
Commit: e35d33aca5973d2f52b743c8a4f9e41146598c9d
Parents: c556756
Author: Willem Jiang <wi...@gmail.com>
Authored: Wed Mar 18 19:28:24 2015 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Wed Mar 18 19:35:56 2015 +0800
----------------------------------------------------------------------
.../component/schematron/processor/ClassPathURIResolver.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/e35d33ac/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 db506f7..6fa2941 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 javax.xml.transform.Source;
import javax.xml.transform.TransformerException;
import javax.xml.transform.URIResolver;
@@ -41,6 +40,6 @@ public class ClassPathURIResolver implements URIResolver {
@Override
public Source resolve(String href, String base) throws TransformerException {
- return new StreamSource(ClassLoader.getSystemResourceAsStream(rulesDir.concat(File.separator).concat(href)));
+ return new StreamSource(ClassLoader.getSystemResourceAsStream(rulesDir.concat("/").concat(href)));
}
}