bloritsch    01/05/23 07:30:54

  Modified:    src/org/apache/cocoon/generation PhpGenerator.java
  Log:
  Fixed PHPGenerator
  
  Revision  Changes    Path
  1.4       +3 -5      
xml-cocoon2/src/org/apache/cocoon/generation/PhpGenerator.java
  
  Index: PhpGenerator.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/org/apache/cocoon/generation/PhpGenerator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- PhpGenerator.java 2001/05/22 14:41:05     1.3
  +++ PhpGenerator.java 2001/05/23 14:30:50     1.4
  @@ -26,6 +26,7 @@
   import org.apache.cocoon.Roles;
   import org.apache.cocoon.components.parser.Parser;
   import org.apache.cocoon.environment.http.HttpEnvironment;
  +import org.apache.cocoon.environment.Source;
   import org.apache.cocoon.xml.AbstractXMLProducer;
   import org.apache.cocoon.xml.XMLProducer;
   import org.apache.avalon.excalibur.pool.Recyclable;
  @@ -39,7 +40,7 @@
    * results into SAX events.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Sam Ruby</a>
  - * @version CVS $Revision: 1.3 $ $Date: 2001/05/22 14:41:05 $
  + * @version CVS $Revision: 1.4 $ $Date: 2001/05/23 14:30:50 $
    */
   public class PhpGenerator extends ServletGenerator implements Recyclable {
   
  @@ -131,7 +132,7 @@
           }
   
           // ensure that we are serving a file...
  -        InputSource inputSource = this.resolver.resolveEntity(null, 
this.source);
  +        Source inputSource = this.resolver.resolve(this.source);
           String systemId = inputSource.getSystemId();
           if (!systemId.startsWith("file:/"))
               throw new IOException("protocol not supported: " + systemId);
  @@ -158,9 +159,6 @@
   
               // clean up
               php.destroy();
  -        } catch (SAXException e) {
  -            getLogger().debug("PhpGenerator.generate()", e);
  -            throw e;
           } catch (IOException e) {
               getLogger().debug("PhpGenerator.generate()", e);
               throw e;
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to