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:13:04 UTC
[2/2] 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/2dcc05df
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2dcc05df
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2dcc05df
Branch: refs/heads/camel-2.14.x
Commit: 2dcc05dfecc2bf8e2239469c90013b0ddda04fdb
Parents: 238ff59
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:12:35 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/2dcc05df/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);