Changeset 9148
- Timestamp:
- 07/09/08 19:02:48 (4 months ago)
- Files:
-
- helma-ng/trunk/src/org/helma/javascript/ReloadableScript.java (modified) (1 diff)
- helma-ng/trunk/src/org/helma/repository/FileRepository.java (modified) (1 diff)
- helma-ng/trunk/src/org/helma/repository/Repository.java (modified) (2 diffs)
- helma-ng/trunk/src/org/helma/repository/Resource.java (modified) (2 diffs)
- helma-ng/trunk/src/org/helma/repository/WebappRepository.java (modified) (1 diff)
- helma-ng/trunk/src/org/helma/repository/WebappResource.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
helma-ng/trunk/src/org/helma/javascript/ReloadableScript.java
r9141 r9148 202 202 * @return true if none of the included files has been updated since 203 203 * we last checked. 204 * @throws IOException an I/O exception occurred during the check 205 */ 206 protected boolean isUpToDate() throws IOException { 204 */ 205 protected boolean isUpToDate() { 207 206 if (resource == null) { 208 207 return repository.getChecksum() == checksum; helma-ng/trunk/src/org/helma/repository/FileRepository.java
r9141 r9148 115 115 * @throws IOException an I/O error occurred 116 116 */ 117 public synchronized long getChecksum() throws IOException{117 public synchronized long getChecksum() { 118 118 // delay checksum check if already checked recently 119 119 if (System.currentTimeMillis() > lastChecksumTime + cacheTime) { helma-ng/trunk/src/org/helma/repository/Repository.java
r9141 r9148 36 36 * @throws IOException an I/O error occurred 37 37 */ 38 public long getChecksum() throws IOException;38 public long getChecksum(); 39 39 40 40 /** … … 44 44 * @throws IOException an I/O error occurred 45 45 */ 46 public long lastModified() throws IOException;46 public long lastModified(); 47 47 48 48 helma-ng/trunk/src/org/helma/repository/Resource.java
r9141 r9148 33 33 * @return last modified date 34 34 */ 35 public long lastModified() throws IOException;35 public long lastModified(); 36 36 37 37 /** … … 45 45 * @return content length 46 46 */ 47 public long getLength() throws IOException;47 public long getLength(); 48 48 49 49 /** helma-ng/trunk/src/org/helma/repository/WebappRepository.java
r9143 r9148 34 34 } 35 35 36 public long getChecksum() throws IOException{36 public long getChecksum() { 37 37 return timestamp; 38 38 } 39 39 40 public long lastModified() throws IOException{40 public long lastModified() { 41 41 return timestamp; 42 42 } helma-ng/trunk/src/org/helma/repository/WebappResource.java
r9143 r9148 19 19 } 20 20 21 public long lastModified() throws IOException{21 public long lastModified() { 22 22 return repository.lastModified(); 23 23 } … … 31 31 } 32 32 33 public long getLength() throws IOException{33 public long getLength() { 34 34 return 0; 35 35 }