mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 15:45:52 +00:00
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:
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());
|
||||
|
||||
Reference in new issue
Block a user