db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/metadata RepositoryPersistor.java
Date Fri, 03 Jan 2003 21:49:00 GMT
arminw      2003/01/03 13:49:00

  Modified:    src/java/org/apache/ojb/broker/metadata
                        RepositoryPersistor.java
  Log:
  use old reader.parse(url.toString())
  again, to make relative path working
  again. Sorry, my mistake.
  
  Revision  Changes    Path
  1.12      +3 -3      jakarta-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryPersistor.java
  
  Index: RepositoryPersistor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryPersistor.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- RepositoryPersistor.java	27 Dec 2002 15:58:59 -0000	1.11
  +++ RepositoryPersistor.java	3 Jan 2003 21:49:00 -0000	1.12
  @@ -269,7 +269,7 @@
               ContentHandler handler = new RepositoryXmlHandler(repository);
               // tell parser to use our handler:
               reader.setContentHandler(handler);
  -            reader.parse(new InputSource(url.openStream()));
  +            reader.parse(url.toString());
               result = repository;
           }
           else if(ConnectionRepository.class.equals(targetRepository))
  @@ -280,7 +280,7 @@
               ContentHandler handler = new ConnectionDescriptorXmlHandler(repository);
               // tell parser to use our handler:
               reader.setContentHandler(handler);
  -            reader.parse(new InputSource(url.openStream()));
  +            reader.parse(url.toString());
               //LoggerFactory.getBootLogger().info("loading XML took " + (stop - start) +
" msecs");
               result = repository;
           }
  
  
  

Mime
View raw message