提交 d2abcd62 编写于 作者: K kohsuke

auto-add Subversion support into a dependency list for plugins built before 1.311

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18980 71c3de6d-444a-0410-be80-ed276b4c234a
上级 ee5cba8f
......@@ -167,6 +167,13 @@ public class ClassicPluginStrategy implements PluginStrategy {
optionalDependencies.add(new PluginWrapper.Dependency("maven-plugin:" + Hudson.VERSION));
}
// subversion support was split off into a plugin in 1.311, so plugins built before that should automatically get
// subversion plugin as a dependency
if (!"subversion".equals(shortName) &&
(hudsonVersion == null || hudsonVersion.equals("null") || hudsonVersion.compareTo("1.310") <= 0)) {
optionalDependencies.add(new PluginWrapper.Dependency("subversion:1.0"));
}
ClassLoader dependencyLoader = new DependencyClassLoader(getClass()
.getClassLoader(), Util.join(dependencies,optionalDependencies));
ClassLoader classLoader = new URLClassLoader(paths.toArray(new URL[paths.size()]),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册