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/producer ProducerFromFile.java
Date Sat, 06 May 2000 11:13:53 GMT
stefano     00/05/06 04:13:53

  Modified:    src/org/apache/cocoon/producer ProducerFromFile.java
  Log:
  cleanup a little
  
  Revision  Changes    Path
  1.9       +3 -4      xml-cocoon/src/org/apache/cocoon/producer/ProducerFromFile.java
  
  Index: ProducerFromFile.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/producer/ProducerFromFile.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ProducerFromFile.java	2000/04/04 11:12:49	1.8
  +++ ProducerFromFile.java	2000/05/06 11:13:53	1.9
  @@ -1,4 +1,4 @@
  -/*-- $Id: ProducerFromFile.java,v 1.8 2000/04/04 11:12:49 stefano Exp $ -- 
  +/*-- $Id: ProducerFromFile.java,v 1.9 2000/05/06 11:13:53 stefano Exp $ -- 
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -65,7 +65,7 @@
    * based on its tranlated path.
    * 
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version $Revision: 1.8 $ $Date: 2000/04/04 11:12:49 $
  + * @version $Revision: 1.9 $ $Date: 2000/05/06 11:13:53 $
    */
   
   public class ProducerFromFile extends AbstractProducer implements Status {
  @@ -83,8 +83,7 @@
       }
       
       public String getPath(HttpServletRequest request) {
  -        String basename = Utils.getBasename(request, this.context);
  -        return basename.substring(0, basename.lastIndexOf('/') + 1);
  +        return Utils.getBasepath(request, this.context);
       }
       
       public boolean hasChanged(Object context) {
  
  
  

Mime
View raw message