1. opensymphony
  2. quartz

Commits

jhouse  committed b4007be

QUARTZ-667: FileScanJob can only access files in WEB-INF/lib

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@81569f7d36a-ea1c-0410-88ea-9fd03e4c9665

  • Participants
  • Parent commits 92258c6
  • Branches master

Comments (0)

Files changed (1)

File src/java/org/quartz/jobs/FileScanJob.java

View file
  • Ignore whitespace
     
     protected long getLastModifiedDate(String fileName) {
         URL resource = Thread.currentThread().getContextClassLoader().getResource(fileName);
+        
         // Get the absolute path.
-        String filePath = resource.getFile();
+        String filePath = (resource == null) ? fileName : resource.getFile();
         
         // If the jobs file is inside a jar point to the jar file (to get it modification date).
         // Otherwise continue as usual.