mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 23:55:52 +00:00
merged the last RC branch
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16922 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
fd5988d39a
commit
dabb35190e
15 files changed
+74
-15
No files matched your search
@@ -180,7 +180,7 @@ public final class PluginManager extends AbstractModelObject {
|
||||
URL url = context.getResource(path);
|
||||
long lastModified = url.openConnection().getLastModified();
|
||||
File file = new File(rootDir, fileName);
|
||||
if (file.exists() && file.lastModified() != lastModified) {
|
||||
if (!file.exists() || file.lastModified() != lastModified) {
|
||||
FileUtils.copyURLToFile(url, file);
|
||||
file.setLastModified(url.openConnection().getLastModified());
|
||||
// lastModified is set for two reasons:
|
||||
|
||||
Reference in new issue
Block a user