cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@locus.apache.org>
Subject cvs commit: xml-cocoon/src/org/apache/cocoon Cocoon.java
Date Thu, 06 Jul 2000 18:58:30 GMT
rubys       00/07/06 11:58:30

  Modified:    src/org/apache/cocoon Tag: xml-cocoon2 Cocoon.java
  Log:
  Error opening cocoon.xconf - path used where SystemId is expected
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4.2.8   +6 -2      xml-cocoon/src/org/apache/cocoon/Cocoon.java
  
  Index: Cocoon.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/Cocoon.java,v
  retrieving revision 1.4.2.7
  retrieving revision 1.4.2.8
  diff -u -r1.4.2.7 -r1.4.2.8
  --- Cocoon.java	2000/07/02 20:59:13	1.4.2.7
  +++ Cocoon.java	2000/07/06 18:58:29	1.4.2.8
  @@ -11,6 +11,7 @@
   import java.io.FileNotFoundException;
   import java.io.IOException;
   import java.io.OutputStream;
  +import java.io.FileReader;
   import java.net.URL;
   import java.util.Enumeration;
   import java.util.Hashtable;
  @@ -35,7 +36,7 @@
    *
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
    *         (Apache Software Foundation, Exoffice Technologies)
  - * @version CVS $Revision: 1.4.2.7 $ $Date: 2000/07/02 20:59:13 $
  + * @version CVS $Revision: 1.4.2.8 $ $Date: 2000/07/06 18:58:29 $
    */
   public class Cocoon
   implements Component, Configurable, ComponentManager, Modifiable, Processor,
  @@ -83,7 +84,10 @@
           Parser p=(Parser)this.getComponent("parser");
           SAXConfigurationBuilder b=new SAXConfigurationBuilder();
           p.setContentHandler(b);
  -        p.parse(new InputSource(this.configurationFile.getPath()));
  +        String path = this.configurationFile.getPath();
  +        InputSource is = new InputSource(new FileReader(path));
  +        is.setSystemId(path);
  +        p.parse(is);
           this.setConfiguration(b.getConfiguration());
           this.root=this.configurationFile.getParentFile().toURL();
   /*
  
  
  

Mime
View raw message