mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 18:16:10 +00:00
added error check.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2319 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
e4de4f5139
commit
3738e82225
1 file changed
+6
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user