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
This commit is contained in:
mindless committed 2009-09-17 16:30:05 +00:00
1 parent 0627cea06c
commit 5fde7f0f73
1 file changed
+2
@@ -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());