avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/masterstore AbstractFileRepository.java
Date Wed, 15 Jan 2003 12:13:44 GMT
mcconnell    2003/01/15 04:13:44

  Modified:    src/java/org/apache/avalon/cornerstone/blocks/masterstore
                        AbstractFileRepository.java
  Log:
  Make friendly towards non pheonix containers.
  
  Revision  Changes    Path
  1.11      +9 -2      jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/masterstore/AbstractFileRepository.java
  
  Index: AbstractFileRepository.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/src/java/org/apache/avalon/cornerstone/blocks/masterstore/AbstractFileRepository.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- AbstractFileRepository.java	23 Dec 2002 17:52:40 -0000	1.10
  +++ AbstractFileRepository.java	15 Jan 2003 12:13:44 -0000	1.11
  @@ -61,8 +61,15 @@
       protected abstract String getExtensionDecorator();
   
       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 e )
  +        {
  +            m_baseDirectory = (File) context.get("app.home");
  +        }
       }
   
       public void service( final ServiceManager serviceManager )
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message