Example #1
0
 public override bool IsSourceModified(global::NVelocity.Runtime.Resource.Resource resource)
 {
     if (File.Exists(resource.Name))
     {
         FileInfo file = new FileInfo(resource.Name);
         return(!file.Exists || (file.LastWriteTime.Ticks != resource.LastModified));
     }
     return(base.IsSourceModified(resource));
 }
Example #2
0
 public override long GetLastModified(global::NVelocity.Runtime.Resource.Resource resource)
 {
     if (File.Exists(resource.Name))
     {
         FileInfo file = new FileInfo(resource.Name);
         return(file.LastWriteTime.Ticks);
     }
     return(base.GetLastModified(resource));
 }