cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/store FilesystemStore.java
Date Tue, 12 Feb 2002 15:04:42 GMT
cziegeler    02/02/12 07:04:42

  Modified:    src/java/org/apache/cocoon/components/store
                        FilesystemStore.java
  Log:
  Fixing list method()
  
  Revision  Changes    Path
  1.9       +6 -2      xml-cocoon2/src/java/org/apache/cocoon/components/store/FilesystemStore.java
  
  Index: FilesystemStore.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/store/FilesystemStore.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- FilesystemStore.java	12 Feb 2002 12:57:51 -0000	1.8
  +++ FilesystemStore.java	12 Feb 2002 15:04:42 -0000	1.9
  @@ -75,7 +75,7 @@
    *
    * @author ?
    * @author <a href="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
  - * @version CVS $Id: FilesystemStore.java,v 1.8 2002/02/12 12:57:51 cziegeler Exp $
  + * @version CVS $Id: FilesystemStore.java,v 1.9 2002/02/12 15:04:42 cziegeler Exp $
    */
   public final class FilesystemStore
   extends AbstractLoggable
  @@ -294,7 +294,11 @@
               if (files[i].isDirectory()) {
                   this.addKeys(enum, files[i]);
               } else {
  -                enum.add(this.decode(files[i].getAbsolutePath().substring(subStringBegin)));
  +                try {
  +                    // FIXME: if for any reason we get a file which was not created using
  +                    //        this store, decoding will fail.
  +                    enum.add(this.decode(files[i].getAbsolutePath().substring(subStringBegin)));
  +                } catch (Exception ignore) {}
               }
           }
       }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message