avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl SourceResolverImpl.java
Date Fri, 17 Jan 2003 14:26:22 GMT
cziegeler    2003/01/17 06:26:21

  Modified:    sourceresolve/src/java/org/apache/excalibur/source/impl
                        SourceResolverImpl.java
  Log:
  Applying patch by Christopher Kohlhaas [kohlhaas@bonn.edu]
  
  Revision  Changes    Path
  1.22      +9 -2      jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl/SourceResolverImpl.java
  
  Index: SourceResolverImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/sourceresolve/src/java/org/apache/excalibur/source/impl/SourceResolverImpl.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- SourceResolverImpl.java	16 Jan 2003 21:27:05 -0000	1.21
  +++ SourceResolverImpl.java	17 Jan 2003 14:26:21 -0000	1.22
  @@ -137,7 +137,14 @@
   
           try
           {
  -            m_baseURL = ( (File)m_context.get( "context-root" ) ).toURL();
  +            if( m_context.get( "context-root" ) instanceof URL )
  +            {
  +                m_baseURL = (URL)m_context.get( "context-root" );
  +            }
  +            else
  +            {
  +                m_baseURL = ( (File)m_context.get( "context-root" ) ).toURL();
  +            }
           }
           catch( ContextException ce )
           {
  
  
  

--
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