james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: james-server/src/java/org/apache/james/mailrepository/filepair AbstractFileRepository.java
Date Fri, 09 Jul 2004 03:07:12 GMT
mcconnell    2004/07/08 20:07:12

  Modified:    src/java/org/apache/james/mailrepository/filepair
                        AbstractFileRepository.java
  Log:
  Remove reference to deprecated excalibur.io class (replaced by the same class under cornerstone
store) - and updated the context handler to look for the working directory using standard
context keys prior to container specific keys.
  
  Revision  Changes    Path
  1.8       +9 -2      james-server/src/java/org/apache/james/mailrepository/filepair/AbstractFileRepository.java
  
  Index: AbstractFileRepository.java
  ===================================================================
  RCS file: /home/cvs/james-server/src/java/org/apache/james/mailrepository/filepair/AbstractFileRepository.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AbstractFileRepository.java	30 Jan 2004 02:22:09 -0000	1.7
  +++ AbstractFileRepository.java	9 Jul 2004 03:07:12 -0000	1.8
  @@ -34,7 +34,7 @@
   import java.util.ArrayList;
   import java.util.Iterator;
   import org.apache.avalon.cornerstone.services.store.Repository;
  -import org.apache.avalon.excalibur.io.ExtensionFileFilter;
  +import org.apache.avalon.cornerstone.blocks.masterstore.ExtensionFileFilter;
   import org.apache.avalon.framework.activity.Initializable;
   import org.apache.avalon.framework.configuration.Configurable;
   import org.apache.avalon.framework.configuration.Configuration;
  @@ -77,7 +77,14 @@
   
       public void contextualize( final Context context ) throws ContextException
       {
  -        m_baseDirectory = (File) context.get( "app.home" );
  +        try
  +        {
  +            m_baseDirectory = (File) context.get( "urn:avalon:home" );
  +        }
  +        catch( ContextException ce )
  +        {
  +            m_baseDirectory = (File) context.get( "app.home" );
  +        }
       }
   
       public void service( final ServiceManager serviceManager )
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message