James Netherton created CAMEL-11074:
---------------------------------------

             Summary: Unable to load Schematron XSLT templates on windows
                 Key: CAMEL-11074
                 URL: https://issues.apache.org/jira/browse/CAMEL-11074
             Project: Camel
          Issue Type: Bug
          Components: camel-schematron
    Affects Versions: 2.18.3, 2.19.0
            Reporter: James Netherton
            Assignee: James Netherton


Similar to CAMEL-8504. {{ClassPathURIResolver}} does:

{code}
InputStream stream = ClassPathURIResolver.class.getClassLoader()      
    .getResourceAsStream(rulesDir.concat(File.separator).concat(href));
{code}

Depending on the ClassLoader implementation, platform dependent paths for 
resource lookups are not guaranteed to work (which arguably could be considered 
a bug in the ClassLoader impl).

Looking at the git history, it seems this code has swapped between using 
{{File.separator}} and {{"/"}} a few times now. However, I see no clear reason 
why we need to use {{File.separator}} in the resource lookup. {{"/"}} should 
work perfectly fine in all cases. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to