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/19 07:10:17 UTC
camel git commit: CAMEL-8504 Fixed the Schematron XSLT templates
loading issue on windows
Repository: camel
Updated Branches:
refs/heads/master d808253c0 -> ed8d6c30b
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/ed8d6c30
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ed8d6c30
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ed8d6c30
Branch: refs/heads/master
Commit: ed8d6c30bd417b3fb166c675ad97832e66846af6
Parents: d808253
Author: Willem Jiang <wi...@gmail.com>
Authored: Thu Mar 19 14:09:00 2015 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Thu Mar 19 14:09:58 2015 +0800
----------------------------------------------------------------------
.../camel/component/schematron/processor/TemplatesFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/ed8d6c30/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/TemplatesFactory.java
----------------------------------------------------------------------
diff --git a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/TemplatesFactory.java b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/TemplatesFactory.java
index 15ed864..3e47150 100644
--- a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/TemplatesFactory.java
+++ b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/processor/TemplatesFactory.java
@@ -83,7 +83,7 @@ public final class TemplatesFactory {
try {
for (String template : PIPELINE) {
Source xsl = new StreamSource(ClassLoader.getSystemResourceAsStream(Constants.SCHEMATRON_TEMPLATES_ROOT_DIR
- .concat(File.separator).concat(template)));
+ .concat("/").concat(template)));
Transformer t = fac.newTransformer(xsl);
DOMResult result = new DOMResult();
t.transform(source, result);