Changeset 7226
- Timestamp:
- Nov 15, 2016, 1:35:33 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/util/JarClassLoader.java
r7196 r7226 497 497 public boolean hasChanged(boolean checkSecondary) 498 498 { 499 if (log.isDebugEnabled()) 500 { 501 log.debug("Checking if JAR has changed: " + mainJarFile); 502 } 499 503 boolean isSame = mainJarFile.exists() && 500 504 mainJarFile.lastModified() == jarTimeStamp && mainJarFile.length() == jarSize; 501 if (!isSame) return true; 505 if (!isSame) 506 { 507 log.debug("Main JAR file has changed: " + mainJarFile); 508 return true; 509 } 502 510 if (checkSecondary) 503 511 { … … 505 513 { 506 514 File jarFile = info.jarFile; 515 if (jarFile.equals(mainJarFile)) continue; // We have already checked this one 516 517 if (log.isDebugEnabled()) 518 { 519 log.debug("Checking if secondary JAR has changed: " + jarFile); 520 } 507 521 if (jarFile.exists()) 508 522 { … … 515 529 isSame = !info.existed; 516 530 } 517 if (!isSame) return true; 531 if (!isSame) 532 { 533 log.debug("Secondary JAR file has changed: " + jarFile); 534 return true; 535 } 518 536 } 519 537 for (JarClassLoaderProxy proxy : proxyLoaders) 520 538 { 521 if (proxy.hasChanged()) return true; 522 } 523 } 539 if (log.isDebugEnabled()) 540 { 541 log.debug("Checking if proxy JAR has changed: " + proxy.jarPath); 542 } 543 isSame = !proxy.hasChanged(); 544 if (!isSame) 545 { 546 log.debug("Proxy JAR has changed: " + proxy.jarPath); 547 return true; 548 } 549 } 550 } 551 552 if (log.isDebugEnabled()) log.debug("JAR has not changed: " + mainJarFile); 524 553 return false; 525 554 } -
trunk/src/core/net/sf/basedb/util/extensions/manager/ExtensionsFile.java
r6898 r7226 269 269 public boolean checkModified() 270 270 { 271 log.debug("Checking if file is modified: " + uri); 271 272 wasModified = false; // Assume not modified as a starting point 272 273 if (isNew) 273 274 { 274 275 // New files are always modified 276 log.debug("File was new: " + uri); 275 277 wasModified = true; 276 278 } … … 278 280 { 279 281 // The XML or JAR file has changed 282 log.debug("File has been modified: " + uri); 280 283 wasModified = true; 281 284 } … … 283 286 { 284 287 // JAR files have changed if the class loader detect changes 288 log.debug("Class path has been modified: " + uri); 285 289 wasModified = true; 290 } 291 else 292 { 293 log.debug("File has not been modified: " + uri); 286 294 } 287 295 return wasModified; -
trunk/www/admin/extensions/wizard.jsp
r6986 r7226 118 118 checkInstall = true; 119 119 } 120 else if (xtFile. checkModified())120 else if (xtFile.wasModified()) 121 121 { 122 122 status = "Modified";
Note: See TracChangeset
for help on using the changeset viewer.