camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/3] camel git commit: CAMEL-8504 Fixed the Schematron XSLT templates loading issue on windows
Date Wed, 18 Mar 2015 11:33:21 GMT
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/6365a5d1
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6365a5d1
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6365a5d1

Branch: refs/heads/master
Commit: 6365a5d134959b539a4ceb863e4a73f87f7ebd5e
Parents: 5095411
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Wed Mar 18 19:28:24 2015 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Wed Mar 18 19:30:36 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/6365a5d1/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)));
     }
 }


Mime
View raw message