avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon/merlin/kernel/impl/src/java/org/apache/avalon/merlin/impl DefaultFactory.java
Date Wed, 10 Dec 2003 06:13:53 GMT
mcconnell    2003/12/09 22:13:53

  Modified:    merlin/kernel/impl/src/java/org/apache/avalon/merlin/impl
                        DefaultFactory.java
  Log:
  Updated DefaultFactory to handle absolute config override path statements.
  
  Revision  Changes    Path
  1.5       +2 -0      avalon/merlin/kernel/impl/src/java/org/apache/avalon/merlin/impl/DefaultFactory.java
  
  Index: DefaultFactory.java
  ===================================================================
  RCS file: /home/cvs/avalon/merlin/kernel/impl/src/java/org/apache/avalon/merlin/impl/DefaultFactory.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultFactory.java	9 Dec 2003 13:46:33 -0000	1.4
  +++ DefaultFactory.java	10 Dec 2003 06:13:53 -0000	1.5
  @@ -910,6 +910,8 @@
               }
               else
               {
  +                File absolute = new File( path );
  +                if( absolute.isAbsolute() ) return absolute.toURL();
                   return 
                     new File( 
                       base, path ).getCanonicalFile().toURL();      
  
  
  

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


Mime
View raw message