Add list-plugins command

This commit is contained in:
Michael Koch authored and Kohsuke Kawaguchi committed 2012-12-09 22:36:26 -08:00
1 parent ba461f4d2a
commit bb77daf0cc
4 files changed
+99 -1

No files matched your search

@@ -538,6 +538,11 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
return failedPlugins;
}
/**
* Get the plugin instance with the given short name.
* @param shortName the short name of the plugin
* @return The plugin singleton or <code>null</code> if a plugin with the given short name does not exist.
*/
public PluginWrapper getPlugin(String shortName) {
for (PluginWrapper p : plugins) {
if(p.getShortName().equals(shortName))