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 XSPUtil.java
Date Fri, 07 Jan 2000 13:20:50 GMT
ricardo     00/01/07 05:20:50

  Modified:    src/org/apache/cocoon/processor/xsp XSPUtil.java
  Log:
  1.6:Fixed relativeFilename method for absolute pathnames
  
  Revision  Changes    Path
  1.6       +8 -2      xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPUtil.java
  
  Index: XSPUtil.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPUtil.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XSPUtil.java	2000/01/06 23:32:38	1.5
  +++ XSPUtil.java	2000/01/07 13:20:50	1.6
  @@ -1,4 +1,4 @@
  -/*-- $Id: XSPUtil.java,v 1.5 2000/01/06 23:32:38 ricardo Exp $ -- 
  +/*-- $Id: XSPUtil.java,v 1.6 2000/01/07 13:20:50 ricardo Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -61,7 +61,7 @@
   
   /**
    * @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
  - * @version $Revision: 1.5 $ $Date: 2000/01/06 23:32:38 $
  + * @version $Revision: 1.6 $ $Date: 2000/01/07 13:20:50 $
    */
   public class XSPUtil {
     public static String pathComponent(String filename) {
  @@ -120,6 +120,12 @@
       ServletContext context
     ) throws IOException
     {
  +    File file = new File(filename);
  +
  +    if (file.isAbsolute()) {
  +      return filename;
  +    }
  +
       return
         (
           new File(
  
  
  

Mime
View raw message