You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by am...@apache.org on 2003/09/29 16:14:42 UTC
cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/xml/deployment LocalEntityResolver.java
ammulder 2003/09/29 07:14:42
Modified: modules/core/src/java/org/apache/geronimo/xml/deployment
LocalEntityResolver.java
Log:
- Make it clear whether the entity resolver was able to resolve an entity
- Note that we ought to resolve everything locally
Revision Changes Path
1.3 +5 -1 incubator-geronimo/modules/core/src/java/org/apache/geronimo/xml/deployment/LocalEntityResolver.java
Index: LocalEntityResolver.java
===================================================================
RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/xml/deployment/LocalEntityResolver.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- LocalEntityResolver.java 17 Sep 2003 01:47:14 -0000 1.2
+++ LocalEntityResolver.java 29 Sep 2003 14:14:42 -0000 1.3
@@ -80,6 +80,7 @@
}
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
+ //todo: resolve the core XML Schema schemas locally so no network connection is required
if (log.isDebugEnabled()) {
log.debug("Resolving entity S="+systemId+" P="+publicId);
}
@@ -89,6 +90,9 @@
int index = systemId.lastIndexOf("/");
String fileName = systemId.substring(index+1);
File file = new File(root, fileName);
+ if (log.isDebugEnabled()) {
+ log.debug("File "+file.getAbsolutePath()+" exists: "+file.exists());
+ }
if (file.exists()) {
InputSource is = new InputSource(new BufferedInputStream(new FileInputStream(file)));
is.setSystemId(systemId);