| 73 | } |
| 74 | } |
| 75 | protected boolean acceleratorValid(String documentPath, String acceleratorPath) { |
| 76 | try { |
| 77 | long documentModified = new File(documentPath).lastModified(); |
| 78 | long acceleratorModified = new File(acceleratorPath).lastModified(); |
| 79 | return acceleratorModified != 0 && acceleratorModified > documentModified; |
| 80 | } catch (Exception e) { |
| 81 | return false; |
| 82 | } |
| 83 | } |
| 84 | public void work() { |
| 85 | String acceleratorPath = getAcceleratorPath(documentPath); |
| 86 | if (!acceleratorValid(documentPath, acceleratorPath)) |