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:[EMAIL PROTECTED]";>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:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to