From 5fde7f0f73db57c334f19cbb889b2ed8663d99c9 Mon Sep 17 00:00:00 2001 From: mindless Date: Thu, 17 Sep 2009 16:30:05 +0000 Subject: [PATCH] add TODO note to allow upgrade of bundled plugins git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21776 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/PluginManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/hudson/PluginManager.java b/core/src/main/java/hudson/PluginManager.java index 1f498cc6e1..3b88286c0a 100644 --- a/core/src/main/java/hudson/PluginManager.java +++ b/core/src/main/java/hudson/PluginManager.java @@ -202,6 +202,8 @@ public final class PluginManager extends AbstractModelObject { URL url = context.getResource(path); long lastModified = url.openConnection().getLastModified(); File file = new File(rootDir, fileName); + // TODO: allow upgrade of bundled plugins; code below will overwrite the newly + // upgraded file with the bundled version since lastModified has changed. if (!file.exists() || file.lastModified() != lastModified) { FileUtils.copyURLToFile(url, file); file.setLastModified(url.openConnection().getLastModified());