cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp XSPProcessor.java
Date Fri, 17 Mar 2000 16:48:06 GMT
stefano     00/03/17 08:48:06

  Modified:    src/org/apache/cocoon/processor/xsp XSPProcessor.java
  Log:
  back on good old getResource ... since the problem lies on JServ's AdaptiveClassLoader with
jar repositories
  
  Revision  Changes    Path
  1.14      +5 -5      xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.java
  
  Index: XSPProcessor.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- XSPProcessor.java	2000/03/17 00:02:01	1.13
  +++ XSPProcessor.java	2000/03/17 16:48:05	1.14
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSPProcessor.java,v 1.13 2000/03/17 00:02:01 stefano Exp $ --
  +/*-- $Id: XSPProcessor.java,v 1.14 2000/03/17 16:48:05 stefano Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -73,7 +73,7 @@
    * This class implements the XSP engine.
    *
    * @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
  - * @version $Revision: 1.13 $ $Date: 2000/03/17 00:02:01 $
  + * @version $Revision: 1.14 $ $Date: 2000/03/17 16:48:05 $
    */
   public class XSPProcessor extends AbstractActor
     implements Processor, Configurable, Status
  @@ -129,7 +129,7 @@
         Document document = this.parser.parse(
           new InputSource(
             new InputStreamReader(
  -            this.factory.createResource(XSP_ROOT + "xsp.xml")
  +            this.getClass().getResourceAsStream("xsp.xml")
             )
           ), false
         );
  @@ -151,7 +151,7 @@
   
           String processorName = languageElement.getAttribute("processor");
           XSPLanguageProcessor languageProcessor =
  -          (XSPLanguageProcessor) Class.forName(processorName).newInstance();
  +          (XSPLanguageProcessor) this.factory.create(processorName);
   
           boolean formatOption =
             languageElement.getAttribute("format-code").equals("true");
  @@ -174,7 +174,7 @@
           Document logicsheetStylesheet = this.parser.parse(
             new InputSource(
               new InputStreamReader(
  -              this.factory.createResource(XSP_ROOT + logicsheetName)
  +              this.getClass().getResourceAsStream(logicsheetName)
               )
             ), false
           );
  
  
  

Mime
View raw message