You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/04/04 08:30:53 UTC
[2/6] camel git commit: Fixed CS. This closes #926
Fixed CS. This closes #926
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e9d25514
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e9d25514
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e9d25514
Branch: refs/heads/master
Commit: e9d2551463bea056d482c155345e6b7ccb614de8
Parents: 75906e3
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Apr 4 08:29:30 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Apr 4 08:29:30 2016 +0200
----------------------------------------------------------------------
.../apache/camel/component/schematron/SchematronEndpoint.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/e9d25514/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/SchematronEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/SchematronEndpoint.java b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/SchematronEndpoint.java
index 0a78f9f..1f1a92c 100644
--- a/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/SchematronEndpoint.java
+++ b/components/camel-schematron/src/main/java/org/apache/camel/component/schematron/SchematronEndpoint.java
@@ -126,14 +126,14 @@ public class SchematronEndpoint extends DefaultEndpoint {
if (rules == null) {
try {
- // Attempt to read the schematron rules from the class path first.
+ // Attempt to read the schematron rules from the class path first.
LOG.debug("Reading schematron rules from class path {}", path);
InputStream schRules = ResourceHelper.resolveMandatoryResourceAsInputStream(getCamelContext(), path);
rules = TemplatesFactory.newInstance().getTemplates(schRules, transformerFactory);
} catch (Exception classPathException) {
// Attempts from the file system.
LOG.debug("Error loading schematron rules from class path, attempting file system {}", path);
- try{
+ try {
InputStream schRules = FileUtils.openInputStream(new File(path));
rules = TemplatesFactory.newInstance().getTemplates(schRules, transformerFactory);
} catch (FileNotFoundException e) {