提交 3738e822 编写于 作者: K kohsuke

added error check.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2319 71c3de6d-444a-0410-be80-ed276b4c234a
上级 e4de4f51
......@@ -212,6 +212,12 @@ public final class PluginWrapper {
throw new IOException("Plugin installation failed. No 'Plugin-Class' entry in the manifest of "+archive);
}
// make sure dependencies exist
for (Dependency d : dependencies) {
if(owner.getPlugin(d.shortName)==null)
throw new IOException("Dependency "+d.shortName+" doesn't exist");
}
if(!active)
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册