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:
kohsuke committed 2007-03-03 18:10:27 +00:00
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;