提交 5fde7f0f 编写于 作者: M mindless

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
上级 0627cea0
......@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册