avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject cvs commit: avalon-excalibur/monitor/src/java/org/apache/avalon/excalibur/monitor MonitorableURLSource.java
Date Sat, 05 Apr 2003 22:32:05 GMT
sylvain     2003/04/05 14:32:05

  Modified:    monitor/src/java/org/apache/avalon/excalibur/monitor
                        MonitorableURLSource.java
  Log:
  Fix after changes to URLSource
  
  Revision  Changes    Path
  1.12      +7 -3      avalon-excalibur/monitor/src/java/org/apache/avalon/excalibur/monitor/MonitorableURLSource.java
  
  Index: MonitorableURLSource.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/monitor/src/java/org/apache/avalon/excalibur/monitor/MonitorableURLSource.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- MonitorableURLSource.java	31 Mar 2003 14:24:43 -0000	1.11
  +++ MonitorableURLSource.java	5 Apr 2003 22:32:05 -0000	1.12
  @@ -49,6 +49,9 @@
   */
   package org.apache.avalon.excalibur.monitor;
   
  +import java.io.File;
  +
  +import org.apache.excalibur.source.SourceUtil;
   import org.apache.excalibur.source.impl.URLSource;
   
   /**
  @@ -75,9 +78,10 @@
           throws Exception
       {
           checkInfos();
  -        if( null != getFile() )
  +        File f = SourceUtil.getFile(this);
  +        if ( null != f )
           {
  -            return new FileResource( getFile().getAbsolutePath() );
  +            return new FileResource( f.getAbsolutePath() );
           }
           else
           {
  
  
  

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


Mime
View raw message