Use ShibResource to access all config files
authorgilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 17 May 2005 18:05:14 +0000 (18:05 +0000)
committergilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 17 May 2005 18:05:14 +0000 (18:05 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1493 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/xml/Parser.java

index bbeb4c5..69e1788 100644 (file)
@@ -55,6 +55,8 @@ import org.w3c.dom.Node;
 import org.xml.sax.InputSource;
 import org.xml.sax.SAXException;
 
+import edu.internet2.middleware.shibboleth.common.ShibResource;
+
 /**
  * Obtain schema validating and non-validating XML parsers.
  * 
@@ -262,7 +264,9 @@ public class Parser {
         InputSource insrc;
         String schemaCannonicalFilePath;
        try {
-            InputStream resourceAsStream = Parser.class.getResourceAsStream(configFilePath);
+            InputStream resourceAsStream = 
+ //               Parser.class.getResourceAsStream(configFilePath);
+                new ShibResource(configFilePath).getInputStream();
             insrc = new InputSource(resourceAsStream);
             insrc.setSystemId(configFilePath);
         } catch (Exception e1) {