cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/reading ResourceReader.java
Date Wed, 05 Jun 2002 06:39:13 GMT
cziegeler    2002/06/04 23:39:13

  Modified:    src/java/org/apache/cocoon/reading ResourceReader.java
  Log:
  Adding test for last modification date of files
  
  Revision  Changes    Path
  1.16      +4 -1      xml-cocoon2/src/java/org/apache/cocoon/reading/ResourceReader.java
  
  Index: ResourceReader.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/reading/ResourceReader.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ResourceReader.java	5 Jun 2002 01:52:59 -0000	1.15
  +++ ResourceReader.java	5 Jun 2002 06:39:13 -0000	1.16
  @@ -55,6 +55,7 @@
   import org.apache.excalibur.source.Source;
   import org.apache.excalibur.source.SourceException;
   import org.apache.excalibur.source.SourceValidity;
  +import org.apache.excalibur.source.impl.validity.FileTimeStampValidity;
   import org.apache.excalibur.source.impl.validity.TimeStampValidity;
   import org.apache.cocoon.ProcessingException;
   import org.apache.cocoon.caching.CacheableProcessingComponent;
  @@ -87,7 +88,7 @@
    *   </dl>
    *
    * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
  - * @version CVS $Id: ResourceReader.java,v 1.15 2002/06/05 01:52:59 vgritsenko Exp $
  + * @version CVS $Id: ResourceReader.java,v 1.16 2002/06/05 06:39:13 cziegeler Exp $
    */
   public class ResourceReader
     extends AbstractReader
  @@ -149,6 +150,8 @@
           final SourceValidity validity = this.inputSource.getValidity();
           if (validity instanceof TimeStampValidity) {
               return ((TimeStampValidity)validity).getTimeStamp();
  +        } else if (validity instanceof FileTimeStampValidity) {
  +            return ((FileTimeStampValidity)validity).getTimeStamp();
           }
           return 0;
       }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message