cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/components/store FilesystemStore.java
Date Fri, 16 Mar 2001 22:02:41 GMT
bloritsch    01/03/16 14:02:40

  Modified:    src/org/apache/cocoon/components/store Tag: xml-cocoon2
                        FilesystemStore.java
  Log:
  Fixed error where repository was not stored correctly
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.13  +12 -3     xml-cocoon/src/org/apache/cocoon/components/store/Attic/FilesystemStore.java
  
  Index: FilesystemStore.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/components/store/Attic/FilesystemStore.java,v
  retrieving revision 1.1.2.12
  retrieving revision 1.1.2.13
  diff -u -r1.1.2.12 -r1.1.2.13
  --- FilesystemStore.java	2001/02/21 17:26:14	1.1.2.12
  +++ FilesystemStore.java	2001/03/16 22:02:37	1.1.2.13
  @@ -3,15 +3,16 @@
   import java.io.File;
   import java.util.Enumeration;
   
  +import org.apache.cocoon.Constants;
   import org.apache.cocoon.util.IOUtils;
  -
   import org.apache.avalon.AbstractLoggable;
  -
   import org.apache.avalon.ThreadSafe;
  +import org.apache.avalon.Contextualizable;
  +import org.apache.avalon.Context;
   
   import java.io.IOException;
   
  -public class FilesystemStore extends AbstractLoggable implements Store, ThreadSafe {
  +public class FilesystemStore extends AbstractLoggable implements Contextualizable, Store,
ThreadSafe {
     /** The directory repository */
     protected File directoryFile;
     protected volatile String directoryPath;
  @@ -21,6 +22,14 @@
      */
     public void setDirectory(String directory) throws IOException {
         this.setDirectory(new File(directory));
  +  }
  +
  +  public void contextualize(Context context) {
  +      try {
  +          setDirectory((File) context.get(Constants.CONTEXT_WORK_DIR));
  +      } catch (Exception e) {
  +          // 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