Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 531F217434 for ; Wed, 18 Mar 2015 11:33:27 +0000 (UTC) Received: (qmail 4593 invoked by uid 500); 18 Mar 2015 11:33:21 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 4534 invoked by uid 500); 18 Mar 2015 11:33:21 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 4525 invoked by uid 99); 18 Mar 2015 11:33:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Mar 2015 11:33:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C674ADFCB5; Wed, 18 Mar 2015 11:33:20 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ningjiang@apache.org To: commits@camel.apache.org Date: Wed, 18 Mar 2015 11:33:21 -0000 Message-Id: <95ffcd04a13a43cbae94712483aab9d2@git.apache.org> In-Reply-To: <9c918cfbbc3344bdbcd41ba707cd2aac@git.apache.org> References: <9c918cfbbc3344bdbcd41ba707cd2aac@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/3] 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/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 Authored: Wed Mar 18 19:28:24 2015 +0800 Committer: Willem Jiang 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))); } }