applied a patch from Adam, with a little modification.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10860 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-07-17 04:31:50 +00:00
1 parent 9d311b98bf
commit ebdd1948cf
2 files changed
+19 -2

No files matched your search

@@ -483,6 +483,14 @@ public final class PluginWrapper {
return null;
}
}
/**
* returns the {@link UpdateCenter.Plugin} object, or null.
*/
public UpdateCenter.Plugin getInfo() {
UpdateCenter uc = Hudson.getInstance().getUpdateCenter();
return uc.getPlugin(getShortName());
}
/**
* Returns true if this plugin has update in the update center.