cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rica...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp XSPProcessor.java
Date Sat, 25 Mar 2000 00:30:41 GMT
ricardo     00/03/24 16:30:41

  Modified:    src/org/apache/cocoon/processor/xsp XSPProcessor.java
  Log:
  Logicsheets can now be loaded as files given a full pathname
  
  Revision  Changes    Path
  1.15      +9 -3      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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- XSPProcessor.java	2000/03/17 16:48:05	1.14
  +++ XSPProcessor.java	2000/03/25 00:30:40	1.15
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSPProcessor.java,v 1.14 2000/03/17 16:48:05 stefano Exp $ --
  +/*-- $Id: XSPProcessor.java,v 1.15 2000/03/25 00:30:40 ricardo 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.14 $ $Date: 2000/03/17 16:48:05 $
  + * @version $Revision: 1.15 $ $Date: 2000/03/25 00:30:40 $
    */
   public class XSPProcessor extends AbstractActor
     implements Processor, Configurable, Status
  @@ -656,7 +656,13 @@
   	Object resource = null;
   
       if (location.indexOf("://") < 0) {
  -      resource = new File(path + location);
  +	  File file = new File(location);
  +
  +	  if (!(file.isAbsolute() && file.exists())) {
  +	    file = new File(path + location);
  +	  }
  +
  +      resource = file;
       } else if (location.startsWith("resource://")) {
         resource = ClassLoader.getSystemResource(
           location.substring("resource://".length())
  
  
  

Mime
View raw message