geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/xml/deployment LocalEntityResolver.java
Date Mon, 29 Sep 2003 14:14:42 GMT
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);
  
  
  

Mime
View raw message